| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
export DH_OPTIONSscip-debian debian mapcache 1.16.0-1 mapcache/rules/DH_OPTIONS. |
| 9 |
|
| 10 |
|
| 11 |
export DEB_BUILD_MAINT_OPTIONSscip-debian debian mapcache 1.16.0-1 mapcache/rules/DEB_BUILD_MAINT_OPTIONS.=hardening=+all |
| 12 |
|
| 13 |
|
| 14 |
export DEB_CFLAGS_MAINT_APPENDscip-debian debian mapcache 1.16.0-1 mapcache/rules/DEB_CFLAGS_MAINT_APPEND.=-DNDEBUG |
| 15 |
|
| 16 |
DEB_BUILD_ARCHscip-debian debian mapcache 1.16.0-1 mapcache/rules/DEB_BUILD_ARCH. ?= $(shellscip-debian debian mapcache 1.16.0-1 mapcache/rules/shell. dpkg-architecture -qDEB_BUILD_ARCH) |
| 17 |
|
| 18 |
CPPFLAGSscip-debian debian mapcache 1.16.0-1 mapcache/rules/CPPFLAGS.:=$(shellscip-debian debian mapcache 1.16.0-1 mapcache/rules/shell. dpkg-buildflags --get CPPFLAGS) |
| 19 |
CFLAGSscip-debian debian mapcache 1.16.0-1 mapcache/rules/CFLAGS.:=$(shellscip-debian debian mapcache 1.16.0-1 mapcache/rules/shell. dpkg-buildflags --get CFLAGS) |
| 20 |
LDFLAGSscip-debian debian mapcache 1.16.0-1 mapcache/rules/LDFLAGS.:=$(shellscip-debian debian mapcache 1.16.0-1 mapcache/rules/shell. dpkg-buildflags --get LDFLAGS) |
| 21 |
|
| 22 |
CFLAGSscip-debian debian mapcache 1.16.0-1 mapcache/rules/CFLAGS.+=$(CPPFLAGSscip-debian debian mapcache 1.16.0-1 mapcache/rules/CPPFLAGS.) |
| 23 |
CFLAGSscip-debian debian mapcache 1.16.0-1 mapcache/rules/CFLAGS.+=$(LDFLAGSscip-debian debian mapcache 1.16.0-1 mapcache/rules/LDFLAGS.) |
| 24 |
|
| 25 |
include /usr/share/dpkg/pkg-info.mk |
| 26 |
|
| 27 |
UPSTREAM_VERSIONscip-debian debian mapcache 1.16.0-1 mapcache/rules/UPSTREAM_VERSION. = $(shellscip-debian debian mapcache 1.16.0-1 mapcache/rules/shell. echo $(DEB_VERSION_UPSTREAMscip-debian debian mapcache 1.16.0-1 mapcache/rules/DEB_VERSION_UPSTREAM.) | sed -e 's/\+.*//') |
| 28 |
|
| 29 |
BUILD_DATEscip-debian debian mapcache 1.16.0-1 mapcache/rules/BUILD_DATE. = $(shellscip-debian debian mapcache 1.16.0-1 mapcache/rules/shell. LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)") |
| 30 |
|
| 31 |
MANPAGESscip-debian debian mapcache 1.16.0-1 mapcache/rules/MANPAGES. := $(wildcardscip-debian debian mapcache 1.16.0-1 mapcache/rules/wildcard. debian/man/*.*.xml) |
| 32 |
|
| 33 |
CMAKE_OPTSscip-debian debian mapcache 1.16.0-1 mapcache/rules/CMAKE_OPTS.:= \ |
| 34 |
-DCMAKE_INSTALL_PREFIX=/usr \ |
| 35 |
-DCMAKE_SKIP_RPATH=ON \ |
| 36 |
-DCMAKE_VERBOSE_MAKEFILE=1 \ |
| 37 |
-DWITH_APACHE=1 \ |
| 38 |
-DWITH_BERKELEY_DB=0 \ |
| 39 |
-DWITH_CGI=1 \ |
| 40 |
-DWITH_FCGI=1 \ |
| 41 |
-DWITH_GEOS=1 \ |
| 42 |
-DWITH_GEOTIFF=0 \ |
| 43 |
-DWITH_LMDB=1 \ |
| 44 |
-DWITH_MAPSERVER=0 \ |
| 45 |
-DWITH_OGR=1 \ |
| 46 |
-DWITH_PCRE=0 \ |
| 47 |
-DWITH_PCRE2=1 \ |
| 48 |
-DWITH_PIXMAN=1 \ |
| 49 |
-DWITH_REDIS=1 \ |
| 50 |
-DWITH_SQLITE=1 \ |
| 51 |
-DWITH_TIFF=1 \ |
| 52 |
-DWITH_TIFF_WRITE_SUPPORT=0 \ |
| 53 |
-DWITH_VERSION_STRING=1 |
| 54 |
|
| 55 |
|
| 56 |
ifneq (,$(filterscip-debian debian mapcache 1.16.0-1 mapcache/rules/filter. $(DEB_BUILD_ARCHscip-debian debian mapcache 1.16.0-1 mapcache/rules/DEB_BUILD_ARCH.),armhf i386 hppa hurd-i386 powerpc)) |
| 57 |
CMAKE_OPTS += -DWITH_MEMCACHE=0 |
| 58 |
else |
| 59 |
CMAKE_OPTS += -DWITH_MEMCACHE=1 |
| 60 |
endif |
| 61 |
|
| 62 |
%scip-debian debian mapcache 1.16.0-1 mapcache/rules/`%`().: |
| 63 |
dh $@ --buildsystem cmake |
| 64 |
|
| 65 |
override_dh_auto_configurescip-debian debian mapcache 1.16.0-1 mapcache/rules/override_dh_auto_configure().: |
| 66 |
dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- $(CMAKE_OPTSscip-debian debian mapcache 1.16.0-1 mapcache/rules/CMAKE_OPTS.) |
| 67 |
|
| 68 |
execute_before_dh_auto_buildscip-debian debian mapcache 1.16.0-1 mapcache/rules/execute_before_dh_auto_build().: |
| 69 |
|
| 70 |
for x in $(MANPAGESscip-debian debian mapcache 1.16.0-1 mapcache/rules/MANPAGES.) ; do \ |
| 71 |
docbook2x-man --string-param header-3="$(BUILD_DATEscip-debian debian mapcache 1.16.0-1 mapcache/rules/BUILD_DATE.)" $$x ; \ |
| 72 |
mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \ |
| 73 |
done |
| 74 |
|
| 75 |
execute_after_dh_auto_installscip-debian debian mapcache 1.16.0-1 mapcache/rules/execute_after_dh_auto_install().: |
| 76 |
mkdir -p $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/usr/lib/cgi-bin/ |
| 77 |
mv $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/usr/bin/mapcache.fcgi $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/usr/lib/cgi-bin/mapcache |
| 78 |
|
| 79 |
|
| 80 |
-find $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/usr/bin -type f -exec chrpath --delete {} \; |
| 81 |
-find $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/usr/lib -name "*.so*" -type f -exec chrpath --delete {} \; |
| 82 |
-find $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/obj-*/apache -name "*.so*" -type f -exec chrpath --delete {} \; |
| 83 |
|
| 84 |
|
| 85 |
-mkdir -p $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/usr/include/mapcache/ |
| 86 |
install -m 644 $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/include/*.h $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/usr/include/mapcache/ |
| 87 |
install -m 644 $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/obj-*/*/*.h $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/usr/include/mapcache/ |
| 88 |
|
| 89 |
|
| 90 |
install -d $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/etc/apache2/mods-available |
| 91 |
install -m 644 $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/mapcache.load $(CURDIRscip-debian debian mapcache 1.16.0-1 mapcache/rules/CURDIR.)/debian/tmp/etc/apache2/mods-available |
| 92 |
|
| 93 |
override_dh_makeshlibsscip-debian debian mapcache 1.16.0-1 mapcache/rules/override_dh_makeshlibs().: |
| 94 |
dh_makeshlibsscip-debian debian debhelper . dh_makeshlibs(). -- -c0 -v$(UPSTREAM_VERSIONscip-debian debian mapcache 1.16.0-1 mapcache/rules/UPSTREAM_VERSION.) |