File: rules

package info (click to toggle)
lcms2 2.17-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,632 kB
  • sloc: ansic: 46,202; sh: 4,263; pascal: 1,960; makefile: 197; cpp: 84
file content (46 lines) | stat: -rwxr-xr-x 1,619 bytes parent folder | download | duplicates (2)
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 -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

CONFFLAGS = \
	    -D utils=true \
	    -D fastfloat=true \
	    -D threaded=true \
	    -D default_library=both

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

# additionally enable PIE and BINDNOW, https://wiki.debian.org/Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Fix for https://bugs.debian.org/749975, after changes to upstream code in 2.8
# see also https://github.com/mm2/Little-CMS/issues/32
# https://lists.debian.org/debian-mentors/2016/10/msg00158.html
# Applied in /usr/share/dpkg/buildflags.mk
export DEB_CPPFLAGS_MAINT_APPEND = -DCMS_PTR_ALIGNMENT=_Alignof\(double\)

%:
	dh $@ --without autoreconf --buildsystem=meson

# dh_strip_nondeterminism repackages the src.zip file, which is completely
# unnecessary
# Bug fix for 935177
.PHONY: override_dh_strip_nondeterminism
override_dh_strip_nondeterminism:
	dh_strip_nondeterminism --exclude=src.zip

# pass configuration flags
.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	dh_auto_configure -- $(CONFFLAGS)

# don't run the tests in parallel and grant them more time each
# to allow them to finish on slower build hosts
.PHONY: override_dh_auto_test-arch
override_dh_auto_test-arch:
	dh_auto_test --no-parallel -- --timeout-multiplier 6