debian/rules
author Sam Lantinga <slouken@libsdl.org>
Wed, 07 Nov 2018 07:38:11 -0800
changeset 12402 3b5b4eb1927f
parent 7906 19f5760dc1a7
child 12403 a4d730631698
permissions -rwxr-xr-x
The Debian maintainers aren't using these rules, so enable dynamic loading of shared libraries by default for the Steam Linux Runtime
     1 #!/usr/bin/make -f
     2 
     3 DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
     4 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
     5 
     6 confflags = --disable-rpath --disable-video-directfb \
     7             --disable-nas --disable-esd --disable-arts
     8 
     9 # These flags can be used to create a package with runtime dependencies
    10 #            --disable-alsa-shared \
    11 #            --disable-pulseaudio-shared \
    12 #            --disable-x11-shared
    13 
    14 %:
    15 	dh $@ --parallel
    16 
    17 override_dh_auto_configure:
    18 	dh_auto_configure -Bbuilddir/all -- $(confflags)
    19 
    20 override_dh_auto_build:
    21 	dh_auto_build -Bbuilddir/all
    22 	tar czf debian/examples.tar.gz test
    23 
    24 override_dh_auto_install:
    25 	dh_auto_install -Bbuilddir/all
    26 
    27 override_dh_auto_clean:
    28 	dh_auto_clean -Bbuilddir/all
    29 	rm -f debian/examples.tar.gz
    30 
    31 override_dh_install:
    32 	dh_install --remaining-packages --fail-missing -XlibSDL2.la
    33 
    34 override_dh_installexamples:
    35 	dh_installexamples -plibsdl2-dev debian/examples.tar.gz
    36 	dh_installexamples --remaining-packages
    37 
    38 override_dh_link:
    39 	# to address lintian warning
    40 	# 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
    41 	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
    42 
    43 override_dh_strip:
    44 	dh_strip --dbg-package=libsdl2-dbg