| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
include /usr/share/dpkg/architecture.mk |
| 7 |
|
| 8 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 9 |
FRIBIDI_UDEB=libfribidi0-udeb |
| 10 |
|
| 11 |
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
| 12 |
OBJS += xmalloc.o |
| 13 |
else |
| 14 |
export DEB_CFLAGS_MAINT_APPEND=-Os -fomit-frame-pointer -g |
| 15 |
endif |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
| 22 |
dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_configure --reload-all-buildenv-variables -- --enable-malloc --enable-static |
| 23 |
dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build -- -C bin fribidi.1 |
| 24 |
dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_clean |
| 25 |
endif |
| 26 |
dh_auto_configure -- --enable-malloc --enable-static |
| 27 |
|
| 28 |
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
| 29 |
execute_before_dh_auto_build: |
| 30 |
dh_auto_build -- -C bin fribidi |
| 31 |
touch bin/fribidi.1 |
| 32 |
endif |
| 33 |
|
| 34 |
override_dh_makeshlibs: |
| 35 |
dh_makeshlibs -V --add-udeb="$(FRIBIDI_UDEB)" |