Ticket #34061: Portfile

File Portfile, 3.4 KB (added by z.m.moratto@…, 12 years ago)
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$
3
4PortSystem              1.0
5
6name                    vw-devel
7version                 20120415
8revision                1
9
10categories              graphics science
11license                 NOSA
12platforms               darwin
13maintainers             nasa.gov:z.m.moratto
14
15description             NASA Vision Workbench (C++) Library
16
17long_description        VW is a library that is aimed  at large scale \
18                        image processing. It differs specifically from \
19                        OpenCV in that it uses lazy operations which \
20                        are only applied on actual write. VW is open \
21                        source and multithreaded.
22
23homepage                http://ti.arc.nasa.gov/tech/asr/intelligent-robotics/nasa-vision-workbench/
24
25fetch.type              git
26git.url                 git://github.com/visionworkbench/visionworkbench.git
27
28depends_lib             port:gdal \
29                        port:jpeg \
30                        port:libpng \
31                        port:libproj4 \
32                        port:zlib \
33                        port:ilmbase \
34                        port:openexr \
35                        port:boost \
36                        port:protobuf-cpp \
37                        port:flann \
38                        port:automake \
39                        port:libtool
40
41universal_variant       no
42
43configure.args-append   --enable-module-mosaic=yes \
44                        --enable-module-camera=yes \
45                        --enable-module-cartography=yes \
46                        --enable-module-stereo=yes \
47                        --enable-module-tools=no \
48                        --with-jpeg=${prefix} \
49                        --with-png=${prefix} \
50                        --with-gdal=${prefix} \
51                        --with-proj4=${prefix} \
52                        --with-z=${prefix} \
53                        --with-ilmbase=${prefix} \
54                        --with-openexr=${prefix} \
55                        --with-boost=${prefix} \
56                        --with-protobuf=${prefix} \
57                        --with-flann=${prefix} \
58                        --without-tiff \
59                        --without-hdr \
60                        --without-cairomm \
61                        --without-x11 \
62                        --without-clapack \
63                        --without-slapack \
64                        --without-flapack \
65                        --without-opencv \
66                        --without-cg \
67                        --without-qt-qmake \
68                        --without-arbitrary-qt \
69                        --without-qt \
70
71if {${configure.compiler} == "clang"} {
72    configure.compiler llvm-gcc-4.2
73}
74
75pre-configure {
76    system "cd ${worksrcpath} && ./autogen"
77}
78
79variant debug description {Provide debug symbols} {
80    configure.args-append --enable-debug=yes
81}
82
83variant tools description {Build example executables} {
84    configure.args-append --enable-module-tools=yes
85    # Building the executables causes GCC-4.2 to use a lot of
86    # memory. It's best to only use one thread otherwise you'll take
87    # the user's system down.
88    build.jobs 1
89}
90
91variant plate description {Build plate module} {
92    depends_lib-append    port:zmq
93    configure.args-append --enable-module-plate=yes \
94                           --with-zeromq=${prefix}
95}