| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
include /usr/share/dpkg/pkg-info.mk |
| 5 |
|
| 6 |
LIBPKG = libsdl-gfx1.2-5 |
| 7 |
|
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ |
| 11 |
|
| 12 |
CONFIGURE_FLAGS ?=--disable-mmx |
| 13 |
|
| 14 |
ifeq ($(DEB_HOST_ARCH), i386 ) |
| 15 |
CONFIGURE_FLAGS =--enable-mmx |
| 16 |
endif |
| 17 |
ifeq ($(DEB_HOST_ARCH), amd64) |
| 18 |
CONFIGURE_FLAGS =--enable-mmx |
| 19 |
endif |
| 20 |
|
| 21 |
override_dh_auto_configure: |
| 22 |
dh_auto_configure -- $(CONFIGURE_FLAGS) |
| 23 |
|
| 24 |
override_dh_auto_build: |
| 25 |
dh_auto_build |
| 26 |
GZIP=-n tar -cvz --transform='s,^Test,examples,' --owner=0 --group=0 --mode=go=rX,u+rw,a-s --mtime="@$(SOURCE_DATE_EPOCH)" --sort=name -f debian/examples.tar.gz Test |
| 27 |
|
| 28 |
override_dh_auto_clean: |
| 29 |
dh_auto_clean |
| 30 |
rm -f debian/examples.tar.gz |
| 31 |
|
| 32 |
override_dh_install: |
| 33 |
dh_install -XlibSDL_gfx.la -Xjquery.js |
| 34 |
|
| 35 |
override_dh_installdocs: |
| 36 |
dh_installdocs -plibsdl-gfx1.2-doc --doc-main-package=libsdl-gfx1.2-doc |
| 37 |
dh_installdocs --remaining-packages |
| 38 |
|
| 39 |
override_dh_missing: |
| 40 |
dh_missing --fail-missing -XlibSDL_gfx.la -Xjquery.js |
| 41 |
|
| 42 |
override_dh_link: |
| 43 |
# fix lintian warning dev-pkg-without-shlib-symlink |
| 44 |
dh_link -p$(LIBPKG) usr/lib/$(DEB_HOST_MULTIARCH)/libSDL_gfx.so.15.9.1 \ |
| 45 |
usr/lib/$(DEB_HOST_MULTIARCH)/libSDL_gfx.so.5 |
| 46 |
dh_link -plibsdl-gfx1.2-doc usr/share/javascript/jquery/jquery.js \ |
| 47 |
usr/share/doc/libsdl-gfx1.2-doc/html/jquery.js |
| 48 |
dh_link --remaining-packages |