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


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to