Changeset 97679 for trunk/dports


Ignore:
Timestamp:
Sep 11, 2012, 9:41:26 PM (7 years ago)
Author:
cal@…
Message:

gerbil: update to 0.4a, build with clang, simplify configure, properly declare python dep, install AUTHORS, fix livecheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/gerbil/Portfile

    r93126 r97679  
    66
    77name                gerbil
    8 version             0.3
    9 revision            2
     8version             0.4a
    109categories          science
    1110license             GPL-3
     
    2221use_bzip2           yes
    2322
    24 checksums           rmd160  8f34bf75227161fab1a6771be4e28028027b456a \
    25                     sha256  0c4d779d6ce402d2c93bcc23d1898d49f442803a0f4c489bcd687d87d9a02dd9
     23checksums           rmd160  bacfe1fe4a6d11bce6eba279464c9b272b43d5b4 \
     24                    sha256  bc41bf0ea805ff51be76b3e6c61a93029901fbd17ec458578657dd6e23553d18
    2625
    27 livecheck.regex     "/${name}/${name}-(\[0-9\]+(\\.\[0-9\]+)*)\.tar"
     26livecheck.regex     "/${name}/${name}-(\[0-9\]+(\\.\[0-9\]+)*\[a-z\]?)\.tar"
    2827
    2928depends_lib         port:qt4-mac \
    3029                    port:opencv \
    31                     port:boost
     30                    port:boost \
     31                    port:python27
    3232
    3333# opencv is not universal
    3434universal_variant   no
    3535
    36 if {${configure.compiler} == "clang"} {
    37     # gerbil 0.3 doesn't build with clang++
    38     configure.compiler llvm-gcc-4.2
    39 }
     36worksrcdir          ${name}-0.4
    4037
    4138configure.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 \
    4740                    -DGerbil_Viewer=on \
    4841                    -DGerbil_Edge_Detect=on \
    4942                    -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"
    5549
    5650# the gerbil makefiles do not provide an install target
    5751destroot {
    5852    # 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/"
    6155
    6256    # create directories for shared files
     
    6559
    6660    # 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"]
    6862    foreach file $sharefiles {
    6963        xinstall -m 644 "${worksrcpath}/${file}" "${destroot}${prefix}/share/${name}/${file}"
Note: See TracChangeset for help on using the changeset viewer.