File: rules

package info (click to toggle)
mpdcon.app 1.5.1-0.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 820 kB
  • sloc: objc: 4,941; makefile: 25
file content (35 lines) | stat: -rwxr-xr-x 1,004 bytes parent folder | download
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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/GNUstep/debian/config.mk

d_app := $(CURDIR)/debian/mpdcon.app
export GNUSTEP_MAKEFILES := $(GS_MAKE_DIR)
export GNUSTEP_INSTALLATION_DOMAIN := SYSTEM
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 need-libbsd=yes \
	  $(shell dpkg-buildflags --export=cmdline)
	convert Resources/MPDCon.tiff -resize 32x32 MPDCon.xpm

override_dh_clean:
	dh_clean MPDCon.xpm

override_dh_link:
	gsdh_gnustep
	dh_installdirs usr/share/GNUstep
	$(RM) $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/COPYING
	$(RM) $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/MPDCon.app/Resources \
	  $(d_app)/usr/share/GNUstep/MPDCon.app
	dh_link usr/share/GNUstep/MPDCon.app \
	  $(GNUSTEP_SYSTEM_APPS)/MPDCon.app/Resources