r6944 - packages/trunk/vegastrike/debian

Andres Mejia ceros-guest at alioth.debian.org
Sun May 11 04:11:13 UTC 2008


Author: ceros-guest
Date: 2008-05-11 04:11:13 +0000 (Sun, 11 May 2008)
New Revision: 6944

Modified:
   packages/trunk/vegastrike/debian/rules
Log:
Allow options used in configure script to be overridable

Modified: packages/trunk/vegastrike/debian/rules
===================================================================
--- packages/trunk/vegastrike/debian/rules	2008-05-11 04:05:26 UTC (rev 6943)
+++ packages/trunk/vegastrike/debian/rules	2008-05-11 04:11:13 UTC (rev 6944)
@@ -24,11 +24,22 @@
 
 # nostrip option implies noopt
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-   confflags += --enable-release --enable-flags="-g"
+   confflags += --enable-release
 else
    confflags += --enable-debug
 endif
 
+# Allow options used in configure script to be overridable.
+DEB_CONFIG_FLAGS ?=  $(confflags) \
+		--bindir=/usr/games \
+		--prefix=/usr \
+		--with-data-dir=/usr/share/games/vegastrike \
+		--with-boost=system \
+		--enable-wall \
+		CFLAGS="$(CFLAGS)" \
+		CXXFLAGS="$(CXXFLAGS)"
+
+
 # borrowed from the kernel rules script since this can
 # take a few minutes to compile :)
 ifneq ($(strip $(CONCURRENCY_LEVEL)),)
@@ -47,12 +58,7 @@
 	autoheader -f $(AUTOHEADERFLAGS)
 	autoconf -f $(AUTOCONFFLAGS)
 	automake -acf $(AUTOMAKEFLAGS)
-	CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
-	./configure $(confflags) --bindir=/usr/games \
-	    --prefix=/usr \
-	    --with-data-dir=/usr/share/games/vegastrike \
-	    --with-boost=system \
-		--enable-wall
+	./configure $(DEB_CONFIG_FLAGS)
 	touch configure-stamp
 
 build: configure build-stamp




More information about the Pkg-games-commits mailing list