Changeset 97679
- Timestamp:
- Sep 11, 2012, 9:41:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/science/gerbil/Portfile
r93126 r97679 6 6 7 7 name gerbil 8 version 0.3 9 revision 2 8 version 0.4a 10 9 categories science 11 10 license GPL-3 … … 22 21 use_bzip2 yes 23 22 24 checksums rmd160 8f34bf75227161fab1a6771be4e28028027b456a\25 sha256 0c4d779d6ce402d2c93bcc23d1898d49f442803a0f4c489bcd687d87d9a02dd923 checksums rmd160 bacfe1fe4a6d11bce6eba279464c9b272b43d5b4 \ 24 sha256 bc41bf0ea805ff51be76b3e6c61a93029901fbd17ec458578657dd6e23553d18 26 25 27 livecheck.regex "/${name}/${name}-(\[0-9\]+(\\.\[0-9\]+)* )\.tar"26 livecheck.regex "/${name}/${name}-(\[0-9\]+(\\.\[0-9\]+)*\[a-z\]?)\.tar" 28 27 29 28 depends_lib port:qt4-mac \ 30 29 port:opencv \ 31 port:boost 30 port:boost \ 31 port:python27 32 32 33 33 # opencv is not universal 34 34 universal_variant no 35 35 36 if {${configure.compiler} == "clang"} { 37 # gerbil 0.3 doesn't build with clang++ 38 configure.compiler llvm-gcc-4.2 39 } 36 worksrcdir ${name}-0.4 40 37 41 38 configure.post_args -DOpenCV_DIR="${prefix}/lib/cmake" \ 42 -DVOLE_BUNDLE_CORE=on \ 43 -DVOLE_BUNDLE_GERBIL=on 44 45 post-configure { 46 configure.post_args \ 39 -DCMAKE_BUILD_TYPE=Release \ 47 40 -DGerbil_Viewer=on \ 48 41 -DGerbil_Edge_Detect=on \ 49 42 -DVole_Seg_Graphs=on \ 50 -DVOLE_SHELL=ON \ 51 -DCMAKE_EXE_LINKER_FLAGS=\"-framework OpenGL\" 52 53 system -W "${worksrcpath}" "${configure.cmd} ${configure.pre_args} [join ${configure.args}] [join ${configure.post_args}]" 54 } 43 -DVole_Shell=on \ 44 -DCMAKE_EXE_LINKER_FLAGS=\"-framework OpenGL\" \ 45 -DBoost_DIR="${prefix}" \ 46 -DPYTHON_EXECUTABLE="${prefix}/bin/python2.7" \ 47 -DPYTHON_INCLUDE_DIR="${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers" \ 48 -DPYTHON_LIBRARY="${prefix}/lib/libpython2.7.dylib" 55 49 56 50 # the gerbil makefiles do not provide an install target 57 51 destroot { 58 52 # install binaries 59 xinstall -m 755 "${worksrcpath}/ gerbil" "${destroot}${prefix}/bin/"60 xinstall -m 755 "${worksrcpath}/ qgerbil" "${destroot}${prefix}/bin/"53 xinstall -m 755 "${worksrcpath}/bin/gerbil" "${destroot}${prefix}/bin/" 54 xinstall -m 755 "${worksrcpath}/bin/qgerbil" "${destroot}${prefix}/bin/" 61 55 62 56 # create directories for shared files … … 65 59 66 60 # install shared files 67 set sharefiles [list " COPYING" "README.txt" "doc/file_format.txt" "doc/introduction.txt" "doc/license.txt"]61 set sharefiles [list "AUTHORS" "COPYING" "README.txt" "doc/file_format.txt" "doc/introduction.txt" "doc/license.txt"] 68 62 foreach file $sharefiles { 69 63 xinstall -m 644 "${worksrcpath}/${file}" "${destroot}${prefix}/share/${name}/${file}"
Note: See TracChangeset
for help on using the changeset viewer.