r11341 - in /trunk/libcurses-perl/debian: changelog rules

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Mon Dec 17 20:43:57 UTC 2007


Author: dmn
Date: Mon Dec 17 20:43:56 2007
New Revision: 11341

URL: http://svn.debian.org/wsvn/?sc=1&rev=11341
Log:
  + support noopt in DEB_BUILD_OPTIONS

Modified:
    trunk/libcurses-perl/debian/changelog
    trunk/libcurses-perl/debian/rules

Modified: trunk/libcurses-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libcurses-perl/debian/changelog?rev=11341&op=diff
==============================================================================
--- trunk/libcurses-perl/debian/changelog (original)
+++ trunk/libcurses-perl/debian/changelog Mon Dec 17 20:43:56 2007
@@ -28,6 +28,7 @@
     + use distclean instead of clean; no need to remove Makefile.old
     + drop unused dh_installman and dh_link
     + add dh_shlibdeps call
+    + support noopt in DEB_BUILD_OPTIONS
   * Bump debhelper compatibility level to 5; adjust build-dependency
     accordingly
 

Modified: trunk/libcurses-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libcurses-perl/debian/rules?rev=11341&op=diff
==============================================================================
--- trunk/libcurses-perl/debian/rules (original)
+++ trunk/libcurses-perl/debian/rules Mon Dec 17 20:43:56 2007
@@ -9,12 +9,21 @@
 
 include /usr/share/quilt/quilt.make
 
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
+endif
+
+
 build: patch
 	dh_testdir
 	# Add here commands to compile the package.
 	#perl Makefile.PL PANELS MENUS FORMS verbose INSTALLDIRS=vendor
 	perl Makefile.PL PANELS MENUS verbose INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="-O2 -g -Wall"
+	$(MAKE) OPTIMIZE="$(CFLAGS)"
 	$(MAKE) test
 
 clean: unpatch




More information about the Pkg-perl-cvs-commits mailing list