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
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
muckfiles:=config.sub config.guess
override_dh_auto_configure:
# backup files that either we or upstream muck with
for f in $(muckfiles); do cp -a $$f $$f.preserve; done
ln -sf /usr/share/misc/config.sub config.sub
ln -sf /usr/share/misc/config.guess config.guess
dh_auto_configure -- \
--disable-libwww-client \
--disable-wininet-client
override_dh_auto_build:
dh_auto_build
( cd tools && make )
make check
override_dh_auto_clean:
rm -f build-arch-stamp build-indep-stamp
# Add here commands to clean up after the build process.
# xxx upstream build process still breaks on distclean...
[ ! -f Makefile ] || [ ! -f config.status ] || $(MAKE) distclean || true
# restore files mucked by us or upstream during build/clean
for f in $(muckfiles); do \
[ ! -e $$f.preserve ] || ( rm -rf $$f; mv $$f.preserve $$f ) ; \
done
# a few other misc files
rm -f src/test/depend.mk
# Strip the following unused file from the tree to prevent it from being
# used as the license is incompatible with lib/util/getoptx.*
rm -f tools/turbocharger/mod_gzip.c
dh_clean -X autom4te.cache
override_dh_install:
dh_install --fail-missing
override_dh_compress:
dh_compress -Xusr/share/doc/libxmlrpc-core-c3-dev/examples/
%:
dh $@ --with quilt
|