r878 - packages/abuse-sdl/debian

Sam Hocevar sho at costa.debian.org
Wed Jun 21 13:15:21 UTC 2006


Author: sho
Date: 2006-06-21 13:15:20 +0000 (Wed, 21 Jun 2006)
New Revision: 878

Modified:
   packages/abuse-sdl/debian/changelog
   packages/abuse-sdl/debian/rules
Log:
abuse-sdl (1:0.7.0-4) unstable; urgency=low

  * debian/rules:
    + Support DEB_BUILD_OPTIONS's noopt.


Modified: packages/abuse-sdl/debian/changelog
===================================================================
--- packages/abuse-sdl/debian/changelog	2006-06-21 13:14:34 UTC (rev 877)
+++ packages/abuse-sdl/debian/changelog	2006-06-21 13:15:20 UTC (rev 878)
@@ -9,6 +9,8 @@
   * debian/control:
     + Set policy to 3.7.2.
     + Build-depend on quilt.
+  * debian/rules:
+    + Support DEB_BUILD_OPTIONS's noopt.
 
   * debian/patches/010_rebootstrap.diff:
     + New patch from old diff.gz -- rebootstrap package.

Modified: packages/abuse-sdl/debian/rules
===================================================================
--- packages/abuse-sdl/debian/rules	2006-06-21 13:14:34 UTC (rev 877)
+++ packages/abuse-sdl/debian/rules	2006-06-21 13:15:20 UTC (rev 878)
@@ -3,6 +3,16 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+CPPFLAGS = -Wall
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+  CPPFLAGS += -O0
+else
+  CPPFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+  INSTALL_PROGRAM += -s
+endif
+
 config-stamp:
 	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
 	touch aclocal.m4
@@ -14,7 +24,7 @@
 build: build-stamp
 build-stamp: config-stamp
 	dh_testdir
-	$(MAKE) AM_CPPFLAGS=-Wall
+	$(MAKE) AM_CPPFLAGS="$(CPPFLAGS)"
 	touch build-stamp
 
 clean:
@@ -31,39 +41,25 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-
 	install src/abuse.sdl debian/abuse/usr/games/abuse
 	ln -s abuse debian/abuse/usr/games/abuse.sdl
 	install abuse-sdl.6 debian/abuse/usr/share/man/man6/abuse.6
 	gzip -9 debian/abuse/usr/share/man/man6/abuse.6
 	ln -s abuse.6.gz debian/abuse/usr/share/man/man6/abuse.sdl.6.gz
 
-# Build architecture-independent files here.
 binary-indep: build install
-# We have nothing to do by default.
 
-# Build architecture-dependent files here.
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-#       dh_installdebconf
 	dh_installdocs README TODO
-#	dh_installexamples abuserc
 	dh_installmenu
-#       dh_installemacsen
-#       dh_installpam
-#       dh_installinit
-#       dh_installcron
-#       dh_installman
-#       dh_installinfo
-#       dh_undocumented
 	dh_installchangelogs ChangeLog
 	dh_link
 	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-#       dh_perl
 	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums




More information about the Pkg-games-commits mailing list