source: trunk/dports/www/redland/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 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: 4.1 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 jeremyhu@macports.org $
3
4PortSystem 1.0
5name                redland
6version             1.0.15
7description         Redland RDF Library
8long_description    Redland is a set of free software libraries that provide \
9                    support for the Resource Description Framework (RDF).
10maintainers         pixilla openmaintainer
11license             {LGPL-2.1+ GPL-2+ Apache-2+}
12categories          www
13platforms           darwin
14homepage            http://librdf.org/
15master_sites        http://download.librdf.org/source/
16
17checksums           rmd160  5cd4eca23faf05348c2327f356980aa2f18accea \
18                    sha256  0e1f5825b6357c9b490da866c95ae1d895dbb5f445013d2511c37df822ee9ec6
19
20patchfiles          patch-configure.diff
21patch.pre_args      -p1
22
23depends_lib         port:curl \
24                    port:libiconv \
25                    port:libtool \
26                    port:libxml2 \
27                    port:libxslt \
28                    path:lib/libssl.dylib:openssl \
29                    port:raptor2 \
30                    port:rasqal \
31                    port:zlib
32
33# redland-config uses pkg-config
34depends_lib-append  port:pkgconfig
35
36configure.args      --with-bdb=no \
37                    --with-iodbc=no \
38                    --with-mysql=no \
39                    --with-postgresql=no \
40                    --with-sqlite=no \
41                    --with-threestore=no \
42                    --with-unixodbc=no \
43                    --with-virtuoso=no
44
45post-configure {
46    reinplace -E {s|-arch [a-z0-9_]+||g} \
47        ${worksrcpath}/redland-src-config \
48        ${worksrcpath}/redland.pc
49}
50
51test.run            yes
52test.target         check
53
54if {![variant_isset db44] && ![variant_isset db47]} {
55    default_variants +db46
56}
57
58variant db44 conflicts db46 db47 {
59    configure.args-delete   --with-bdb=no
60    configure.args-append   --with-bdb=${prefix} \
61                            --with-bdb-include=${prefix}/include/db44 \
62                            --with-bdb-lib=${prefix}/lib/db44
63    depends_lib-append      port:db44
64}
65
66variant db46 conflicts db44 db47 {
67    configure.args-delete   --with-bdb=no
68    configure.args-append   --with-bdb=${prefix} \
69                            --with-bdb-include=${prefix}/include/db46 \
70                            --with-bdb-lib=${prefix}/lib/db46
71    depends_lib-append      port:db46
72}
73
74variant db47 conflicts db44 db46 {
75    configure.args-delete   --with-bdb=no
76    configure.args-append   --with-bdb=${prefix} \
77                            --with-bdb-include=${prefix}/include/db47 \
78                            --with-bdb-lib=${prefix}/lib/db47
79    depends_lib-append      port:db47
80}
81
82variant mysql4 conflicts mysql5 {
83    configure.args-delete --with-mysql=no
84    depends_lib-append port:mysql4
85}
86
87variant mysql5 conflicts mysql4 {
88    configure.args-delete --with-mysql=no
89    configure.args-append --with-mysql=${prefix}/bin/mysql_config5
90    depends_lib-append path:bin/mysql_config5:mysql5
91}
92
93variant postgresql7 conflicts postgresql80 postgresql81 postgresql82 postgresql83 {
94    configure.args-delete --with-postgresql=no
95    depends_lib-append port:postgresql7
96}
97
98variant postgresql80 conflicts postgresql7 postgresql81 postgresql82 postgresql83 {
99    configure.args-delete --with-postgresql=no
100    depends_lib-append port:postgresql80
101}
102
103variant postgresql81 conflicts postgresql7 postgresql80 postgresql82 postgresql83 {
104    configure.args-delete --with-postgresql=no
105    depends_lib-append port:postgresql81
106}
107
108variant postgresql82 conflicts postgresql7 postgresql80 postgresql81 postgresql83 {
109    configure.args-delete --with-postgresql=no
110    depends_lib-append port:postgresql82
111}
112
113variant postgresql83 conflicts postgresql7 postgresql80 postgresql81 postgresql82 {
114    configure.args-delete --with-postgresql=no
115    depends_lib-append port:postgresql83
116}
117
118variant sqlite3 {
119    configure.args-delete --with-sqlite=no
120    depends_lib-append port:sqlite3
121}
122livecheck.type      regex
123livecheck.url       ${master_sites}
124livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.