source: trunk/dports/graphics/vigra/Portfile

Last change on this file was 148894, checked in by mcalhoun@…, 16 months ago

openexr, ilmbase: update version to 2.2.0
revbump dependencies since library name changes
homepage states that new features "should be available to applications without code modifications"
merge openexr and ilmbase into one Portfile since versions now seem linked
fixes #44620, #44619, #49965, and #49966; maintainer timeout

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.9 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 148894 2016-05-22 14:26:15Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6PortGroup           active_variants 1.1
7PortGroup           compiler_blacklist_versions 1.0
8PortGroup           cmake 1.0
9PortGroup           github 1.0
10
11github.setup        ukoethe vigra 1-11-0 Version-
12version             [strsed ${github.version} {g/-/./}]
13revision            2
14categories          graphics
15platforms           darwin
16license             MIT
17maintainers         gmail.com:benjamin.seppke
18description         Generic Image Processing Library for C++
19long_description    VIGRA stands for \"Vision with Generic Algorithms\". \
20                    It's a novel computer vision library that puts its \
21                    main emphasis on customizable algorithms and data \
22                    structures. By using template techniques similar to \
23                    those in the C++ Standard Template Library, you can \
24                    easily adapt any VIGRA component to the needs of your \
25                    application, without thereby giving up execution speed.
26homepage            http://ukoethe.github.io/vigra/
27
28checksums           rmd160  d9d1c20bdc3c930223aef29c66840434be294685 \
29                    sha256  61beb9c1a432ca666e80e11e85e4b8c875b9e2bfe954c6a9646465f9e0ad77dd
30
31depends_lib         port:jpeg \
32                    port:tiff \
33                    port:libpng \
34                    port:zlib \
35                    port:openexr \
36                    port:fftw-3-single \
37                    port:hdf5
38
39cmake.out_of_source yes
40
41patchfiles          patch-include-vigra-hdf5impex.hxx.diff
42
43post-patch {
44    reinplace "s|@DOCDIR@|${prefix}/share/doc/${name}|g" ${worksrcpath}/config/vigra-config.in
45}
46
47# Some additional parameters for cmake. All other params have already been set
48# by the cmake PortGroup
49configure.args-append   -DWITH_OPENEXR=ON \
50                        -DBUILD_SHARED_LIBS=ON
51
52# recursive template instantiation exceeded maximum depth of 128
53configure.cxxflags-append -ftemplate-depth-1024
54
55compiler.blacklist *gcc* *dragonegg* {clang < 211.10.1} macports-clang-3.3
56compiler.fallback-append macports-clang-3.4
57
58# The -Os setting causes errors w.r.t. libc++ and clang++. Use -O3 instead
59configure.cxxflags-replace -Os -O3
60
61destroot.env-append DESTDIR=${destroot}
62
63post-destroot {
64    if {[variant_isset docs]} {
65        # move documentation to a unversioned directory
66        xinstall -m 755 -d ${destroot}${prefix}/share/doc
67        move ${destroot}${prefix}/doc/${name} \
68             ${destroot}${prefix}/share/doc/${name}
69    }
70    # delete whatever is left in the doc directory
71    delete ${destroot}${prefix}/doc
72}
73
74variant docs description "Build documentation" {}
75if {[variant_isset docs]} {
76    depends_lib-append port:doxygen
77} else {
78    configure.args-append   -DDOXYGEN_DOT_EXECUTABLE= \
79                            -DDOXYGEN_EXECUTABLE=
80}
81
82variant valgrind description "Include support for VALGRIND" {}
83if {[variant_isset valgrind]} {
84    depends_lib-append port:valgrind
85} else {
86    configure.args-append -DWITH_VALGRIND=NO
87}
88
89# remove on 2017/03/19
90variant python26 requires python27 description {Legacy variant} {}
91
92variant python27 conflicts python34 python35 description "Also build vigranumpy python27 bindings" {
93    configure.args-append   -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7 \
94                            -DPYTHON_SPHINX=${prefix}/bin/sphinx-build-2.7
95    depends_lib-append  port:boost \
96                        port:python27 \
97                        port:py27-numpy \
98                        port:py27-sphinx
99    require_active_variants boost python27
100}
101
102variant python34 conflicts python27 python35 description "Also build vigranumpy python34 bindings" {
103    configure.args-append   -DPYTHON_EXECUTABLE=${prefix}/bin/python3.4 \
104                            -DPYTHON_SPHINX=${prefix}/bin/sphinx-build-3.4
105    depends_lib-append  port:boost \
106                        port:python34 \
107                        port:py34-numpy \
108                        port:py34-sphinx
109    require_active_variants boost python34
110}
111
112variant python35 conflicts python27 python34 description "Also build vigranumpy python35 bindings" {
113    configure.args-append   -DPYTHON_EXECUTABLE=${prefix}/bin/python3.5 \
114                            -DPYTHON_SPHINX=${prefix}/bin/sphinx-build-3.5
115    depends_lib-append  port:boost \
116                        port:python35 \
117                        port:py35-numpy \
118                        port:py35-sphinx
119    require_active_variants boost python35
120}
121
122if {![variant_isset python34] && ![variant_isset python35]} {
123    default_variants +python27
124}
125
126if {![variant_isset python27] && ![variant_isset python34] && ![variant_isset python35]} {
127    configure.args-append -DWITH_VIGRANUMPY=NO
128}
129
130livecheck.version   ${version}
131livecheck.type      regex
132livecheck.url       ${homepage}
133livecheck.regex     {>version ([0-9.]+)<}
Note: See TracBrowser for help on using the repository browser.