File: rules

package info (click to toggle)
libgeo-libproj-ffi-perl 1.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: perl: 1,339; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

PROJ_ABI=$(shell dpkg --search libproj.so.|grep /usr/lib|cut -d: -f1|sort|uniq|tail -1)

%:
	dh $@

override_dh_gencontrol:
	dh_gencontrol -- -Vproj:Depends="$(PROJ_ABI)"

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#! /usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*