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 54 55 56 57 58 59 60 61
|
#!/usr/bin/make -f
# If compilation fails with:
# /bin/sh: -c: line 1: syntax error near unexpected token `done'
# then edit /usr/lib/X11/config/Imake.rules and add the ; to line 2329:
# set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi; \@@\
include /usr/share/quilt/quilt.make
export DH_VERBOSE=1
DEB=debian/tmp
SCORES=$(DEB)/var/games/xbill.scores.default
build: patch build-stamp
build-stamp:
dh_testdir
# gtk and setgid requires score-wrapper program
#./configure --prefix=/usr --enable-gtk
./configure --prefix=/usr --bindir=\$${prefix}/games \
--disable-gtk --disable-motif --enable-athena
$(MAKE) LOCAL_LDFLAGS=-s
touch build-stamp
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp
[ ! -f Makefile ] || $(MAKE) -i clean
[ ! -f Makefile ] || $(MAKE) -i distclean
dh_clean
binary-indep: build
binary-arch: build
dh_testdir
dh_testroot
dh_clean
DESTDIR=$(DEB) make install
dh_install
dh_installdocs README*
dh_installmenu
dh_desktop
dh_installchangelogs ChangeLog
dh_compress
dh_fixperms
chown root:games $(CURDIR)/debian/xbill/usr/games/xbill
chown root:games $(CURDIR)/debian/xbill/var/games/xbill.scores.default
chmod 2755 $(CURDIR)/debian/xbill/usr/games/xbill
chmod 0664 $(CURDIR)/debian/xbill/var/games/xbill.scores.default
dh_strip
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|