File: rules

package info (click to toggle)
g2clib 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 13,380 kB
  • sloc: ansic: 26,378; python: 76; sh: 46; makefile: 26
file content (41 lines) | stat: -rwxr-xr-x 946 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
#!/usr/bin/make -f

export DH_VERBOSE=1
include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildtools.mk

# magic debhelper rule
%:
	dh $@ --buildsystem=cmake --builddirectory=debian/build

ifeq ($(DEB_HOST_ARCH_CPU),i386)
  export DEB_CFLAGS_MAINT_APPEND = -ffloat-store
endif

DESTDIR:=$(CURDIR)/debian/tmp/
LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) -I $(CURDIR)/debian/build/src 


export DH_VERBOSE=1

override_dh_auto_configure:
	CC=$(CC) PKG_CONFIG=$(PKG_CONFIG) dh_auto_configure  -- \
		-DCMAKE_C_CFLAGS="${CFLAGS}" \
		-DUSE_Jasper=OFF \
		-DUSE_OpenJPEG=On \
		-DUSE_AEC=On \
		-DENABLE_DOCS=On

override_dh_auto_test:
	dh_auto_test || echo "Ignore failures"


override_dh_auto_install:
	dh_auto_install
	# See #1011424
	rm -f ./debian/build/docs/man/man3/real.3
	# See #1091674
	rm -r debian/build/docs/man/man3/MIN.3
	# See #1102704
	rm -r ./debian/build/docs/man/man3/second.3