1c1
< # $Id: Portfile 75159 2011-01-25 19:22:53Z benjamin.seppke@gmail.com $
---
> # $Id: Portfile 75159 2011-01-17 02:00:53Z rmstonecipher@macports.org $
6c6,7
< version             1.7.1
---
> version             1.6.0
> revision            4
18c19
< homepage            http://hci.iwr.uni-heidelberg.de/vigra/
---
> homepage            http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/
20c21
< distname            ${name}-${version}-src
---
> distname            ${name}${version}
22,23c23
< #universal_variant   no
< worksrcdir          ${name}-${version}
---
> universal_variant   no
25,27c25,27
< checksums           md5 2bde208e0fd7626770169dd4fa097282 \
<                     sha1 f90f54da31a6544057c25df7dbcc6954604de079 \
<                     rmd160 67a27b11f3d844b01fd8f2b0d2fe761099f8170b
---
> checksums           md5 d62650a6f908e85643e557a236ea989c \
>                     sha1 9714a0c4efb77726a1140329e98e5db057f9a69f \
>                     rmd160 cc9f6626801182a0ee71ec9eb8fa34c38f8777a7
34c34
<                     port:hdf5-18
---
>                     port:doxygen
36c36,41
< configure.cmd       cmake
---
> configure.args      --docdir=\\\${prefix}/share/doc/${name}-${version} \
>                     --with-jpeg \
>                     --with-tiff \
>                     --with-png \
>                     --with-zlib \
>                     --with-fftw
38,181c43
< configure.args      -DSKIP_BUILD_RPATH=TRUE \
< 					-DCMAKE_VERBOSE_MAKEFILE=ON \
<                     -DCMAKE_BUILD_TYPE=Release \
<                     -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
<                     -DCMAKE_INSTALL_PREFIX=${prefix} \
<                     -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
<                     -DCMAKE_INCLUDE_PATH=${prefix}/include \
<                     -DCMAKE_LIBRARY_PATH=${prefix}/lib \
<                     -DJPEG_INCLUDE_DIR=${prefix}/include \
<                     -DPNG_PNG_INCLUDE_DIR=${prefix}/include \
<                     -DTIFF_INCLUDE_DIR=${prefix}/include \
<                     -Wno-dev \
<                     -DBUILD_SHARED_LIBS=ON
< configure.post_args .
< 
< destroot.env-append DESTDIR=${destroot}
< 
< post-destroot {
<     # fix location of documentation to include version.
<     # remove documentation if no variant is set.
<     # for now since NumPy variant does not work, just
<     # move what can be moved and delete the rest.
<     if {[variant_isset docs]} {
<         # move documentation to a versioned directory
<         xinstall -m 755 -d ${destroot}${prefix}/share/doc
<         move ${destroot}${prefix}/doc/${name} \
<             ${destroot}${prefix}/share/doc/${name}-${version}
<     }
<     # delete whatever is left in the doc directory
<     delete ${destroot}${prefix}/doc
<     
<     # unfortunately, we need to fix the RPATHs of the VIGRANUMPY bindings here
<     if { ${python_version} != ""} {
<         	
<         #1. determine the site packages path
<     	set python-site-packages ${frameworks_dir}/Python.framework/Versions/${python_version}/lib/python${python_version}/site-packages
< 
< 		#2.Repair the vigrnumpy python-lib's ids
< 		system "install_name_tool -id ${python-site-packages}/vigra/analysis.so \
< 		       	${destroot}${python-site-packages}/vigra/analysis.so"
< 		system "install_name_tool -id ${python-site-packages}/vigra/colors.so \
< 		        ${destroot}${python-site-packages}/vigra/colors.so"
< 		system "install_name_tool -id ${python-site-packages}/vigra/filters.so \
< 		       	${destroot}${python-site-packages}/vigra/filters.so"
< 		system "install_name_tool -id ${python-site-packages}/vigra/fourier.so \
< 		       	${destroot}${python-site-packages}/vigra/fourier.so"
< 		system "install_name_tool -id ${python-site-packages}/vigra/geometry.so \
< 		       	${destroot}${python-site-packages}/vigra/geometry.so"
< 		system "install_name_tool -id ${python-site-packages}/vigra/impex.so \
< 		        ${destroot}${python-site-packages}/vigra/impex.so"
< 		system "install_name_tool -id ${python-site-packages}/vigra/learning.so \
< 		    	${destroot}${python-site-packages}/vigra/learning.so"
< 		system "install_name_tool -id ${python-site-packages}/vigra/noise.so \
< 		       	${destroot}${python-site-packages}/vigra/noise.so"
< 		system "install_name_tool -id ${python-site-packages}/vigra/sampling.so \
< 		      	${destroot}${python-site-packages}/vigra/sampling.so"
< 		system "install_name_tool -id ${python-site-packages}/vigra/vigranumpycore.so \
< 				${destroot}${python-site-packages}/vigra/vigranumpycore.so"
< 
<     	#3. Repair the vigrnumpy python-lib's  dependencies
< 		system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
< 									${python-site-packages}/vigra/vigranumpycore.so \
< 									${destroot}${python-site-packages}/vigra/analysis.so"
< 		system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
< 									${python-site-packages}/vigra/vigranumpycore.so \
< 									${destroot}${python-site-packages}/vigra/colors.so"
< 		system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
< 									${python-site-packages}/vigra/vigranumpycore.so \
< 									${destroot}${python-site-packages}/vigra/filters.so"
< 		system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
< 									${python-site-packages}/vigra/vigranumpycore.so \
< 									${destroot}${python-site-packages}/vigra/fourier.so"
< 		system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
< 									${python-site-packages}/vigra/vigranumpycore.so \
< 									${destroot}${python-site-packages}/vigra/geometry.so"
< 		system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
< 									${python-site-packages}/vigra/vigranumpycore.so \
< 									${destroot}${python-site-packages}/vigra/impex.so"
< 		system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
< 									${python-site-packages}/vigra/vigranumpycore.so \
< 									${destroot}${python-site-packages}/vigra/learning.so"
< 		system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
< 									${python-site-packages}/vigra/vigranumpycore.so \
< 									${destroot}${python-site-packages}/vigra/noise.so"
< 		system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
< 									${python-site-packages}/vigra/vigranumpycore.so \
< 									${destroot}${python-site-packages}/vigra/sampling.so"							
<     }
< }
< 
< variant docs description "Build documentation" {}
< if {[variant_isset docs]} {
<     depends_lib-append port:doxygen
< } else {
<     configure.args-append \
<         -DBUILD_doc=OFF \
<         -DDOXYGEN_DOT_EXECUTABLE= \
<         -DDOXYGEN_DOT_PATH= \
<         -DDOXYGEN_EXECUTABLE=
< }
< 
< variant valgrind description "Include support for VALGRIND" {}
< if {[variant_isset valgrind]} {
<    depends_lib-append port:valgrind
< } else {
<    configure.args-append -DWITH_VALGRIND=NO
< }
< 
< variant python25 conflicts python26 python27 \
< description "Use Python 2.5 - Requires Boost::Python and Numpy" {}
< 
< variant python26 conflicts python25 python27 \
< description "Use Python 2.6 - Requires Boost::Python and Numpy" {}
< 
< variant python27 conflicts python25 python26 \
< description "Use Python 2.7 - Requires Boost::Python and Numpy" {}
< 
< set python_version ""
< if {[variant_isset python25]} {
<    	set python_version "2.5"
< } elseif {[variant_isset python26]} {
<    set python_version "2.6"
< } elseif {[variant_isset python27]} {
<    set python_version "2.7"
< }
< 
< #check if python2.X-numpybindings shall be installed
< if { ${python_version} == ""} {
< 
<    configure.args-append -DWITH_VIGRANUMPY=NO
< 
< } else {
< 	configure.args-append 	-DPYTHON_EXECUTABLE=${prefix}/bin/python${python_version} \
< 							-DPYTHON_SPHINX=${prefix}/bin/sphinx-build-${python_version}
< 
< 	set python_version_join [join [split ${python_version} "."] ""]
< 	depends_lib-append port:python${python_version_join}
< 
< 	depends_lib-append port:py${python_version_join}-numpy
<    	depends_lib-append port:py${python_version_join}-sphinx
<    	
<    	#unfortunately, it seems to be impossible to depend o a ports variant!
<    	#depends_lib-append port:boost+python${python_version_join}
< }
---
> destroot.destdir    prefix=${destroot}${prefix}
185c47
< livecheck.regex     ${name}-(\[0-9.\]+)-src\\.tar
---
> livecheck.regex     ${name}(\[0-9.\]+)\\.tar
