1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_CFLAGS_MAINT_APPEND := -pipe -Wall
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
SHLIBVER := 2.0.14
%:
dh $@ --with autoreconf --parallel
override_dh_autoreconf:
# do not call with ./autogen.sh as parameter, to force new
# config.{sub,guess}
AUTOMAKE="automake --foreign" dh_autoreconf --as-needed
override_dh_auto_configure:
dh_auto_configure -- $(confflags)
override_dh_install:
dh_install --fail-missing -XlibSDL2_ttf.la
override_dh_installchangelogs:
dh_installchangelogs -- CHANGES.txt
override_dh_link:
# fix lintian warning dev-pkg-without-shlib-symlink
dh_link -plibsdl2-ttf-dev usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2_ttf-2.0.so.0 usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2_ttf-2.0.so
dh_link --remaining-packages
override_dh_compress:
dh_compress -Xglfont.c -Xshowfont.c
override_dh_strip:
dh_strip --dbg-package=libsdl2-ttf-dbg
override_dh_makeshlibs:
dh_makeshlibs -V"libsdl2-ttf-2.0-0 (>= $(SHLIBVER))"
|