source: trunk/dports/www/redland-bindings/Portfile

Last change on this file was 134049, checked in by mf2k@…, 3 years ago

redland-bindings: Do not hardcode frameworks path. (#41596)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 134049 2015-03-17 19:31:57Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                redland-bindings
6version             1.0.16.1
7revision            1
8description         Redland RDF Language Bindings
9long_description    Redland is a set of free software libraries that provide \
10                    support for the Resource Description Framework (RDF). \
11                    This package provides higher-level language APIs to \
12                    Redland for multiple popular scripting languages.
13maintainers         nomaintainer
14categories          www
15platforms           darwin
16homepage            http://librdf.org/bindings/
17master_sites        http://download.librdf.org/source/
18
19checksums           sha1    98c20b64cf5e99cbf29fcb84490e73e2a828213a \
20                    rmd160  0f4ac6f67fd2ddfa842dc82c52e5c380d9fc95d3
21 
22depends_lib         port:redland
23
24pre-configure {
25    if {![variant_isset perl5] && ![variant_isset php5] && ![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27] && ![variant_isset ruby] && ![variant_isset tcl] && ![variant_isset lua]} {
26        ui_error "You must select at least one variant."
27        return -code error "no variant selected"
28    }
29
30    foreach {badport badfile} "raptor ${prefix}/include/raptor.h" {
31        if {[file exists ${badfile}]} {
32            ui_error "${name} cannot be built while ${badport} is active."
33            ui_error "Please deactivate ${badport} and try again."
34            ui_error "You can reactivate ${badport} again later."
35            return -code error "${badport} is installed"
36        }
37    }
38}
39
40variant perl5 {
41        depends_lib-append path:bin/perl:perl5
42        configure.args-append --with-perl
43        configure.perl ${prefix}/bin/perl
44}
45
46variant php5 {
47        configure.args-append --with-php
48        depends_lib-append path:bin/php:php5
49}
50
51# TODO: Remove after 2016-01-04.
52variant python24 requires python27 description {Legacy variant} {}
53variant python25 requires python27 description {Legacy variant} {}
54
55variant python26 conflicts python27 {
56        configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${frameworks_dir}/Python.framework/Versions/2.6/Python"
57        depends_lib-append port:python26
58}
59
60variant python27 conflicts python26 {
61        configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${frameworks_dir}/Python.framework/Versions/2.7/Python"
62        depends_lib-append port:python27
63}
64
65variant ruby {
66        configure.args-append --with-ruby
67        depends_lib-append port:ruby
68}
69
70variant tcl {
71        configure.args-append --with-tcl
72        depends_lib-append port:tcl
73}
74
75variant lua description {Include Lua binding} {
76    configure.args-append --with-lua
77    depends_lib-append port:lua
78}
79
80livecheck.type      regex
81livecheck.url       ${homepage}
82livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.