r6716 - packages/trunk/openal-soft/debian

Andres Mejia ceros-guest at alioth.debian.org
Wed Apr 23 04:24:11 UTC 2008


Author: ceros-guest
Date: 2008-04-23 04:24:11 +0000 (Wed, 23 Apr 2008)
New Revision: 6716

Modified:
   packages/trunk/openal-soft/debian/changelog
   packages/trunk/openal-soft/debian/rules
Log:
  * Allow options passed to cmake be overridable using DEB_CMAKE_OPTIONS.
  * Support nostrip option.
  * Build Release type libraries by default.


Modified: packages/trunk/openal-soft/debian/changelog
===================================================================
--- packages/trunk/openal-soft/debian/changelog	2008-04-23 03:26:35 UTC (rev 6715)
+++ packages/trunk/openal-soft/debian/changelog	2008-04-23 04:24:11 UTC (rev 6716)
@@ -5,5 +5,8 @@
 
   [Andres Mejia]
   * Make the build output verbose.
+  * Allow options passed to cmake be overridable using DEB_CMAKE_OPTIONS.
+  * Support nostrip option.
+  * Build "Release" type libraries by default.
 
  -- Bruno "Fuddl" Kleinert <fuddl at tauware.de>  Thu, 27 Mar 2008 16:05:18 +0100

Modified: packages/trunk/openal-soft/debian/rules
===================================================================
--- packages/trunk/openal-soft/debian/rules	2008-04-23 03:26:35 UTC (rev 6715)
+++ packages/trunk/openal-soft/debian/rules	2008-04-23 04:24:11 UTC (rev 6716)
@@ -4,15 +4,30 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+### NOT SURE IF THIS IS NECESSARY ###
 # shared library versions, option 1
-version=2.0.5
-major=2
+#version=2.0.5
+#major=2
 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
 #version=`ls src/.libs/lib*.so.* | \
 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
 #major=`ls src/.libs/lib*.so.* | \
 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
+# nostrip option implies noopt
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+   TYPE=Release
+else
+   TYPE=Debug
+endif
+
+# Use this variable to allow options passed to cmake to be overridable
+DEB_CMAKE_OPTIONS ?= -DCMAKE_VERBOSE_MAKEFILE=ON \
+		-DCMAKE_BUILD_TYPE=$(TYPE) \
+		-DCMAKE_INSTALL_PREFIX="/usr" \
+		-DCMAKE_C_FLAGS="$(CFLAGS)" \
+		-DBUILD_STATIC=ON ..
+
 BUILD_TREE=$(CURDIR)/build-tree
 
 configure: configure-stamp
@@ -20,11 +35,7 @@
 	dh_testdir
 	mkdir -p $(BUILD_TREE)
 	cd $(BUILD_TREE) && \
-		cmake \
-		-DCMAKE_VERBOSE_MAKEFILE="ON" \
-		-DCMAKE_INSTALL_PREFIX="/usr" \
-		-DCMAKE_C_FLAGS="$(CFLAGS)" \
-		-DBUILD_STATIC=ON ..
+		cmake $(DEB_CMAKE_OPTIONS)
 	touch configure-stamp
 
 build: build-stamp
@@ -61,7 +72,9 @@
 	dh_installexamples
 	dh_install
 	dh_installman
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	dh_strip
+endif
 	dh_compress
 	dh_fixperms
 	dh_makeshlibs




More information about the Pkg-games-commits mailing list