File: rules

package info (click to toggle)
gnustep-xcode 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,168 kB
  • sloc: objc: 9,258; sh: 61; makefile: 20
file content (37 lines) | stat: -rwxr-xr-x 1,193 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

include /usr/share/GNUstep/debian/config.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-rpath,/usr/lib/gnustep-xcode

res := $(GNUSTEP_SYSTEM_FRAMEWORKS)/XCode.framework/Versions/0/Resources

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- $(optim) $(verbose) \
	  $(shell dpkg-buildflags --export=cmdline)

override_dh_auto_install:
# Install the library as private; there are no rdeps.
	dh_auto_install -- GNUSTEP_SYSTEM_LIBRARIES=/usr/lib/gnustep-xcode

execute_before_dh_fixperms:
# Building a framework fails because this script is not executable and
# has CLRF line terminators.  Furthermore, there are two legitimate
# lintian issues (E: shell-script-fails-syntax-check and W:
# script-not-executable).
	dos2unix debian/xcode-tools$(res)/create-dummy-class.sh
	chmod +x debian/xcode-tools$(res)/create-dummy-class.sh

execute_before_dh_link:
	gsdh_gnustep
# Delete headers and broken symlinks.
	$(RM) -r debian/xcode-tools/usr/include
	find debian/xcode-tools -type l -name Headers -delete

override_dh_makeshlibs:
# Avoid lintian complaints for the private library.
	dh_makeshlibs --no-scripts