[97679] trunk/dports/science/gerbil/Portfile
cal at macports.org
cal at macports.org
Tue Sep 11 14:55:18 PDT 2012
Revision: 97679
http://trac.macports.org//changeset/97679
Author: cal at macports.org
Date: 2012-09-11 14:41:26 -0700 (Tue, 11 Sep 2012)
Log Message:
-----------
gerbil: update to 0.4a, build with clang, simplify configure, properly declare python dep, install AUTHORS, fix livecheck
Modified Paths:
--------------
trunk/dports/science/gerbil/Portfile
Modified: trunk/dports/science/gerbil/Portfile
===================================================================
--- trunk/dports/science/gerbil/Portfile 2012-09-11 20:56:04 UTC (rev 97678)
+++ trunk/dports/science/gerbil/Portfile 2012-09-11 21:41:26 UTC (rev 97679)
@@ -5,8 +5,7 @@
PortGroup cmake 1.0
name gerbil
-version 0.3
-revision 2
+version 0.4a
categories science
license GPL-3
maintainers cal openmaintainer
@@ -21,50 +20,45 @@
master_sites sourceforge:project/gerbil/gerbil
use_bzip2 yes
-checksums rmd160 8f34bf75227161fab1a6771be4e28028027b456a \
- sha256 0c4d779d6ce402d2c93bcc23d1898d49f442803a0f4c489bcd687d87d9a02dd9
+checksums rmd160 bacfe1fe4a6d11bce6eba279464c9b272b43d5b4 \
+ sha256 bc41bf0ea805ff51be76b3e6c61a93029901fbd17ec458578657dd6e23553d18
-livecheck.regex "/${name}/${name}-(\[0-9\]+(\\.\[0-9\]+)*)\.tar"
+livecheck.regex "/${name}/${name}-(\[0-9\]+(\\.\[0-9\]+)*\[a-z\]?)\.tar"
depends_lib port:qt4-mac \
port:opencv \
- port:boost
+ port:boost \
+ port:python27
# opencv is not universal
universal_variant no
-if {${configure.compiler} == "clang"} {
- # gerbil 0.3 doesn't build with clang++
- configure.compiler llvm-gcc-4.2
-}
+worksrcdir ${name}-0.4
configure.post_args -DOpenCV_DIR="${prefix}/lib/cmake" \
- -DVOLE_BUNDLE_CORE=on \
- -DVOLE_BUNDLE_GERBIL=on
-
-post-configure {
- configure.post_args \
+ -DCMAKE_BUILD_TYPE=Release \
-DGerbil_Viewer=on \
-DGerbil_Edge_Detect=on \
-DVole_Seg_Graphs=on \
- -DVOLE_SHELL=ON \
- -DCMAKE_EXE_LINKER_FLAGS=\"-framework OpenGL\"
+ -DVole_Shell=on \
+ -DCMAKE_EXE_LINKER_FLAGS=\"-framework OpenGL\" \
+ -DBoost_DIR="${prefix}" \
+ -DPYTHON_EXECUTABLE="${prefix}/bin/python2.7" \
+ -DPYTHON_INCLUDE_DIR="${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers" \
+ -DPYTHON_LIBRARY="${prefix}/lib/libpython2.7.dylib"
- system -W "${worksrcpath}" "${configure.cmd} ${configure.pre_args} [join ${configure.args}] [join ${configure.post_args}]"
-}
-
# the gerbil makefiles do not provide an install target
destroot {
# install binaries
- xinstall -m 755 "${worksrcpath}/gerbil" "${destroot}${prefix}/bin/"
- xinstall -m 755 "${worksrcpath}/qgerbil" "${destroot}${prefix}/bin/"
+ xinstall -m 755 "${worksrcpath}/bin/gerbil" "${destroot}${prefix}/bin/"
+ xinstall -m 755 "${worksrcpath}/bin/qgerbil" "${destroot}${prefix}/bin/"
# create directories for shared files
xinstall -d -m 755 "${destroot}${prefix}/share/${name}"
xinstall -d -m 755 "${destroot}${prefix}/share/${name}/doc"
# install shared files
- set sharefiles [list "COPYING" "README.txt" "doc/file_format.txt" "doc/introduction.txt" "doc/license.txt"]
+ set sharefiles [list "AUTHORS" "COPYING" "README.txt" "doc/file_format.txt" "doc/introduction.txt" "doc/license.txt"]
foreach file $sharefiles {
xinstall -m 644 "${worksrcpath}/${file}" "${destroot}${prefix}/share/${name}/${file}"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120911/94205cfb/attachment.html>
More information about the macports-changes
mailing list