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 45 46 47 48 49 50 51 52 53
|
#!/usr/bin/make -f
DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes
include /usr/share/cdbs/1/rules/debhelper.mk
# Including this file gets us a simple patch system. You can just
# drop patches in debian/patches, and they will be automatically
# applied and unapplied.
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/autotools.mk
ARKRPG_MANPAGES= debian/arkclient.6
LIBARKRPG-DEV_MANPAGES= debian/ark-config.6
DEB_CONFIGURE_EXTRA_FLAGS := --with-lua-inc=/usr/include/lua40 --with-gl-extra-lib=-lpthread
# tight versioning
DEB_NOREVISION_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | cut -f 1 -d '-')
DEB_DH_MAKESHLIBS_ARGS_libarkrpg := -V"libarkrpg (>= $(DEB_NOREVISION_VERSION))"
DEB_SHLIBDEPS_LIBRARY_arkrpg := libarkrpg
DEB_SHLIBDEPS_INCLUDE_arkrpg := debian/libarkrpg/usr/lib/
configure/arkrpg::
-test ! -e $(CURDIR)/Ark/Modules && ln -s $(CURDIR)/Modules $(CURDIR)/Ark/
build/arkrpg:: $(ARKRPG_MANPAGES)
build/libarkrpg-dev:: $(LIBARKRPG-DEV_MANPAGES)
%.6: %.sgml
docbook-to-man $< >$@
binary-install/arkrpg::
dh_installman -parkrpg $(ARKRPG_MANPAGES)
binary-install/libarkrpg::
find $(CURDIR)/debian/libarkrpg/usr/lib/ \( -name "*.a*" -or -name "*.la*" \) -and -exec rm {} \;
binary-install/libarkrpg-dev::
dh_installman -plibarkrpg-dev $(LIBARKRPG-DEV_MANPAGES)
find debian/libarkrpg-dev/usr/include/Ark/ ! -iname "*.h" -type f -exec rm -rf {} \;
find debian/libarkrpg-dev/usr/include/ \( -name ".arch-ids" -or -name ".libs" -or -name ".deps" \) -depth -exec rm -rf {} \;
find debian/libarkrpg-dev/usr/include/ -type f -exec chmod a-x {} \;
clean::
rm -f $(ARKRPG_MANPAGES) $(LIBARKRPG-DEV_MANPAGES)
rm -f $(CURDIR)/Ark/Modules
find . -name ".deps" -depth -exec rm -rf {} \;
find . -name "Makefile" -exec rm -f {} \;
rm -f confdefs.h Dist/arkfactories.cfg
|