File: rules

package info (click to toggle)
brotli 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,188 kB
  • sloc: ansic: 36,232; python: 817; sh: 97; makefile: 62; cpp: 14
file content (43 lines) | stat: -rwxr-xr-x 849 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export PYBUILD_NAME = brotli

ifeq (,$(filter nopython,$(DEB_BUILD_PROFILES)))
%:
	dh $@ --buildsystem=pybuild --with=python3

override_dh_auto_configure:
	dh_auto_configure
	dh_auto_configure --buildsystem=cmake -- -DBROTLI_BUILD_FOR_PACKAGE=ON

override_dh_auto_build:
	dh_auto_build
	dh_auto_build --buildsystem=cmake

override_dh_auto_install:
	dh_auto_install
	dh_auto_install --buildsystem=cmake

override_dh_auto_clean:
	dh_auto_clean
	dh_auto_clean --buildsystem=cmake

override_dh_auto_test:
	dh_auto_test
	dh_auto_test --buildsystem=cmake
else
%:
	dh $@ --buildsystem=cmake
endif

override_dh_missing:
	dh_missing --fail-missing

override_dh_install:
	# drop "-static" part from static libs
	debian/rename-static-libs.sh
	dh_install