| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
export CONFIG_SHELL=/bin/bash |
| 6 |
export DEB_BUILD_MAINT_OPTIONS := hardening=+all |
| 7 |
|
| 8 |
|
| 9 |
-include /usr/share/dpkg/buildtools.mk |
| 10 |
|
| 11 |
|
| 12 |
export DH_OPTIONS = -X.la -X.ttf |
| 13 |
|
| 14 |
|
| 15 |
export DH_OPTIONS += -O--builddirectory=build/x |
| 16 |
|
| 17 |
|
| 18 |
export DH_OPTIONS += -O--buildsystem=cmake+ninja |
| 19 |
|
| 20 |
DEB_CONFIGURE_EXTRA_FLAGS = \ |
| 21 |
-DENABLE_MAINTAINER_TOOLS=ON \ |
| 22 |
-DENABLE_WRITE_PFM=ON \ |
| 23 |
-DENABLE_TILE_PATH=ON \ |
| 24 |
-DENABLE_DEBUG_RAW_POINTS=ON \ |
| 25 |
-DENABLE_FONTFORGE_EXTRAS=ON |
| 26 |
|
| 27 |
ifneq (_fontforge-doc,$(filter nodoc,$(DEB_BUILD_OPTIONS))_$(filter fontforge-doc,$(shell dh_listpackages))) |
| 28 |
DEB_CONFIGURE_EXTRA_FLAGS += -DENABLE_DOCS=OFF |
| 29 |
endif |
| 30 |
|
| 31 |
override_dh_auto_configure: |
| 32 |
cp debian/multimastersubrs.c fontforge/ |
| 33 |
dh_auto_configure --builddirectory=build/nox -- \ |
| 34 |
$(DEB_CONFIGURE_EXTRA_FLAGS) -DENABLE_GUI=OFF -DENABLE_DOCS=OFF |
| 35 |
dh_auto_configure -- \ |
| 36 |
$(DEB_CONFIGURE_EXTRA_FLAGS) |
| 37 |
|
| 38 |
execute_before_dh_auto_build: |
| 39 |
dh_auto_build --builddirectory=build/nox |
| 40 |
|
| 41 |
override_dh_auto_install: |
| 42 |
dh_auto_install --builddirectory=build/nox --destdir=debian/tmp/nox |
| 43 |
dh_auto_install --destdir=debian/tmp/x |
| 44 |
|
| 45 |
override_dh_install: |
| 46 |
dh_install --package=fontforge-nox --sourcedir=debian/tmp/nox |
| 47 |
dh_install --remaining-packages --sourcedir=debian/tmp/x |
| 48 |
|
| 49 |
override_dh_installdocs: |
| 50 |
dh_installdocs --all -- README.md AUTHORS |
| 51 |
|
| 52 |
override_dh_installman: |
| 53 |
dh_installman --sourcedir=debian/tmp/x |
| 54 |
|
| 55 |
override_dh_missing-indep: |
| 56 |
dh_missing -i --list-missing |
| 57 |
|
| 58 |
override_dh_strip: |
| 59 |
dh_strip --dbgsym-migration='fontforge-dbg (<< 1:20170731~dfsg-2~)' |
| 60 |
|
| 61 |
|
| 62 |
%: |
| 63 |
dh $@ --with pkgkde_symbolshelper |