| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
FLAVOURS = gtk3 |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 8 |
include /usr/share/dpkg/buildflags.mk |
| 9 |
|
| 10 |
COMMON_CONFIGURE_FLAGS = -DENABLE_X11=ON |
| 11 |
COMMON_CONFIGURE_FLAGS += -DLIB_INSTALL_DIR="lib/${DEB_HOST_MULTIARCH}" |
| 12 |
|
| 13 |
CONFIGURE_FLAGS_gtk3 = -DENABLE_GTK3=ON -DENABLE_GTK2=OFF |
| 14 |
|
| 15 |
%: |
| 16 |
dh $@ |
| 17 |
|
| 18 |
override_dh_auto_configure: $(FLAVOURS:%=doconfigure-%) |
| 19 |
|
| 20 |
doconfigure-%: |
| 21 |
DH_VERBOSE=1 dh_auto_configure --builddirectory=builddir/$* -- $(COMMON_CONFIGURE_FLAGS) $(CONFIGURE_FLAGS_$*) |
| 22 |
|
| 23 |
override_dh_auto_build: $(FLAVOURS:%=dobuild-%) |
| 24 |
|
| 25 |
dobuild-%: |
| 26 |
dh_auto_build --builddirectory=builddir/$* |
| 27 |
|
| 28 |
override_dh_auto_test: |
| 29 |
xvfb-run -a dh_auto_test --no-parallel --builddirectory=builddir/gtk3 |
| 30 |
|
| 31 |
override_dh_auto_install: $(FLAVOURS:%=doinstall-%) |
| 32 |
|
| 33 |
doinstall-%: |
| 34 |
dh_auto_install --builddirectory=builddir/$* --destdir=debian/tmp/$* |
| 35 |
|
| 36 |
override_dh_install: |
| 37 |
dh_install -pmaliit-inputcontext-gtk3 --sourcedir=debian/tmp/gtk3 |
| 38 |
|
| 39 |
override_dh_missing: |
| 40 |
dh_missing -pmaliit-inputcontext-gtk3 --sourcedir=debian/tmp/gtk3 --fail-missing |
| 41 |
|
| 42 |
get-orig-source: |
| 43 |
uscan --noconf --force-download --rename --download-current-version --destdir=.. |