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 62 63 64 65 66 67 68 69 70
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DH_OPTIONS=-v
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
INSTDIR=`pwd`/debian/sunclock
INSTMAPDIR=`pwd`/debian/sunclock-maps
%:
dh $@
override_dh_auto_configure:
xmkmf
override_dh_auto_build-arch:
$(MAKE) CDEBUGFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \
EXTRA_LDOPTIONS="$(shell dpkg-buildflags --get LDFLAGS)" \
PROJECT_DEFINES="$(shell dpkg-buildflags --get CPPFLAGS)" \
XAPPLOADDIR=/etc/X11/app-defaults SELINUX_LIBS= \
DOCDIR=/usr/share/doc/sunclock
override_dh_auto_build-indep:
# nothing to build on indep package.
override_dh_clean:
[ ! -f Makefile ] || $(MAKE) clean
rm -f Makefile Makefile.bak editkit/Makefile
dh_clean
override_dh_auto_install-arch:
$(MAKE) install install.man DESTDIR=$(INSTDIR)/usr \
BINDIR=/bin MANDIR=/share/man/man1 MANSUFFIX=1 \
DOCDIR=/usr/share/doc/sunclock
# little hack to have Sunclockrc in /etc:
mv $(INSTDIR)/usr/share/sunclock/Sunclockrc $(INSTDIR)/etc
(cd $(INSTDIR)/usr/share/sunclock; ln -s /etc/Sunclockrc)
for x in wm_icons/*.xpm; do \
install -m644 $$x $(INSTDIR)/usr/share/pixmaps/; \
done
for x in 16x16 22x22 32x32 48x48 64x64; do \
convert wm_icons/sunclock2.xpm -geometry $$x \
$(INSTDIR)/usr/share/icons/hicolor/$$x/apps/sunclock.png; \
done
install -m644 debian/sunclock.desktop \
$(INSTDIR)/usr/share/applications/sunclock.desktop
override_dh_auto_install-indep:
install -m644 vmf/* $(INSTMAPDIR)/usr/share/sunclock/earthmaps/vmf/
override_dh_installdocs-arch:
dh_installdocs
# install emx documentation
mv $(INSTDIR)/usr/share/sunclock/editkit/README \
$(INSTDIR)/usr/share/doc/sunclock/README.emx
mv $(INSTDIR)/usr/share/sunclock/editkit/MANUAL.emacs \
$(INSTDIR)/usr/share/doc/sunclock/MANUAL.emx
install -m644 editkit/CHANGELOG \
$(INSTDIR)/usr/share/doc/sunclock/changelog.emx
rm -f $(INSTDIR)/usr/share/man/man1/emx.1
override_dh_installchangelogs:
dh_installchangelogs CHANGES
override_dh_compress:
dh_compress -XMANUAL.emx
|