| 1 |
#! /usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
EXAMPLES = $(TMP)/usr/share/doc/$(PACKAGE)/examples |
| 6 |
|
| 7 |
TEST_FILES=$(wildcard t/*.t) |
| 8 |
FILTERED_TEST_FILES=$(filter-out t/shader.t, ${TEST_FILES}) |
| 9 |
|
| 10 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
override_dh_auto_build: |
| 16 |
( cd $(CURDIR)/utils; perl glext_procs.pl ) |
| 17 |
dh_auto_build |
| 18 |
|
| 19 |
override_dh_auto_test: |
| 20 |
# run t/*.t, skip test.pl |
| 21 |
dh_auto_test -- TEST_FILES="$(FILTERED_TEST_FILES)" TEST_FILE=/dev/null |
| 22 |
|
| 23 |
override_dh_auto_install: |
| 24 |
mv --no-clobber --verbose blib/lib/*.pl examples/ |
| 25 |
dh_auto_install |
| 26 |
find $(TMP) -type f -name "*.pod" -print0 | xargs -r0 chmod -x |
| 27 |
|
| 28 |
override_dh_installexamples: |
| 29 |
dh_installexamples |
| 30 |
find $(EXAMPLES) -type f -print0 | \ |
| 31 |
xargs -r0 sed -i -e '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' |
| 32 |
chmod -x $(EXAMPLES)/glxgears.pl |