File: rules

package info (click to toggle)
orc 1:0.4.28-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,888 kB
  • sloc: ansic: 77,115; sh: 4,247; xml: 4,080; makefile: 335
file content (38 lines) | stat: -rwxr-xr-x 1,035 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

%:
	dh $@ --buildsystem=meson --parallel

override_dh_auto_configure:
	if test -r /proc/cpuinfo; then \
		cat /proc/cpuinfo; \
	fi
	dh_auto_configure --builddirectory=deb-build -- --default-library shared
	dh_auto_configure --builddirectory=deb-build-static -- --default-library=static -Db_staticpic=true -Ddisable_gtkdoc=true -Ddisable_tests=true

override_dh_auto_build:
	dh_auto_build --builddirectory=deb-build
	dh_auto_build --builddirectory=deb-build-static

override_dh_auto_clean:
	rm -rf deb-build deb-build-static
	dh_auto_clean

override_dh_auto_install:
	dh_auto_install --builddirectory=deb-build
	dh_auto_install --builddirectory=deb-build-static

override_dh_auto_test:
	dh_auto_test --builddirectory=test || true

override_dh_strip:
	dh_strip -pliborc-0.4-0 --dbg-package=liborc-0.4-0-dbg
	dh_strip --remaining-packages

override_dh_makeshlibs:
	dh_makeshlibs -pliborc-0.4-0 -V 'liborc-0.4-0 (>= 1:0.4.25)' -- -c4