File: rules

package info (click to toggle)
node-opencv 7.0.0%2Bgit20200316.f0a03a4b-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 23,128 kB
  • sloc: xml: 476,274; cpp: 6,042; javascript: 2,334; makefile: 41; sh: 29; ansic: 20
file content (42 lines) | stat: -rwxr-xr-x 1,022 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
#!/usr/bin/make -f
# -*- makefile -*-

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

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export PKG_CONFIG_OPENCV4=1

%:
	dh $@

override_dh_auto_configure:
	find $(CURDIR) -name '*.xml' -exec chmod a-x {} \;
	find $(CURDIR) -name '*.html' -exec chmod a-x {} \;
	find $(CURDIR) -name '*.gyp' -exec chmod a-x {} \;
	find $(CURDIR) -name '*.md' -exec chmod a-x {} \;
	find $(CURDIR) -name '*.png' -exec chmod a-x {} \;
	find $(CURDIR) -name '*.jpg' -exec chmod a-x {} \;
	find $(CURDIR) -name '*.h' -exec chmod a-x {} \;
	chmod a-x examples/make-example-files.sh
	chmod a-x examples/make-example-files.sh
	dh_auto_configure
	node-gyp configure

override_dh_auto_build:
	node-gyp build
	find $(CURDIR)/build -name 'opencv.node' -exec chmod a-x {} \;

override_dh_auto_clean:
	dh_auto_clean
	rm -rf node_modules
	rm -rf build

override_dh_installexamples:
	dh_installexamples -Xtmp/

override_dh_auto_test:
	node test/unit.js