File: rules

package info (click to toggle)
fribidi 1.0.16-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,024 kB
  • sloc: ansic: 8,767; sh: 4,766; makefile: 372; python: 27
file content (35 lines) | stat: -rwxr-xr-x 957 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
FRIBIDI_UDEB=libfribidi0-udeb

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
OBJS += xmalloc.o
else
export DEB_CFLAGS_MAINT_APPEND=-Os -fomit-frame-pointer -g
endif

%:
	dh $@

override_dh_auto_configure:
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_configure --reload-all-buildenv-variables -- --enable-malloc --enable-static
	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build -- -C bin fribidi.1
	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_clean
endif
	dh_auto_configure -- --enable-malloc --enable-static

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
execute_before_dh_auto_build:
	dh_auto_build -- -C bin fribidi
	touch bin/fribidi.1
endif

override_dh_makeshlibs:
	dh_makeshlibs -V --add-udeb="$(FRIBIDI_UDEB)"