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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
SHELL := /bin/bash
include /usr/share/GNUstep/debian/config.mk
d_app := $(CURDIR)/debian/gnustep-examples
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined -Wl,--as-needed
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
optim := debug=yes
endif
%:
dh $@
override_dh_auto_build:
$(MAKE) $(optim) messages=yes $(shell dpkg-buildflags --export=cmdline)
convert gui/Calculator/Calculator.app.tiff -resize 32x32 Calculator.xpm
convert gui/Ink/Ink_app.tiff -resize 32x32 Ink.xpm
override_dh_clean:
dh_clean Calculator.xpm Ink.xpm
override_dh_installman:
dh_installman debian/gnustep-examples.1
# Create symlinks for the manpage. Deliberately do not derive the
# programs' list from /usr/bin -- if an app is added upstream; the
# manpage has to be updated.
for p in Calculator CurrencyConverter GSTest Ink md5Digest \
NSBrowserTest NSImageTest NSPanelTest NSScreenTest; do \
dh_link usr/share/man/man1/gnustep-examples.1 \
usr/share/man/man1/$$p.1; \
done
override_dh_link:
find $(d_app)$(GNUSTEP_SYSTEM_APPS) -name \*.desktop -delete
# Move arch-independent Resources to /usr/share.
gsdh_gnustep
dh_installdirs usr/share/GNUstep/GSTest.app
# As above, deliberately hardcode the apps to notice the appearance of
# an offending one (lintian will emit a warning image-file-in-usr-lib).
for p in Calculator Ink NSPanelTest; do \
mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/$$p.app/Resources \
$(d_app)/usr/share/GNUstep/$$p.app \
&& dh_link usr/share/GNUstep/$$p.app \
$(GNUSTEP_SYSTEM_APPS)/$$p.app/Resources; \
done
# We cannot symlink Resources straight away because they contain
# arch-dependent executables.
for i in \
$(d_app)$(GNUSTEP_SYSTEM_APPLICATION_SUPPORT)/GSTest/Image-test.bundle/Resources/*.{tiff,png,svg,pdf}; do \
mv $$i $(d_app)/usr/share/GNUstep/GSTest.app/ \
&& dh_link usr/share/GNUstep/GSTest.app/$${i##*/} \
$(GNUSTEP_SYSTEM_APPLICATION_SUPPORT)/GSTest/Image-test.bundle/Resources/$${i##*/}; \
done
for i in \
$(d_app)$(GNUSTEP_SYSTEM_APPLICATION_SUPPORT)/GSTest/ImageSelection-test.bundle/Resources/*.{tiff,icns}; do \
mv $$i $(d_app)/usr/share/GNUstep/GSTest.app/ \
&& dh_link usr/share/GNUstep/GSTest.app/$${i##*/} \
$(GNUSTEP_SYSTEM_APPLICATION_SUPPORT)/GSTest/ImageSelection-test.bundle/Resources/$${i##*/}; \
done
for i in \
$(d_app)$(GNUSTEP_SYSTEM_APPLICATION_SUPPORT)/GSTest/PixelExactDrawing-test.bundle/Resources/*.tiff; do \
mv $$i $(d_app)/usr/share/GNUstep/GSTest.app/ \
&& dh_link usr/share/GNUstep/GSTest.app/$${i##*/} \
$(GNUSTEP_SYSTEM_APPLICATION_SUPPORT)/GSTest/PixelExactDrawing-test.bundle/Resources/$${i##*/}; \
done
|