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
@@ -1,4 +1,4 @@
love (0.9.0~ppatest5) precise; urgency=medium
love@LOVE_SUFFIX@ (0.9.0~ppatest5) precise; urgency=medium
* Upstream testing release
@@ -1,9 +1,10 @@
Source: love
Source: love@LOVE_SUFFIX@
Section: games
Priority: extra
Maintainer: Bart van Strien <bart.bes@gmail.com>
Build-Depends: debhelper (>= 9),
autotools-dev,
pkg-config,
libdevil-dev,
libfreetype6-dev,
libluajit-5.1-dev,
@@ -20,7 +21,7 @@ Build-Depends: debhelper (>= 9),
Standards-Version: 3.9.3
Homepage: http://love2d.org
Package: liblove
Package: liblove@LOVE_SUFFIX@
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
@@ -41,18 +42,18 @@ Depends: ${misc:Depends},
libmpg123-0
Description: LOVE is a free 2D game engine which enables easy game creation in Lua.
Package: love
Package: love@LOVE_SUFFIX@
Architecture: any
Multi-Arch: same
Depends: ${misc:Depends},
liblove (= ${binary:Version})
liblove@LOVE_SUFFIX@ (= ${binary:Version})
Description: LOVE is a free 2D game engine which enables easy game creation in Lua.
Package: love-dbg
Package: love@LOVE_SUFFIX@-dbg
Priority: extra
Section: debug
Architecture: any
Multi-Arch: same
Depends: ${misc:Depends},
love (= ${binary:Version}),
love@LOVE_SUFFIX@ (= ${binary:Version}),
Description: LOVE is a free 2D game engine which enables easy game creation in Lua.
+2 -2
View File
@@ -1,4 +1,4 @@
Copyright (c) 2006-2010 LOVE Development Team
Copyright (c) 2006-2013 LOVE Development Team
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -17,4 +17,4 @@ appreciated but is not required.
misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
distribution.
@@ -0,0 +1 @@
usr/lib/*/liblove-unstable.so.*
@@ -0,0 +1 @@
usr/bin/love-unstable
@@ -4,13 +4,13 @@ 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 -- CPPFLAGS=-I/usr/include/luajit-2.0 --with-lua=luajit-5.1
dh_auto_configure -- --with-lua=luajit
override_dh_link:
dh_link -plove-dev usr/lib/$(DEB_HOST_MULTIARCH)/liblove.so.0.0.0 usr/lib/$(DEB_HOST_MULTIARCH)/liblove.so
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-dbg
dh_strip --dbg-package=love@LOVE_SUFFIX@-dbg
%:
dh $@ --parallel