File: rules

package info (click to toggle)
lcms2 2.9-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 17,060 kB
  • sloc: ansic: 36,401; sh: 11,330; pascal: 1,958; makefile: 133; cpp: 84
file content (31 lines) | stat: -rwxr-xr-x 1,136 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
#!/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.

# 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 $@

# Use automatic dbgsym packages, starting with 2.7 versions
# https://lists.debian.org/debian-devel/2015/12/msg00262.
.PHONY: override_dh_strip
override_dh_strip:
	dh_strip --dbgsym-migration='liblcms2-dbg (<< 2.7)'
#	dh_strip --dbg-package=liblcms2-dbg