[SCM] supercollider/master: Handle DEB_BUILD_OPTIONS to control strip/optimise
Jonas Smedegaard
dr at jones.dk
Sun Jun 12 16:27:40 UTC 2011
On 11-06-12 at 04:09pm, danstowell-guest at users.alioth.debian.org wrote:
> # 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
Possibly more elegant is to always disable upstream stripping, as
dh_strip does it too and checks DEB_BUILD_OPTIONS itself.
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20110612/6cadc0e6/attachment-0001.pgp>
More information about the pkg-multimedia-maintainers
mailing list