sword-1.8.1.recipe revision c8b849ef
1SUMMARY="The biblical text research engine"
2DESCRIPTION="The SWORD Project is the CrossWire Bible Society's free Bible \
3software project. Its purpose is to create cross-platform open-source tools-- \
4covered by the GNU General Public License-- that allow programmers and Bible \
5societies to write new Bible software more quickly and easily. We also create \
6Bible study software for all readers, students, scholars, and translators of \
7the Bible, and have a growing collection of over 200 texts in over 50 languages."
8HOMEPAGE="http://www.crosswire.org/sword"
9COPYRIGHT="1998-2018 CrossWire Bible Society"
10LICENSE="GNU GPL v2"
11REVISION="1"
12SOURCE_URI="http://www.crosswire.org/ftpmirror/pub/sword/source/v${portVersion%.*}/sword-$portVersion.tar.gz"
13CHECKSUM_SHA256="ce9aa8f721a737f406115d35ff438bd07c829fce1605f0d6dcdabc4318bc5e93"
14PATCHES="sword-$portVersion.patchset"
15
16ARCHITECTURES="!x86_gcc2 x86 x86_64"
17SECONDARY_ARCHITECTURES="x86"
18
19GLOBAL_WRITABLE_FILES="settings/sword.conf auto-merge"
20
21PROVIDES="
22	sword$secondaryArchSuffix = $portVersion
23	cmd:diatheke$secondaryArchSuffix = $portVersion
24	cmd:emptyvss$secondaryArchSuffix = $portVersion
25	cmd:imp2gbs$secondaryArchSuffix = $portVersion
26	cmd:imp2ld$secondaryArchSuffix = $portVersion
27	cmd:imp2vs$secondaryArchSuffix = $portVersion
28	cmd:installmgr$secondaryArchSuffix = $portVersion
29	cmd:mkfastmod$secondaryArchSuffix = $portVersion
30	cmd:mod2imp$secondaryArchSuffix = $portVersion
31	cmd:mod2osis$secondaryArchSuffix = $portVersion
32	cmd:mod2vpl$secondaryArchSuffix = $portVersion
33	cmd:mod2zmod$secondaryArchSuffix = $portVersion
34	cmd:osis2mod$secondaryArchSuffix = $portVersion
35	cmd:stripaccents$secondaryArchSuffix = $portVersion
36	cmd:tei2mod$secondaryArchSuffix = $portVersion
37	cmd:vpl2mod$secondaryArchSuffix = $portVersion
38	cmd:vs2osisref$secondaryArchSuffix = $portVersion
39	cmd:vs2osisreftxt$secondaryArchSuffix = $portVersion
40	cmd:xml2gbs$secondaryArchSuffix = $portVersion
41	lib:libsword$secondaryArchSuffix
42	lib:libsword_$portVersion$secondaryArchSuffix
43	"
44REQUIRES="
45	haiku$secondaryArchSuffix
46	icu$secondaryArchSuffix
47#	lib:libcppunit$secondaryArchSuffix
48	lib:libcrypto$secondaryArchSuffix
49	lib:libcurl$secondaryArchSuffix
50	lib:libclucene_core$secondaryArchSuffix
51	lib:libnghttp2$secondaryArchSuffix
52	lib:libssl$secondaryArchSuffix
53	lib:libz$secondaryArchSuffix
54	"
55
56PROVIDES_devel="
57	sword${secondaryArchSuffix}_devel = $portVersion
58	devel:libsword$secondaryArchSuffix
59	devel:libsword_$portVersion$secondaryArchSuffix
60	"
61REQUIRES_devel="
62	sword$secondaryArchSuffix == $portVersion base
63	"
64
65BUILD_REQUIRES="
66	haiku${secondaryArchSuffix}_devel
67	icu${secondaryArchSuffix}_devel
68	devel:libcppunit$secondaryArchSuffix
69	devel:libcrypto$secondaryArchSuffix
70	devel:libcurl$secondaryArchSuffix
71	devel:libclucene_core$secondaryArchSuffix
72	devel:libnghttp2$secondaryArchSuffix
73	devel:libssl$secondaryArchSuffix
74	"
75BUILD_PREREQUIRES="
76	cmd:awk
77	cmd:cppunit_config$secondaryArchSuffix
78	cmd:icu_config$secondaryArchSuffix
79	cmd:g++$secondaryArchSuffix
80	cmd:ld$secondaryArchSuffix
81	cmd:make
82	cmd:pkg_config$secondaryArchSuffix
83	"
84
85BUILD()
86{
87	#chmod +x ./configure
88	runConfigure ./configure
89	make $jobArgs
90}
91
92INSTALL()
93{
94	make install
95
96	rm -f "$libDir"/libsword.la
97
98	prepareInstalledDevelLibs libsword libsword-$portVersion
99	fixPkgconfig
100
101	packageEntries devel \
102		"$developDir"
103}
104
105TEST()
106{
107	make check
108}
109