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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += -Wall
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS += -Wl,-z,defs
PLUGINS = \
plugins/fgfx.so plugins/agua.so plugins/fire.so \
plugins/ttf.so plugins/image.so plugins/net.so \
plugins/mpeg.so plugins/exec.so \
plugins/tcpsock.so plugins/fsock.so
override_dh_auto_build:
for i in */ ; do \
if [ -e "$$i/configure.ac" ]; then \
cp -f /usr/share/libtool/config/ltmain.sh "$$i/ltmain.sh" ; \
fi \
done
dh_auto_build -- \
CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
CONFFLAGS="--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)" \
$(PLUGINS)
override_dh_auto_clean:
dh_auto_clean -- fullclean
override_dh_makeshlibs:
%:
dh $@ --with autotools_dev
|