File: rules

package info (click to toggle)
popplerkit.framework 0.0.20051227svn-8.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,564 kB
  • sloc: objc: 2,303; cpp: 671; sh: 469; ansic: 55; makefile: 27
file content (47 lines) | stat: -rwxr-xr-x 1,547 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# IMPORTANT: This package deliberately uses CDBS; please do not switch
# to modern dh.  We (Debian GNUstep team) need at least one CDBS-based
# library package under our control in order to test and improve the
# GNUstep cdbs rules.

DEB_GS_FRAMEWORKS = PopplerKit

DEB_GS_CURRENT_VERSION_NAME_PopplerKit = 1.0
DEB_GS_DEVPKG_NAME_PopplerKit = libpopplerkit-dev

include /usr/share/cdbs/1/rules/gnustep.mk
include /usr/share/cdbs/1/class/gnumakefile.mk

DEB_GS_AUTO_DH_INSTALL = y

DEB_DH_SHLIBDEPS_INCLUDE = $(d_lib)/$(GS_LIBS_DIR)

framework = PopplerKit
d_lib = debian/$(DEB_GS_LIBPKG_NAME_$(framework))
frameworkver = $(DEB_GS_CURRENT_VERSION_NAME_$(framework))

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

LDFLAGS += -Wl,-z,defs -Wl,--as-needed
# Support "noopt" and "terse" in DEB_BUILD_OPTIONS.
DEB_MAKE_EXTRA_ARGS += OBJCFLAGS="$(CFLAGS)" CCFLAGS="$(CFLAGS)" \
                         $(verbose) $(optim)

clean::
	rm -f config.make

binary-post-install/libpopplerkit0::
	: # use fonts from gsfonts package instead of locally distributed ones
	fonts=`ls Fonts/ | sed -e s,Fonts/,,`; \
	for i in $$fonts; do \
	  rm $(d_lib)/$(GS_FRAMEWORKS_DIR)/$(framework).framework/Versions/$(frameworkver)/Resources/$$i; \
	  ln -s /usr/share/fonts/type1/gsfonts/$$i \
		$(d_lib)/$(GS_FRAMEWORKS_DIR)/$(framework).framework/Versions/$(frameworkver)/Resources/$$i; \
	done
	dh_link -plibpopplerkit0