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

Last change on this file since 87969 was 87441, checked in by pixilla@…, 8 years ago

www/redland:

  • Add patch for src/Makefile.am to Fix Lion/Xcode4.2 build.
  • Use automake while src/Makefile.am patch is in effect.
  • No installed files changed so no rev bump.

See #30632

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