File: rules

package info (click to toggle)
node-mapnik 3.7.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,376 kB
  • sloc: cpp: 16,551; xml: 961; sh: 522; makefile: 80; lisp: 10
file content (46 lines) | stat: -rwxr-xr-x 1,006 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Verbose output
export V=1

DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)

# Disable SSE on non-amd64 architectures.
export SSE_MATH=true
ifeq (,$(findstring $(DEB_BUILD_ARCH),"amd64"))
	export SSE_MATH=false
endif

%:
	dh $@

override_dh_auto_configure:
	node-pre-gyp configure --enable_sse=$(SSE_MATH)

override_dh_auto_build:
	node-pre-gyp build --enable_sse=$(SSE_MATH)

override_dh_auto_install:

override_dh_auto_test:

override_dh_install:
	dh_install --list-missing

	dh_buildinfo

	for i in bin/*.js; do \
		cp $$i $(CURDIR)/debian/node-mapnik/usr/bin/`basename $$i .js`; \
	done

	# Don't install binaries with the same name in mapnik-utils
	$(RM) $(CURDIR)/debian/*/usr/bin/mapnik-index
	$(RM) $(CURDIR)/debian/*/usr/bin/mapnik-render
	$(RM) $(CURDIR)/debian/*/usr/bin/mapnik-shapeindex

	chmod 644 $(CURDIR)/debian/node-mapnik/usr/lib/nodejs/mapnik/lib/binding/mapnik.node