Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 include /usr/share/dpkg/pkg-info.mk
8
9 # resolve DEB_HOST_MULTIARCH
10 include /usr/share/dpkg/architecture.mk
11
12 export DEB_BUILD_MAINT_OPTIONSscip-debian debian abiword 3.0.8+ds-2 abiword/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all
13
14 # minimise needless linking
15 export DEB_LDFLAGS_MAINT_APPENDscip-debian debian abiword 3.0.8+ds-2 abiword/rules/DEB_LDFLAGS_MAINT_APPEND. = -Wl,--as-needed
16
17 pluginsscip-debian debian abiword 3.0.8+ds-2 abiword/rules/plugins. := applix babelfish bmp clarisworks command docbook \
18 eml epub freetranslation garble gdict gimp google grammar hancom \
19 hrtext iscii kword latex loadbindings mht mif mswrite \
20 opendocument openwriter openxml opml ots paint passepartout pdb \
21 pdf presentation s5 sdw t602 urldict wikipedia wmf wml \
22 wordperfect wpg xslfo goffice
23
24 # plugin 'aiksaurus' disabled until aiksaurus is ported to gtk3
25 # plugin 'collab' disabled until it is ported to libsoup3 #1019339
26 # plugin 'rsvg' deliberately not used due to build problems. Is it deprecated?
27 # plugin 'mathview' deliberately not used due to bug#785485
28
29 PKDscip-debian debian abiword 3.0.8+ds-2 abiword/rules/PKD. = $(abspathscip-debian debian abiword 3.0.8+ds-2 abiword/rules/abspath. $(dirscip-debian debian abiword 3.0.8+ds-2 abiword/rules/dir. $(MAKEFILE_LISTscip-debian debian abiword 3.0.8+ds-2 abiword/rules/MAKEFILE_LIST.)))
30 PKGscip-debian debian abiword 3.0.8+ds-2 abiword/rules/PKG. = $(DEB_SOURCEscip-debian debian abiword 3.0.8+ds-2 abiword/rules/DEB_SOURCE.)
31 ifneq (,$(wildcardscip-debian debian abiword 3.0.8+ds-2 abiword/rules/wildcard. configure.*))
32 # API version
33 apiver:=$(shell perl -0ne 'print "$$1.$$2" if m{\[abi_version_major\],\s+\[(\d+)\].*?\[abi_version_minor\],\s+\[(\d+)\]}s' configure.*)
34 endif
35 # The base library name
36 plibscip-debian debian abiword 3.0.8+ds-2 abiword/rules/plib.=lib$(PKGscip-debian debian abiword 3.0.8+ds-2 abiword/rules/PKG.)-$(apiverscip-debian debian abiword 3.0.8+ds-2 abiword/rules/apiver.)
37
38 %scip-debian debian abiword 3.0.8+ds-2 abiword/rules/`%`().:
39 dh $@
40
41 override_dh_cleanscip-debian debian abiword 3.0.8+ds-2 abiword/rules/override_dh_clean().:
42 ## adaptive cleaning meant to work for source archive or repository checkout.
43 ## clean files only if possible to regenerate
44 [ ! -x "$(which flex)" ] || $(RMscip-debian debian abiword 3.0.8+ds-2 abiword/rules/RM.) -v plugins/mathview/itex2mml/lex.yy.c
45 [ ! -x "tools/cdump/xp/cdump.pl" ] || $(RMscip-debian debian abiword 3.0.8+ds-2 abiword/rules/RM.) -v src/wp/ap/xp/ap_wp_sidebar.cpp
46 [ ! -x "./autogen-common.sh" ] || $(RMscip-debian debian abiword 3.0.8+ds-2 abiword/rules/RM.) -v plugin*.m4 po/*.strings
47 dh_cleanscip-debian debian debhelper . dh_clean().
48
49 override_dh_autoreconfscip-debian debian abiword 3.0.8+ds-2 abiword/rules/override_dh_autoreconf().:
50 $(info I: library-name=$(plib))
51 $(if $(wildcard debian/$(plib).install),,$(error invalid package/library name.))
52 # make plugins configuration if building from trunk
53 [ ! -x "./autogen-common.sh" ] || ./autogen-common.sh
54 dh_autoreconfscip-debian debian debhelper . dh_autoreconf(). --as-needed
55
56 #: Build instructions http://www.abisource.com/~fjf/BUILD.phtml
57 #: configure options reference: http://www.abisource.com/wiki/Compiling_AbiWord
58 override_dh_auto_configurescip-debian debian abiword 3.0.8+ds-2 abiword/rules/override_dh_auto_configure().:
59 PATH=$(PATHscip-debian debian abiword 3.0.8+ds-2 abiword/rules/PATH.):/usr/lib/$(DEB_HOST_MULTIARCHscip-debian debian abiword 3.0.8+ds-2 abiword/rules/DEB_HOST_MULTIARCH.)/libwmf/bin \
60 dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- \
61 --with-gio \
62 --with-redland \
63 --with-libtidy \
64 --with-goffice \
65 --enable-shared \
66 --enable-clipart \
67 --enable-templates \
68 --with-gnomevfs \
69 --enable-collab-backend-tcp \
70 --enable-collab-backend-xmpp \
71 --enable-collab-backend-sugar \
72 --enable-collab-backend-service \
73 --enable-collab-backend-telepathy \
74 --enable-dependency-tracking \
75 --enable-plugins="$(pluginsscip-debian debian abiword 3.0.8+ds-2 abiword/rules/plugins.)" \
76 --enable-introspection
77 # --enable-debug \
78
79 override_dh_auto_testscip-debian debian abiword 3.0.8+ds-2 abiword/rules/override_dh_auto_test().:
80 # do not stop on failed test(s)
81 -dh_auto_testscip-debian debian debhelper . dh_auto_test().
82
83 override_dh_makeshlibsscip-debian debian abiword 3.0.8+ds-2 abiword/rules/override_dh_makeshlibs().:
84 dh_makeshlibsscip-debian debian debhelper . dh_makeshlibs(). -V
85
86 override_dh_stripscip-debian debian abiword 3.0.8+ds-2 abiword/rules/override_dh_strip().:
87 dh_stripscip-debian debian debhelper . dh_strip(). --dbgsym-migration='abiword-dbg (<< 3.0.1-7~)'
88
89 override_dh_installscip-debian debian abiword 3.0.8+ds-2 abiword/rules/override_dh_install().:
90 find debian/tmp -name '*.la' -print -delete
91 dh_installscip-debian debian debhelper . dh_install().
92 # This needs to be installed by abiword-plugin-grammar only
93 $(RMscip-debian debian abiword 3.0.8+ds-2 abiword/rules/RM.) -v debian/abiword/usr/lib/*/abiword-*/plugins/grammar.*
94
95 override_dh_missingscip-debian debian abiword 3.0.8+ds-2 abiword/rules/override_dh_missing().:
96 dh_missingscip-debian debian debhelper . dh_missing(). --fail-missing