/
Portfile
76 lines (60 loc) · 2.77 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
name sword
version 1.7.4
revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
categories textproc
platforms darwin
maintainers nomaintainer
license GPL-2
description cross-platform API/library for Bible software
long_description The SWORD Project is an open source, cross-platform \
(Linux, Windows, Solaris, etc.) API/library for \
Bible software with a constantly growing list of \
front-ends (GUI, textmode, web-based, etc.) and a \
library of over 200 text modules.
homepage http://www.crosswire.org/${name}/index.jsp
master_sites http://www.crosswire.org/ftpmirror/pub/${name}/source/v${branch}/
checksums rmd160 55a0b741a97e58f29cfa5eca4572719660447393 \
sha256 995da8cf5a207c1f09809bf4b9db0bd7d267da5fcdb9d6666c9b313edd9d213d
depends_build port:autoconf \
port:automake \
port:libtool \
port:pkgconfig
depends_lib port:curl \
port:icu \
path:lib/libssl.dylib:openssl \
port:zlib
patchfiles patch-automake-1.13.diff \
patch-pointer_comparison.diff
# llvm-gcc-4.2 hangs
compiler.blacklist *llvm-gcc-4.2
pre-configure {
system -W ${worksrcpath} "env LTIZE=${prefix}/bin/glibtoolize ./autogen.sh"
}
configure.args --with-zlib --with-conf --with-curl \
--with-icu --without-clucene
use_parallel_build yes
destroot.keepdirs ${destroot}${prefix}/share/${name}/mods.d \
${destroot}${prefix}/share/${name}/modules
post-destroot {
xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/mods.d
xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/modules
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 0644 -W ${worksrcpath} README INSTALL LICENSE ${destroot}${prefix}/share/doc/${name}
copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/
delete ${destroot}${prefix}/share/${name}/mods.d/globals.conf
move ${destroot}${prefix}/etc/sword.conf ${destroot}${prefix}/etc/sword.conf.sample
}
post-activate {
if {![file exists ${prefix}/share/${name}/mods.d/globals.conf]} {
copy ${prefix}/share/doc/${name}/samples/mods.d/globals.conf ${prefix}/share/${name}/mods.d/
}
if {![file exists ${prefix}/etc/sword.conf]} {
copy ${prefix}/etc/sword.conf.sample ${prefix}/etc/sword.conf
}
}
livecheck.type regex
livecheck.url http://www.crosswire.org/sword/software/swordapi.jsp
livecheck.regex {SWORD Engine / API v([0-9\.]+)}