source: trunk/dports/textproc/sword/Portfile

Last change on this file was 139229, checked in by jeremyhu@…, 2 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# -*- 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
2# $Id: Portfile 139229 2015-08-08 03:10:35Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            sword
7version         1.6.2
8revision        8
9set branch      [join [lrange [split ${version} .] 0 1] .]
10categories      textproc
11maintainers     nomaintainer
12license         GPL-2
13description     cross-platform API/library for Bible software
14long_description    The SWORD Project is an open source, cross-platform \
15                    (Linux, Windows, Solaris, etc.) API/library for \
16                    Bible software with a constantly growing list of \
17                    front-ends (GUI, textmode, web-based, etc.) and a \
18                    library of over 200 text modules.
19homepage        http://www.crosswire.org/${name}/index.jsp
20master_sites    http://www.crosswire.org/ftpmirror/pub/${name}/source/v${branch}/
21checksums       md5     a7dc4456e20e915fec46d774b690e305 \
22                sha1    d4f3b924ba6f78b436a33d4819c76f766e4551f8 \
23                rmd160  e85230c007782c526157a5650f3e5c1c27b60ea6
24platforms       darwin
25
26depends_build   port:autoconf \
27                port:automake \
28                port:libtool \
29                port:pkgconfig
30depends_lib     port:curl \
31                port:icu \
32                path:lib/libssl.dylib:openssl \
33                port:zlib
34
35patchfiles      patch-automake-1.13.diff \
36                patch-curl-types.diff
37
38# llvm-gcc-4.2 hangs
39compiler.blacklist *llvm-gcc-4.2
40
41# Buggy C++
42# ../include/multimapwdef.h:22:7: error: use of undeclared identifier 'find'
43compiler.blacklist-append *clang*
44
45platform darwin {
46    if {${os.major} >= 13} {
47        # TODO: Test Mavericks once the buggy C++ code is fixed
48
49        depends_lib
50        depends_run
51        pre-fetch {
52            ui_error "$name does not build on Mavericks or later."
53            error "unsupported platform"
54        }
55    }
56}
57
58pre-configure {
59    system "cd ${worksrcpath} && env LTIZE=${prefix}/bin/glibtoolize ./autogen.sh"
60}
61configure.args  --with-zlib --with-conf --with-curl \
62                --with-icu --without-clucene
63
64use_parallel_build yes
65
66destroot.keepdirs ${destroot}${prefix}/share/${name}/mods.d \
67                  ${destroot}${prefix}/share/${name}/modules
68post-destroot {
69    xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/mods.d
70    xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/modules
71
72    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
73    xinstall -m 0644 -W ${worksrcpath} README INSTALL LICENSE ${destroot}${prefix}/share/doc/${name}
74    copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/
75    delete ${destroot}${prefix}/share/${name}/mods.d/globals.conf
76    move ${destroot}${prefix}/etc/sword.conf ${destroot}${prefix}/etc/sword.conf.sample
77}
78
79post-activate {
80    if {![file exists ${prefix}/share/${name}/mods.d/globals.conf]} {
81        copy ${prefix}/share/doc/${name}/samples/mods.d/globals.conf ${prefix}/share/${name}/mods.d/
82    }
83    if {![file exists ${prefix}/etc/sword.conf]} {
84        copy ${prefix}/etc/sword.conf.sample ${prefix}/etc/sword.conf
85    }
86}
87
88livecheck.type  regex
89livecheck.url   http://www.crosswire.org/sword/software/swordapi.jsp
90livecheck.regex {SWORD Engine / API v([0-9\.]+)}
Note: See TracBrowser for help on using the repository browser.