| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
override_dh_auto_build: |
| 12 |
# make sure to remove all pre-built files, so that e.g. |
| 13 |
# .c files in xs/ are rebuilt from swig input files |
| 14 |
perl ./Build clean |
| 15 |
|
| 16 |
# after cleaning we get an error: |
| 17 |
# "Configuration seems to be out of date, please re-run 'perl Build.PL' again." |
| 18 |
# so let's do that was well |
| 19 |
dh_auto_configure |
| 20 |
|
| 21 |
# now we can finally build |
| 22 |
dh_auto_build |
| 23 |
|
| 24 |
override_dh_installexamples: |
| 25 |
dh_installexamples |
| 26 |
sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/sf/mathieu.pl |