source: trunk/dports/textproc/sword/Portfile @ 9386

Last change on this file since 9386 was 9386, checked in by rshaw, 15 years ago

Updated to version 1.5.7a

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1# $Id: Portfile,v 1.2 2004/11/23 22:49:51 rshaw Exp $
2PortSystem              1.0
3
4name                    sword
5version                 1.5.7a
6categories              textproc
7maintainers             rshaw@opendarwin.org
8description             cross-platform API/library for Bible software
9long_description        The SWORD Project is an open source, cross-platform \
10                                        (Linux, Windows, Solaris, etc.) API/library for \
11                                        Bible software with a constantly growing list of \
12                                        front-ends (GUI, textmode, web-based, etc.) and a \
13                                        library of over 200 text modules.
14homepage                http://www.crosswire.org/${name}/index.jsp
15master_sites    http://www.crosswire.org/ftpmirror/pub/${name}/source/v1.5/
16checksums               md5 e77801ac7abb7a940eb8a75d725e346f
17platforms               darwin
18
19depends_lib             bin:autoconf:autoconf \
20                                bin:automake:automake \
21                                bin:pkg-config:pkgconfig \
22                                lib:libcurl.2:curl \
23                                lib:libssl.0.9:openssl \
24                                lib:libz.1:zlib
25
26worksrcdir              ${name}-[strsed ${version} {s/a$//}]
27
28patchfiles              patch-autogen.sh \
29                                patch-configure.ac \
30                                patch-untgz.c
31
32pre-configure {
33        system "cd ${worksrcpath} && ./autogen.sh"
34}
35configure.args  --with-zlib --with-conf --with-curl \
36                                --without-icu --without-lucene
37
38post-destroot {
39        cd ${worksrcpath}/samples/mods.d
40        xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/mods.d
41        xinstall -m 0644 globals.conf ${destroot}${prefix}/share/${name}/mods.d
42
43        xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/modules
44        system "touch ${destroot}${prefix}/share/${name}/modules/.turd"
45
46        cd ${worksrcpath}
47        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
48        xinstall -m 0644 README ${destroot}${prefix}/share/doc/${name}
49        xinstall -m 0644 INSTALL ${destroot}${prefix}/share/doc/${name}
50        xinstall -m 0644 LICENSE ${destroot}${prefix}/share/doc/${name}
51        foreach dir [exec find samples -type d] {
52                xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/${dir}
53        }
54        foreach file [exec find samples -type f] {
55                xinstall -m 0644 ${file} ${destroot}${prefix}/share/doc/${name}/${file}
56        }
57}
58
Note: See TracBrowser for help on using the repository browser.