| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
GDAL_ABI=$(shell dpkg --search libgdal.so.|grep /usr/lib|cut -d: -f1|sort|uniq|tail -1) |
| 6 |
|
| 7 |
PACKAGE = $(shell dh_listpackages) |
| 8 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 9 |
|
| 10 |
include /usr/share/dpkg/architecture.mk |
| 11 |
PERLVER := $(shell perl -MConfig -e 'print $$Config{version}') |
| 12 |
ARCHLIB := $(shell perl -I/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERLVER) -MConfig -e 'print $$Config{vendorarch}') |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ |
| 16 |
|
| 17 |
execute_after_dh_auto_install: |
| 18 |
mkdir -p $(TMP)$(ARCHLIB)/Geo/GDAL/ |
| 19 |
mv -v $(TMP)/usr/share/perl5/Geo/GDAL/gdal.pm \ |
| 20 |
$(TMP)$(ARCHLIB)/Geo/GDAL/ |
| 21 |
|
| 22 |
override_dh_gencontrol: |
| 23 |
dh_gencontrol -- -Vgdal:Depends="$(GDAL_ABI)" |