debian/rules
changeset 6886 55fc95e5817b
child 6889 09bc9fbe147e
equal deleted inserted replaced
6885:700f1b25f77f 6886:55fc95e5817b
       
     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 
       
     8 %:
       
     9 	dh $@ --parallel
       
    10 
       
    11 override_dh_auto_configure:
       
    12 	dh_auto_configure -Bbuilddir/all -- $(confflags)
       
    13 
       
    14 override_dh_auto_build:
       
    15 	dh_auto_build -Bbuilddir/all
       
    16 	tar czf debian/examples.tar.gz test
       
    17 
       
    18 override_dh_auto_install:
       
    19 	dh_auto_install -Bbuilddir/all
       
    20 
       
    21 override_dh_auto_clean:
       
    22 	dh_auto_clean -Bbuilddir/all
       
    23 	rm -f debian/examples.tar.gz
       
    24 
       
    25 override_dh_install:
       
    26 	dh_install --remaining-packages --fail-missing -XlibSDL2.la
       
    27 
       
    28 override_dh_installexamples:
       
    29 	dh_installexamples -plibsdl2-dev debian/examples.tar.gz
       
    30 	dh_installexamples --remaining-packages
       
    31 
       
    32 override_dh_link:
       
    33         # to address lintian warning
       
    34         # 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
       
    35 	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
       
    36 
       
    37 override_dh_strip:
       
    38 	dh_strip --dbg-package=libsdl2-dbg