| 1 |
#!/usr/bin/make -f |
| 2 |
#export DH_VERBOSE=1 |
| 3 |
|
| 4 |
#export DEB_LDFLAGS_MAINT_APPEND = |
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
|
| 7 |
CONFIGURE_FLAGS = \ |
| 8 |
--with-python=/usr/bin/python3 |
| 9 |
|
| 10 |
ifeq (,$(filter noinsttest,$(DEB_BUILD_PROFILES))) |
| 11 |
CONFIGURE_FLAGS += --enable-installed-tests |
| 12 |
else |
| 13 |
CONFIGURE_FLAGS += --disable-installed-tests |
| 14 |
endif |
| 15 |
|
| 16 |
%: |
| 17 |
dh $@ --with python3 |
| 18 |
|
| 19 |
.PHONY: override_dh_auto_configure |
| 20 |
override_dh_auto_configure: |
| 21 |
dh_auto_configure -- $(CONFIGURE_FLAGS) |
| 22 |
|
| 23 |
.PHONY: override_dh_autoreconf |
| 24 |
override_dh_autoreconf: |
| 25 |
touch ChangeLog # for building on the git |
| 26 |
dh_autoreconf |
| 27 |
|
| 28 |
.PHONY: override_dh_install |
| 29 |
override_dh_install: |
| 30 |
dh_install |
| 31 |
dh_apparmor --profile-name=usr.lib.ibus.ibus-engine-hangul -pibus-hangul |
| 32 |
dh_apparmor --profile-name=usr.lib.ibus.ibus-setup-hangul -pibus-hangul |
| 33 |
|
| 34 |
.PHONY: override_dh_auto_test |
| 35 |
override_dh_auto_test: |
| 36 |
ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES))) |
| 37 |
env DISABLE_GUI_TESTS=ibus-hangul \ |
| 38 |
dh_auto_test |
| 39 |
endif |