-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules
executable file
·62 lines (49 loc) · 1.2 KB
/
rules
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
60
61
62
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
# For tests
export GDAL_DATA=$(shell gdal-config --datadir)
export PROJ_LIB=/usr/share/proj
export ICU_DATA=$(shell icu-config --icudatadir)
SCONS_FLAGS= \
CXX=g++ \
CC=gcc \
BOOST_LIBS=/usr/lib/x86_64-linux-gnu \
CAIRO=True \
COLOR_PRINT=False \
DEMO=True \
SVG_RENDERER=True \
PGSQL2SQLITE=True \
SYSTEM_FONTS=/usr/share/fonts/truetype \
DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr
CFLAGS = -g
ifneq (,$(findstring stats_basic,$(DEB_BUILD_OPTIONS)))
SCONS_FLAGS += ENABLE_STATS=True
endif
ifneq (,$(findstring stats_render,$(DEB_BUILD_OPTIONS)))
SCONS_FLAGS += ENABLE_STATS_RENDER=True
endif
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -Og
endif
override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
# The test suite passes only with specific library versions
# but the output can be useful.
make test || true
else
echo "Tests disabled"
endif
override_dh_auto_configure:
./configure $(SCONS_FLAGS) CUSTOM_CXXFLAGS="$(CFLAGS)"
dh_auto_configure
override_dh_prep:
dh_prep -Xdebian/tmp
override_dh_install:
JOBS=2 make install
dh_install
override_dh_auto_clean:
-make distclean
rm -rf config.py.backup
%:
dh $@