debian/rules
changeset 6886 55fc95e5817b
child 6889 09bc9fbe147e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/debian/rules	Fri Feb 15 14:56:08 2013 -0800
     1.3 @@ -0,0 +1,38 @@
     1.4 +#!/usr/bin/make -f
     1.5 +
     1.6 +DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
     1.7 +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
     1.8 +
     1.9 +confflags = --disable-rpath --disable-video-directfb
    1.10 +
    1.11 +%:
    1.12 +	dh $@ --parallel
    1.13 +
    1.14 +override_dh_auto_configure:
    1.15 +	dh_auto_configure -Bbuilddir/all -- $(confflags)
    1.16 +
    1.17 +override_dh_auto_build:
    1.18 +	dh_auto_build -Bbuilddir/all
    1.19 +	tar czf debian/examples.tar.gz test
    1.20 +
    1.21 +override_dh_auto_install:
    1.22 +	dh_auto_install -Bbuilddir/all
    1.23 +
    1.24 +override_dh_auto_clean:
    1.25 +	dh_auto_clean -Bbuilddir/all
    1.26 +	rm -f debian/examples.tar.gz
    1.27 +
    1.28 +override_dh_install:
    1.29 +	dh_install --remaining-packages --fail-missing -XlibSDL2.la
    1.30 +
    1.31 +override_dh_installexamples:
    1.32 +	dh_installexamples -plibsdl2-dev debian/examples.tar.gz
    1.33 +	dh_installexamples --remaining-packages
    1.34 +
    1.35 +override_dh_link:
    1.36 +        # to address lintian warning
    1.37 +        # W: libsdl2-2.0-0: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.0.0 usr/lib/x86_64-linux-gnu/libSDL2-2.0.so
    1.38 +	dh_link -plibsdl2-dev usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so.0.0.0 usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so
    1.39 +
    1.40 +override_dh_strip:
    1.41 +	dh_strip --dbg-package=libsdl2-dbg