Ticket #28087: vigra_Portfile_svn.diff

File vigra_Portfile_svn.diff, 6.0 KB (added by michaelld (Michael Dickens), 13 years ago)

"svn diff" in "vigra" directory; bump from 1.6 to 1.7.1 including the necessary move to CMake.

  • Portfile

     
     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
    12# $Id$
    23
    34PortSystem          1.0
     
    34
    45name                vigra
    5 version             1.6.0
    6 revision            4
     6version             1.7.1
    77categories          graphics
    88platforms           darwin
     
    1616                    those in the C++ Standard Template Library, you can \
    1717                    easily adapt any VIGRA component to the needs of your \
    1818                    application, without thereby giving up execution speed.
    19 homepage            http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/
     19homepage            http://hci.iwr.uni-heidelberg.de/vigra/
    2020master_sites        ${homepage}
    21 distname            ${name}${version}
     21distname            ${name}-${version}-src
    2222use_parallel_build  yes
    23 universal_variant   no
     23#universal_variant   no
     24worksrcdir          ${name}-${version}
    2425
    25 checksums           md5 d62650a6f908e85643e557a236ea989c \
    26                     sha1 9714a0c4efb77726a1140329e98e5db057f9a69f \
    27                     rmd160 cc9f6626801182a0ee71ec9eb8fa34c38f8777a7
     26checksums           md5 2bde208e0fd7626770169dd4fa097282 \
     27                    sha1 f90f54da31a6544057c25df7dbcc6954604de079 \
     28                    rmd160 67a27b11f3d844b01fd8f2b0d2fe761099f8170b
    2829
    2930depends_lib         port:jpeg \
    3031                    port:tiff \
    3132                    port:libpng \
    3233                    port:zlib \
    33                     port:fftw-3 \
    34                     port:doxygen
     34                    port:fftw-3
    3535
    36 configure.args      --docdir=\\\${prefix}/share/doc/${name}-${version} \
    37                     --with-jpeg \
    38                     --with-tiff \
    39                     --with-png \
    40                     --with-zlib \
    41                     --with-fftw
     36configure.cmd       cmake
     37configure.args      -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
     38                    -DCMAKE_VERBOSE_MAKEFILE=ON \
     39                    -DCMAKE_BUILD_TYPE=Release \
     40                    -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
     41                    -DCMAKE_INSTALL_PREFIX=${prefix} \
     42                    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/ \
     43                    -DCMAKE_INCLUDE_PATH=${prefix}/include \
     44                    -DCMAKE_LIBRARY_PATH=${prefix}/lib \
     45                    -DJPEG_INCLUDE_DIR=${prefix}/include \
     46                    -DPNG_PNG_INCLUDE_DIR=${prefix}/include \
     47                    -DTIFF_INCLUDE_DIR=${prefix}/include \
     48                    -Wno-dev \
     49                    -DBUILD_SHARED_LIBS=ON
     50configure.post_args .
    4251
    43 destroot.destdir    prefix=${destroot}${prefix}
     52destroot.env-append DESTDIR=${destroot}
    4453
     54post-destroot {
     55    # fix location of documentation to include version.
     56    # remove documentation if no variant is set.
     57    # for now since NumPy variant does not work, just
     58    # move what can be moved and delete the rest.
     59    if {[variant_isset docs]} {
     60        # move documentation to a versioned directory
     61        xinstall -m 755 -d ${destroot}${prefix}/share/doc
     62        move ${destroot}${prefix}/doc/${name} \
     63            ${destroot}${prefix}/share/doc/${name}-${version}
     64    }
     65    # delete whatever is left in the doc directory
     66    delete ${destroot}${prefix}/doc
     67}
     68
     69variant docs description "Build documentation" {}
     70
     71if {[variant_isset docs]} {
     72    depends_lib-append port:doxygen
     73} else {
     74    configure.args-append \
     75        -DBUILD_doc=OFF \
     76        -DDOXYGEN_DOT_EXECUTABLE= \
     77        -DDOXYGEN_DOT_PATH= \
     78        -DDOXYGEN_EXECUTABLE=
     79}
     80
     81variant hdf5 description {Include support for HDF5} {}
     82# set default variant
     83if {![variant_isset hdf5]} {
     84   default_variants +hdf5
     85}
     86# see if user specified -hdf5
     87if {[variant_isset hdf5]} {
     88   depends_lib-append port:hdf5-18
     89} else {
     90   configure.args-append -DWITH_HDF5=NO
     91}
     92
     93variant valgrind description {Include support for VALGRIND} {}
     94# set default variant
     95if {![variant_isset valgrind]} {
     96   default_variants +valgrind
     97}
     98# see if user specified -valgrind
     99if {[variant_isset valgrind]} {
     100   depends_lib-append port:valgrind
     101} else {
     102   configure.args-append -DWITH_VALGRIND=NO
     103}
     104
     105variant python25 conflicts python26 python27 \
     106description "Use Python 2.5" {}
     107
     108variant python26 conflicts python25 python27 \
     109description "Use Python 2.6" {}
     110
     111variant python27 conflicts python25 python26 \
     112description "Use Python 2.7" {}
     113
     114# set default variant, if no others set
     115if { ![variant_isset python25] && \
     116     ![variant_isset python26] && \
     117     ![variant_isset python27] } {
     118     default_variants +python26
     119}
     120
     121# check to make sure -some- Python variant is active
     122if { ![variant_isset python25] && \
     123     ![variant_isset python26] && \
     124     ![variant_isset python27] } {
     125     ui_error "${name} requires some variant of Python."
     126}
     127
     128set python_version ""
     129if {[variant_isset python25]} {
     130   set python_version "2.5"
     131} elseif {[variant_isset python26]} {
     132   set python_version "2.6"
     133} elseif {[variant_isset python27]} {
     134   set python_version "2.7"
     135}
     136
     137configure.args-append -DPYTHON_EXECUTABLE=${prefix}/bin/python${python_version}
     138
     139#  -DPYTHON_INCLUDE_DIR=${frameworks_dir}/Python.framework/Headers
     140
     141set python_version_join [join [split ${python_version} "."] ""]
     142depends_lib-append port:python${python_version_join}
     143
     144# disable NUMPY -- requires Boost::Python.
     145configure.args-append -DWITH_VIGRANUMPY=NO
     146
     147# variant numpy description {Include support for NUMPY} {}
     148# set default variant
     149# if {![variant_isset numpy]} {
     150#   default_variants +numpy
     151#}
     152# see if user specified -numpy
     153#if {[variant_isset numpy]} {
     154#   depends_lib-append port:py${python_version_join}-numpy
     155#                     port:py${python_version_join}-sphinx
     156#} else {
     157#   configure.args-append -DWITH_VIGRANUMPY=NO
     158#}
     159
    45160livecheck.type      regex
    46161livecheck.url       ${homepage}
    47 livecheck.regex     ${name}(\[0-9.\]+)\\.tar
     162livecheck.regex     ${name}-(\[0-9.\]+)-src\\.tar