File: rules

package info (click to toggle)
libpll 0.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 31,268 kB
  • sloc: ansic: 25,968; yacc: 691; makefile: 391; python: 295; lex: 204; sh: 50
file content (37 lines) | stat: -rwxr-xr-x 839 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
ifneq ($(filter $(DEB_HOST_ARCH_CPU), amd64 i386),)
	dh_auto_configure
else
	dh_auto_configure -- --disable-sse --disable-avx --disable-avx2
endif

override_dh_install:
	dh_install
	d-shlibmove --commit \
		    --multiarch \
		    --devunversioned \
		    --exclude-la \
		    --override s/ld64-1-dev// \
		    --override s/ld-kfreebsd-x86-64-1-dev// \
		    --movedev debian/tmp/usr/include/* usr/include \
		    debian/tmp/usr/lib/*/*.so

override_dh_installman:
	sed -i 's/conjuction/conjunction/' man/libpll.3
	dh_installman

override_dh_missing:
	find . -type f \( -name "*.la" -o -name "libpll.3" \) | xargs rm -rf
	find . -name examples | xargs rm -rf
	dh_missing