rules 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/make -f
  2. DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
  3. DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
  4. confflags = --disable-rpath --disable-video-directfb \
  5. --disable-nas --disable-esd --disable-arts \
  6. --disable-alsa-shared --disable-pulseaudio-shared \
  7. --disable-x11-shared
  8. %:
  9. dh $@ --parallel
  10. override_dh_auto_configure:
  11. dh_auto_configure -Bbuilddir/all -- $(confflags)
  12. override_dh_auto_build:
  13. dh_auto_build -Bbuilddir/all
  14. tar czf debian/examples.tar.gz test
  15. override_dh_auto_install:
  16. dh_auto_install -Bbuilddir/all
  17. override_dh_auto_clean:
  18. dh_auto_clean -Bbuilddir/all
  19. rm -f debian/examples.tar.gz
  20. override_dh_install:
  21. dh_install --remaining-packages --fail-missing -XlibSDL2.la
  22. override_dh_installexamples:
  23. dh_installexamples -plibsdl2-dev debian/examples.tar.gz
  24. dh_installexamples --remaining-packages
  25. override_dh_link:
  26. # to address lintian warning
  27. # 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
  28. 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
  29. override_dh_strip:
  30. dh_strip --dbg-package=libsdl2-dbg