r9812 - in /desktop/experimental/pygtk/debian: changelog rules
lool at users.alioth.debian.org
lool at users.alioth.debian.org
Thu Apr 12 13:19:52 UTC 2007
Author: lool
Date: Thu Apr 12 13:19:52 2007
New Revision: 9812
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=9812
Log:
* Honor CFLAGS we set in rules, doh!
* Set some sane default CFLAGS and honor noopt in DEB_BUILD_OPTIONS.
Modified:
desktop/experimental/pygtk/debian/changelog
desktop/experimental/pygtk/debian/rules
Modified: desktop/experimental/pygtk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/pygtk/debian/changelog?rev=9812&op=diff
==============================================================================
--- desktop/experimental/pygtk/debian/changelog (original)
+++ desktop/experimental/pygtk/debian/changelog Thu Apr 12 13:19:52 2007
@@ -1,3 +1,10 @@
+pygtk (2.10.4-2) UNRELEASED; urgency=low
+
+ * Honor CFLAGS we set in rules, doh!
+ * Set some sane default CFLAGS and honor noopt in DEB_BUILD_OPTIONS.
+
+ -- Loic Minier <lool at dooz.org> Thu, 12 Apr 2007 15:18:39 +0200
+
pygtk (2.10.4-1) experimental; urgency=low
* Cleanup rules.
Modified: desktop/experimental/pygtk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/pygtk/debian/rules?rev=9812&op=diff
==============================================================================
--- desktop/experimental/pygtk/debian/rules (original)
+++ desktop/experimental/pygtk/debian/rules Thu Apr 12 13:19:52 2007
@@ -9,8 +9,12 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -g
+CFLAGS += -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
endif
PYVERS := $(shell pyversions --requested --version debian/control)
@@ -19,10 +23,12 @@
build-%/configure-stamp:
dh_testdir
mkdir -p build-$*
- cd build-$* && PYTHON=/usr/bin/python$* \
- ../configure --host=$(DEB_HOST_GNU_TYPE) \
- --build=$(DEB_BUILD_GNU_TYPE) \
- --prefix=/usr --enable-thread
+ cd build-$* && \
+ PYTHON=/usr/bin/python$* CFLAGS="$(CFLAGS)" \
+ ../configure --host=$(DEB_HOST_GNU_TYPE) \
+ --build=$(DEB_BUILD_GNU_TYPE) \
+ --prefix=/usr \
+ --enable-thread
touch $@
build-%/build-stamp: build-%/configure-stamp
More information about the pkg-gnome-commits
mailing list