Make configure output some files in the debian folder as well, substituting the (optional) suffix where needed, also add pkg-config dependency

This commit is contained in:
Bart van Strien
2013-12-08 20:06:12 +01:00
parent 3d82eecc08
commit 5b66cd2290
8 changed files with 35 additions and 23 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/make -f
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
override_dh_auto_configure:
dh_auto_configure -- --with-lua=luajit
override_dh_link:
dh_link -plove@LOVE_SUFFIX@-dev usr/lib/$(DEB_HOST_MULTIARCH)/liblove@LOVE_SUFFIX@.so.0.0.0 usr/lib/$(DEB_HOST_MULTIARCH)/liblove@LOVE_SUFFIX@.so
override_dh_strip:
dh_strip --dbg-package=love@LOVE_SUFFIX@-dbg
%:
dh $@ --parallel