[SCM] supercollider/master: Handle DEB_BUILD_OPTIONS to control strip/optimise

danstowell-guest at users.alioth.debian.org danstowell-guest at users.alioth.debian.org
Sun Jun 12 16:09:12 UTC 2011


The following commit has been merged in the master branch:
commit 138025f6d1b78e0d896ba5142ac6aa0d0f23919e
Author: Dan Stowell <danstowell at users.sourceforge.net>
Date:   Sun Jun 12 12:07:54 2011 +0100

    Handle DEB_BUILD_OPTIONS to control strip/optimise

diff --git a/debian/rules b/debian/rules
index e2d44d2..98e4fb2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,7 +29,17 @@ DEB_INSTALL_DIRS_supercollider             = usr/share/SuperCollider/Extensions
 
 # SCVIM/SCED=0 here, because we install them by hand below
 # (so that the build won't break)
-DEB_SCONS_OPTIONS = DEVELOPMENT=yes PREFIX=/usr CROSSCOMPILE=1 STRIP=1 CURL=0 SCVIM=0 SCED=0
+DEB_SCONS_OPTIONS = DEVELOPMENT=yes PREFIX=/usr CROSSCOMPILE=1 CURL=0 SCVIM=0 SCED=0
+# Handle DEB_BUILD_OPTIONS (see policy 4.9.1)
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+	DEB_SCONS_OPTIONS += "DEBUG=1"
+endif
+ifneq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+	DEB_SCONS_OPTIONS += "STRIP=0"
+else
+	DEB_SCONS_OPTIONS += "STRIP=1"
+endif
+
 DEB_SCONS_INSTALL_TARGET = DESTDIR=$(DEB_DESTDIR) install
 
 # The build system apparently can't handle this

-- 
supercollider packaging



More information about the pkg-multimedia-commits mailing list