source: trunk/dports/science/gerbil/Portfile

Last change on this file was 134191, checked in by cal@…, 3 years ago

gerbil: use cmake.out_of_source yes, #47197, fix build with modern boost

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 134191 2015-03-19 23:25:30Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                gerbil
8version             1.0b
9checksums           rmd160  5004777d0efb900968f5ca2e4f0545ccc67ac0f3 \
10                    sha256  710fc8d7864d5385949a51d9dbd2259f4835449ec7de5b6200ad3d104cd9684f
11
12categories          science
13license             GPL-3 LGPL-3
14maintainers         cal openmaintainer
15platforms           darwin
16description         Hyperspectral Image Visualization & Analysis Framework
17long_description    \
18    Gerbil consists of a new, interactive visualization methods for \
19    multispectral and hyperspectral image data, and a toolbox of common and \
20    novel algorithms, e.g. for segmentation.
21
22homepage            http://gerbilvis.org/
23master_sites        http://files.gerbilvis.org/dl/
24
25distname            ${distname}-src
26use_bzip2           yes
27
28worksrcdir          ${name}-${version}
29
30patchfiles          \
31    patch-gui__model__representation.cpp-include-necessary-header.diff \
32    patch-lsb__lsbhreader.cpp-missing-include.diff \
33    patch-fix-moc-run-with-modern-boost.diff
34
35livecheck.type      regex
36livecheck.url       ${master_sites}
37livecheck.regex     "[quotemeta ${name}]-(\\d+(\\.\\d+)*\[a-z]?)-src[quotemeta ${extract.suffix}]"
38
39depends_lib         port:qt4-mac \
40                    port:opencv \
41                    port:boost \
42                    port:gdal \
43                    port:tbb
44
45cmake.out_of_source yes
46configure.args-append \
47                    -DOpenCV_DIR="${prefix}/lib/cmake" \
48                    -DCMAKE_BUILD_TYPE=Release \
49                    -DBoost_DIR="${prefix}"
50
51# the gerbil makefiles do not provide an install target
52destroot {
53    # install binaries
54    xinstall -m 755 "${build.dir}/bin/gerbil" "${destroot}${prefix}/bin/"
55    xinstall -m 755 "${build.dir}/bin/qgerbil" "${destroot}${prefix}/bin/"
56
57    # create directories for shared files
58    xinstall -d -m 755 "${destroot}${prefix}/share/doc/${name}"
59
60    # install shared files
61    set sharefiles [list "AUTHORS" "COPYING" "README.txt"]
62    foreach file $sharefiles {
63        xinstall -m 644 "${worksrcpath}/${file}" "${destroot}${prefix}/share/doc/${name}/${file}"
64    }
65}
Note: See TracBrowser for help on using the repository browser.