File: rules

package info (click to toggle)
cynthiune.app 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 3,204 kB
  • sloc: objc: 13,387; ansic: 497; cpp: 155; makefile: 109
file content (40 lines) | stat: -rwxr-xr-x 1,337 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
36
37
38
39
40
#!/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/cynthiune.app
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined -Wl,--as-needed \
				     -Wl,-rpath,/usr/lib/cynthiune.app

%:
	dh $@

override_dh_auto_build:
# Don't build the Esound bundle (#856078).
	dh_auto_build -- disable-esound=yes messages=yes $(optim) \
	  $(shell dpkg-buildflags --export=cmdline)

override_dh_clean:
	dh_clean -XChangeLog.orig -XPlaylistController.m.orig

override_dh_auto_install:
# Cheat GNUstep Make to create the symlinks for the Cynthiune library
# in /usr/lib/cynthiune.app.
	dh_auto_install -- disable-esound=yes DESTDIR=$(d_app) \
	  GNUSTEP_SYSTEM_LIBRARIES=/usr/lib/cynthiune.app
	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/COPYING
	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop

override_dh_link:
	gsdh_gnustep
	dh_installdirs usr/share/GNUstep
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/Cynthiune.app/Resources \
	  $(d_app)/usr/share/GNUstep/Cynthiune.app
	dh_link /usr/share/GNUstep/Cynthiune.app \
	  $(GNUSTEP_SYSTEM_APPS)/Cynthiune.app/Resources

override_dh_makeshlibs:
# libCynthiune is installed as a private library; avoid lintian warnings.
	dh_makeshlibs --noscripts