File: rules

package info (click to toggle)
ossp-uuid 1.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 532 kB
  • sloc: ansic: 1,504; cpp: 255; sh: 186; makefile: 125
file content (34 lines) | stat: -rwxr-xr-x 957 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
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk

override_dh_auto_configure:
	dh_auto_configure -- \
		--cache-file=config.cache \
		--includedir=/usr/include/ossp \
		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--with-perl \
		--with-perl-compat \
		--without-dce \
		--with-cxx \
		--with-libname=libossp-uuid \
		$(shell dpkg-buildflags --export=cmdline)

override_dh_auto_build:
	dh_auto_build   -- MFLAGS='NOECHO= NOOP=@ \
		CC="$(CC)" \
		OPTIMIZE="$(shell dpkg-buildflags --get CPPFLAGS; dpkg-buildflags --get CFLAGS)" \
		OTHERLDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)"'

override_dh_installchangelogs:
	dh_installchangelogs debian/changelog.upstream

override_dh_installdocs:
	dh_installdocs README
	cp debian/NEWS.upstream debian/libossp-uuid16/usr/share/doc/libossp-uuid16/NEWS

override_dh_auto_install:
	chrpath -d perl/blib/arch/auto/OSSP/uuid/uuid.so
	dh_auto_install -- MFLAGS='NOECHO= NOOP=@ INSTALLDIRS=vendor'

%:
	dh $@