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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
MODULE_PATH=/usr/lib/nodejs/srs/lib/binding/srs.node
%:
dh $@
override_dh_install:
dh_install
dh_buildinfo
chmod 644 $(CURDIR)/debian/node-srs$(MODULE_PATH)
override_dh_link:
dh_link `gdal-config --datadir` usr/lib/nodejs/srs/srs_data
override_dh_auto_configure:
node-gyp configure -module_name=srs -module_path=lib/binding/ -shared_gdal=1
override_dh_auto_build:
node-gyp build
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ln -s $(CURDIR)/build/lib/binding $(CURDIR)/lib/
# disable a test that needs gdal 1.11 to succeed
mocha -g "GeoJSON should detect mercator" -i || testOk=$?
rm $(CURDIR)/lib/binding
exit ${testOk}
endif
|