File: rules

package info (click to toggle)
popplerkit.framework 0.0.20051227svn-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,396 kB
  • ctags: 120
  • sloc: objc: 2,303; sh: 914; cpp: 574; ansic: 55; makefile: 24
file content (37 lines) | stat: -rwxr-xr-x 1,092 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

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

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
include /usr/share/cdbs/1/rules/dpatch.mk

DEB_GS_AUTO_LINTIAN_OVERRIDES = y
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 messages=yes

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