File: rules

package info (click to toggle)
libimage-librsvg-perl 0.07-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 640 kB
  • ctags: 123
  • sloc: perl: 81; makefile: 20
file content (31 lines) | stat: -rwxr-xr-x 742 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
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

CFLAGS:=	$(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS:=	$(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS:=	$(shell dpkg-buildflags --get LDFLAGS)

ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')

export CFLAGS CPPFLAGS LDFLAGS

override_dh_auto_configure:
	dh_auto_configure -- LIBS='-lrsvg-2'

override_dh_auto_build:
	dh_auto_build -- OPTIMIZE="$(CFLAGS) $(CPPFLAGS)" LD_RUN_PATH=""

override_dh_auto_install:
	dh_auto_install
	$(RM) -v $(TMP)/$(ARCHLIB)/Image/examples.pl

override_dh_installexamples:
	dh_installexamples -Xsvg.gz examples/*

override_dh_compress:
	dh_compress --exclude=.svg --exclude=examples.pl

%:
	dh $@