| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DH_VERBOSE=1 |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
|
| 12 |
override_dh_auto_configure: |
| 13 |
dh_auto_configure -- --enable-generic --disable-download --disable-hpddmFreeFEM-documentation.pdf |
| 14 |
|
| 15 |
override_dh_auto_build: |
| 16 |
|
| 17 |
@echo 'blhc: ignore-line-regexp: eval\ \./ff-c\+\+\ .*\.cpp.*' |
| 18 |
@echo 'blhc: ignore-line-regexp: eval\ \.\./seq/ff-c\+\+\ .*\.cpp.*' |
| 19 |
@echo 'blhc: ignore-line-regexp: \.\./seq/ff-c\+\+\ .*\.cpp.*' |
| 20 |
dh_auto_build |
| 21 |
|
| 22 |
wrong_encoding_files = \ |
| 23 |
$(CURDIR)/debian/tmp/usr/share/FreeFEM/4.*/examples/bug/SegmentationFault.edp \ |
| 24 |
$(CURDIR)/debian/tmp/usr/lib/ff++/4.*/include/AFunction.hpp \ |
| 25 |
$(CURDIR)/debian/tmp/usr/lib/ff++/4.*/include/FESpacen.hpp |
| 26 |
|
| 27 |
override_dh_auto_install: |
| 28 |
dh_auto_install |
| 29 |
rm $(CURDIR)/debian/tmp/usr/lib/ff++/4.*/include/config.h |
| 30 |
for ifile in $(wrong_encoding_files); do \ |
| 31 |
iconv --from-code=iso-8859-1 --to-code=utf-8 --output=$$ifile.tmp $$ifile; \ |
| 32 |
mv $$ifile.tmp $$ifile; \ |
| 33 |
done |
| 34 |
mv debian/tmp/usr/bin/bamg debian/tmp/usr/bin/ffbamg |
| 35 |
rdfind -outputname debian/results.txt -makesymlinks true debian/tmp/usr/bin/ |
| 36 |
symlinks -r -s -c debian/tmp/usr/bin/ |
| 37 |
|
| 38 |
sed --in-place -re "s/-ffile-prefix-map=\S*=. //" debian/tmp/usr/bin/ff-c++ |
| 39 |
|
| 40 |
override_dh_install: |
| 41 |
dh_install |
| 42 |
|
| 43 |
if [ -d debian/libfreefem++-dev ]; then \ |
| 44 |
sed --in-place "s/<config.h>/<FreeFEM-config.h>/" debian/libfreefem++-dev/usr/include/freefem++/*.hpp ; \ |
| 45 |
fi |
| 46 |
|
| 47 |
override_dh_auto_test: |
| 48 |
|