[fenix-plugins] 48/60: Use dpkg-buildflags from dpkg-dev 1.15.7 to obtain CFLAGS and LDFLAGS.

Peter Pentchev roam at ringlet.net
Mon Dec 21 14:16:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

roam-guest pushed a commit to branch master
in repository fenix-plugins.

commit 8e9f003162854524f7e2310de8e65171ace8305e
Author: Peter Pentchev <roam at ringlet.net>
Date:   Fri Feb 26 23:44:19 2010 +0000

    Use dpkg-buildflags from dpkg-dev 1.15.7 to obtain CFLAGS and LDFLAGS.
---
 debian/changelog |  3 +--
 debian/control   |  2 +-
 debian/rules     | 12 +++++-------
 3 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ad26be1..95f2875 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,5 @@
 fenix-plugins (0.0.20070803-4) UNRELEASED; urgency=low
 
-  TODO: dpkg-buildflags
-
   [ Miriam Ruiz ]
   * Added Renesas SH(sh4) CPU to support architecture list.
 
@@ -29,6 +27,7 @@ fenix-plugins (0.0.20070803-4) UNRELEASED; urgency=low
     - shorten the rules file using the dh(1) helper
     - use "dh --with autotools_dev" to handle config.guess and config.sub
     - use debhelper override rules
+  * Use dpkg-buildflags from dpkg-dev 1.15.7 to obtain CFLAGS and LDFLAGS.
 
  -- Peter Pentchev <roam at ringlet.net>  Thu, 25 Nov 2010 16:09:06 +0200
 
diff --git a/debian/control b/debian/control
index 3c5fc3c..abbb206 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: extra
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders: Miriam Ruiz <little_miry at yahoo.es>, Barry deFreese <bdefreese at debian.org>
 Build-Depends: debhelper (>= 8), autotools-dev (>= 20100122.1~),
- autoconf, automake1.10 | automake1.9,
+ autoconf, automake1.10 | automake1.9, dpkg-dev (>= 1.15.7~),
  zlib1g-dev, libsdl1.2-dev, libsdl-image1.2-dev, libsdl-net1.2-dev, libsdl-mixer1.2-dev,
  libsmpeg-dev, libfreetype6-dev, fenix, fenix-dev, libtool
 Standards-Version: 3.9.1
diff --git a/debian/rules b/debian/rules
index 977c3ba..aeb48b8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,13 +3,11 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-CFLAGS = -Wall -g
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
+CFLAGS += -Wall
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
+LDFLAGS += -Wl,-z,defs
 
 PLUGINS = \
 	plugins/fgfx.so plugins/agua.so plugins/fire.so \
@@ -24,7 +22,7 @@ override_dh_auto_build:
 		fi \
 	done
 	dh_auto_build -- \
-		CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" \
+		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
 		CONFFLAGS="--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)" \
 		$(PLUGINS)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/fenix-plugins.git



More information about the Pkg-games-commits mailing list