1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
#!/usr/bin/make -f
MANPAGES:=$(wildcard debian/man/*.*.xml)
%:
dh $@ --buildsystem cmake \
--parallel
override_dh_auto_clean-indep:
dh_auto_clean --sourcedirectory python --buildsystem pybuild
override_dh_clean:
dh_clean
rm -f README.txt
rm -f debian/man/*.1
override_dh_auto_configure:
dh_auto_configure --buildsystem cmake -- \
-DCMAKE_VERBOSE_MAKEFILE=1 \
-DWITH_GDAL=TRUE \
-DWITH_GEOTIFF=TRUE \
-DGEOTIFF_INCLUDE_DIR=/usr/include/geotiff
override_dh_auto_configure-indep:
dh_auto_configure --sourcedirectory python --buildsystem pybuild
override_dh_auto_build-arch:
# Create man pages from DocBook XML
for x in $(MANPAGES) ; do \
docbook2x-man $$x ; \
mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
done
dh_auto_build
override_dh_auto_build-indep:
dh_auto_build --sourcedirectory python --buildsystem pybuild
override_dh_auto_test:
# don't run tests
override_dh_auto_install-indep:
chmod -x python/examples/* python/scripts/*
dh_auto_install --sourcedirectory python --buildsystem pybuild
override_dh_install-arch:
dh_install --arch --list-missing
# remove capi from liblas-dev
rm -vrf debian/liblas-dev/usr/include/liblas/capi/
# removing embedded rpath in binaries
-find debian/liblas-bin/usr/bin -type f -exec chrpath --delete {} \;
override_dh_install-indep:
dh_install --indep --list-missing
dh_python2 --indep
|