Ticket #28087: vigra_svn.diff
File vigra_svn.diff, 6.6 KB (added by michaelld (Michael Dickens), 14 years ago) |
---|
-
files/patch-config-VIGRA_ADD_NUMPY_MODULE.cmake.diff
1 --- config/VIGRA_ADD_NUMPY_MODULE.cmake.orig 2011-01-26 10:26:08.000000000 -0500 2 +++ config/VIGRA_ADD_NUMPY_MODULE.cmake 2011-01-26 10:27:02.000000000 -0500 3 @@ -78,7 +78,7 @@ 4 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}" 5 PREFIX "" SUFFIX ".pyd") 6 ELSEIF(MACOSX) 7 - SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}" PREFIX "" SUFFIX ".so") 8 + SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}" PREFIX "" SUFFIX ".so" INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${VIGRANUMPY_INSTALL_DIR}/vigra") 9 ELSE() 10 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}" 11 PREFIX "") -
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 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 … … 3 4 4 5 name vigra 5 version 1.6.0 6 revision 4 6 version 1.7.1 7 7 categories graphics 8 8 platforms darwin … … 16 16 those in the C++ Standard Template Library, you can \ 17 17 easily adapt any VIGRA component to the needs of your \ 18 18 application, without thereby giving up execution speed. 19 homepage http:// kogs-www.informatik.uni-hamburg.de/~koethe/vigra/19 homepage http://hci.iwr.uni-heidelberg.de/vigra/ 20 20 master_sites ${homepage} 21 distname ${name} ${version}21 distname ${name}-${version}-src 22 22 use_parallel_build yes 23 universal_variant no 23 #universal_variant no 24 worksrcdir ${name}-${version} 24 25 25 checksums md5 d62650a6f908e85643e557a236ea989c\26 sha1 9714a0c4efb77726a1140329e98e5db057f9a69f\27 rmd160 cc9f6626801182a0ee71ec9eb8fa34c38f8777a726 checksums md5 2bde208e0fd7626770169dd4fa097282 \ 27 sha1 f90f54da31a6544057c25df7dbcc6954604de079 \ 28 rmd160 67a27b11f3d844b01fd8f2b0d2fe761099f8170b 28 29 29 30 depends_lib port:jpeg \ 30 31 port:tiff \ 31 32 port:libpng \ 32 33 port:zlib \ 33 34 port:fftw-3 \ 34 port: doxygen35 port:hdf5-18 35 36 36 configure.args --docdir=\\\${prefix}/share/doc/${name}-${version} \ 37 --with-jpeg \ 38 --with-tiff \ 39 --with-png \ 40 --with-zlib \ 41 --with-fftw 37 # correct the INSTALL_NAME_DIR for Python .so modules 38 patchfiles patch-config-VIGRA_ADD_NUMPY_MODULE.cmake.diff 42 39 43 destroot.destdir prefix=${destroot}${prefix} 40 configure.cmd cmake 44 41 42 configure.args -DSKIP_BUILD_RPATH=TRUE \ 43 -DCMAKE_VERBOSE_MAKEFILE=ON \ 44 -DCMAKE_BUILD_TYPE=Release \ 45 -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \ 46 -DCMAKE_INSTALL_PREFIX=${prefix} \ 47 -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \ 48 -DCMAKE_INCLUDE_PATH=${prefix}/include \ 49 -DCMAKE_LIBRARY_PATH=${prefix}/lib \ 50 -DJPEG_INCLUDE_DIR=${prefix}/include \ 51 -DPNG_PNG_INCLUDE_DIR=${prefix}/include \ 52 -DTIFF_INCLUDE_DIR=${prefix}/include \ 53 -Wno-dev \ 54 -DBUILD_SHARED_LIBS=ON 55 configure.post_args . 56 57 destroot.env-append DESTDIR=${destroot} 58 59 post-destroot { 60 # fix location of documentation to include version. 61 # remove documentation if no variant is set. 62 # for now since NumPy variant does not work, just 63 # move what can be moved and delete the rest. 64 if {[variant_isset docs]} { 65 # move documentation to a versioned directory 66 xinstall -m 755 -d ${destroot}${prefix}/share/doc 67 move ${destroot}${prefix}/doc/${name} \ 68 ${destroot}${prefix}/share/doc/${name}-${version} 69 } 70 # delete whatever is left in the doc directory 71 delete ${destroot}${prefix}/doc 72 } 73 74 variant docs description "Build documentation" {} 75 if {[variant_isset docs]} { 76 depends_lib-append port:doxygen 77 } else { 78 configure.args-append \ 79 -DBUILD_doc=OFF \ 80 -DDOXYGEN_DOT_EXECUTABLE= \ 81 -DDOXYGEN_DOT_PATH= \ 82 -DDOXYGEN_EXECUTABLE= 83 } 84 85 variant valgrind description "Include support for VALGRIND" {} 86 if {[variant_isset valgrind]} { 87 depends_lib-append port:valgrind 88 } else { 89 configure.args-append -DWITH_VALGRIND=NO 90 } 91 92 set python_version "" 93 # figure out if Boost::Python exists, 94 # and if so what Python version 95 set boost_python_lib [exec find /opt/local/lib \ 96 -name "lib*boost*python*mt*dylib" \ 97 -type f -maxdepth 1 | \ 98 awk "{ print \$1 }"] 99 if {${boost_python_lib} != ""} { 100 set python_version [exec otool -L ${boost_python_lib} | \ 101 grep Python | awk "{ print \$1 }" | \ 102 sed -e "s@.*Versions/\\(.*\\)/Python@\\1@"] 103 } 104 105 if { ${python_version} == ""} { 106 107 # just disable NUMPY bindings via a CMake flag 108 configure.args-append -DWITH_VIGRANUMPY=NO 109 110 } else { 111 # yes: allow for +numpy variant 112 variant numpy description \ 113 "Include support for NUMPY (requires BOOST::Python)" {} 114 115 if {[variant_isset numpy]} { 116 # append cmake flags 117 configure.args-append \ 118 -DPYTHON_EXECUTABLE=${prefix}/bin/python${python_version} \ 119 -DPYTHON_SPHINX=${prefix}/bin/sphinx-build-${python_version} 120 121 # make sure dependencies are installed 122 set python_version_join [join [split ${python_version} "."] ""] 123 depends_lib-append port:boost \ 124 port:python${python_version_join} \ 125 port:py${python_version_join}-numpy \ 126 port:py${python_version_join}-sphinx 127 } 128 } 129 45 130 livecheck.type regex 46 131 livecheck.url ${homepage} 47 livecheck.regex ${name} (\[0-9.\]+)\\.tar132 livecheck.regex ${name}-(\[0-9.\]+)-src\\.tar