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

Last change on this file since 63759 was 63759, checked in by ryandesign@…, 7 years ago

redland: default to db46 only if db44 has not already been selected; see #16791

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Portfile 63759 2010-02-14 09:00:40Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                redland
5version             1.0.10
6description         Redland RDF Library
7long_description    Redland is a set of free software libraries that provide \
8                    support for the Resource Description Framework (RDF).
9maintainers         lylejohnson.name:lyle
10categories          www
11platforms           darwin
12homepage            http://librdf.org/
13master_sites        http://download.librdf.org/source/
14
15checksums           md5     bdbb9b8dc614fc09a14cd646079619e1 \
16                    sha1    e4ba2ef207f293a7740f45661ec90cf9698e217f \
17                    rmd160  c19a0aa6c33a62719af1b2ba35ea064ffdf7e9f1
18
19depends_lib         port:curl \
20                    port:libiconv \
21                    port:libxml2 \
22                    port:libxslt \
23                    port:openssl \
24                    port:raptor \
25                    port:rasqal \
26                    port:zlib
27
28# redland-config uses pkg-config
29depends_lib-append  port:pkgconfig
30
31configure.args      --mandir=${prefix}/share/man \
32                    --with-bdb=no \
33                    --with-mysql=no \
34                    --with-postgresql=no \
35                    --with-sqlite=no
36
37post-configure {
38    reinplace -E {s|-arch [^ ]+||g} \
39        ${worksrcpath}/redland-src-config \
40        ${worksrcpath}/redland.pc
41}
42
43test.run            yes
44test.target         check
45
46if {![variant_isset db44]} {
47    default_variants +db46
48}
49
50variant db44 conflicts db46 {
51    configure.cflags    -I${prefix}/include/db44 -I${prefix}/include
52    configure.ldflags   -L${prefix}/lib/db44 -L${prefix}/lib
53    configure.args-delete --with-bdb=no
54    depends_lib-append port:db44
55}
56
57variant db46 conflicts db44 {
58    configure.cflags    -I${prefix}/include/db46 -I${prefix}/include
59    configure.ldflags   -L${prefix}/lib/db46 -L${prefix}/lib
60    configure.args-delete --with-bdb=no
61    depends_lib-append port:db46
62}
63 
64variant mysql4 conflicts mysql5 {
65    configure.args-delete --with-mysql=no
66    depends_lib-append port:mysql4
67}
68
69variant mysql5 conflicts mysql4 {
70    configure.args-delete --with-mysql=no
71    depends_lib-append path:bin/mysql_config5:mysql5
72}
73
74variant postgresql7 conflicts postgresql80 postgresql81 postgresql82 postgresql83 {
75    configure.args-delete --with-postgresql=no
76    depends_lib-append port:postgresql7
77}
78
79variant postgresql80 conflicts postgresql7 postgresql81 postgresql82 postgresql83 {
80    configure.args-delete --with-postgresql=no
81    depends_lib-append port:postgresql80
82}
83
84variant postgresql81 conflicts postgresql7 postgresql80 postgresql82 postgresql83 {
85    configure.args-delete --with-postgresql=no
86    depends_lib-append port:postgresql81
87}
88
89variant postgresql82 conflicts postgresql7 postgresql80 postgresql81 postgresql83 {
90    configure.args-delete --with-postgresql=no
91    depends_lib-append port:postgresql82
92}
93
94variant postgresql83 conflicts postgresql7 postgresql80 postgresql81 postgresql82 {
95    configure.args-delete --with-postgresql=no
96    depends_lib-append port:postgresql83
97}
98
99variant sqlite3 {
100    configure.args-delete --with-sqlite=no
101    depends_lib-append port:sqlite3
102}
103livecheck.type      regex
104livecheck.url       ${homepage}
105livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.