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
|
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
LIBPKG = libsdl-gfx1.2-5
%:
dh $@ --parallel --with autoreconf,linktree
CONFIGURE_FLAGS ?=--disable-mmx
ifeq ($(DEB_HOST_ARCH), i386 )
CONFIGURE_FLAGS =--enable-mmx
endif
ifeq ($(DEB_HOST_ARCH), amd64)
CONFIGURE_FLAGS =--enable-mmx
endif
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_FLAGS)
override_dh_auto_build:
dh_auto_build
tar -cvz --transform='s,^Test,examples,' --owner=0 --group=0 -f debian/examples.tar.gz Test
override_dh_auto_clean:
dh_auto_clean
rm -f debian/examples.tar.gz
override_dh_install:
dh_install --fail-missing -XlibSDL_gfx.la -Xjquery.js
override_dh_link:
# fix lintian warning dev-pkg-without-shlib-symlink
dh_link -p$(LIBPKG) usr/lib/$(DEB_HOST_MULTIARCH)/libSDL_gfx.so.15.9.1 \
usr/lib/$(DEB_HOST_MULTIARCH)/libSDL_gfx.so.5
dh_link --remaining-packages
|