Ticket #28087: vigra_new_Portfile.diff

File vigra_new_Portfile.diff, 8.2 KB (added by BSeppke (Benjamin Seppke), 13 years ago)

diff of currently active (vigra 1.6.0) and proposed new (vigra 1.7.1) port

Line 
11c1
2< # $Id: Portfile 75159 2011-01-25 19:22:53Z benjamin.seppke@gmail.com $
3---
4> # $Id: Portfile 75159 2011-01-17 02:00:53Z rmstonecipher@macports.org $
56c6,7
6< version             1.7.1
7---
8> version             1.6.0
9> revision            4
1018c19
11< homepage            http://hci.iwr.uni-heidelberg.de/vigra/
12---
13> homepage            http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/
1420c21
15< distname            ${name}-${version}-src
16---
17> distname            ${name}${version}
1822,23c23
19< #universal_variant   no
20< worksrcdir          ${name}-${version}
21---
22> universal_variant   no
2325,27c25,27
24< checksums           md5 2bde208e0fd7626770169dd4fa097282 \
25<                     sha1 f90f54da31a6544057c25df7dbcc6954604de079 \
26<                     rmd160 67a27b11f3d844b01fd8f2b0d2fe761099f8170b
27---
28> checksums           md5 d62650a6f908e85643e557a236ea989c \
29>                     sha1 9714a0c4efb77726a1140329e98e5db057f9a69f \
30>                     rmd160 cc9f6626801182a0ee71ec9eb8fa34c38f8777a7
3134c34
32<                     port:hdf5-18
33---
34>                     port:doxygen
3536c36,41
36< configure.cmd       cmake
37---
38> configure.args      --docdir=\\\${prefix}/share/doc/${name}-${version} \
39>                     --with-jpeg \
40>                     --with-tiff \
41>                     --with-png \
42>                     --with-zlib \
43>                     --with-fftw
4438,181c43
45< configure.args      -DSKIP_BUILD_RPATH=TRUE \
46<                                       -DCMAKE_VERBOSE_MAKEFILE=ON \
47<                     -DCMAKE_BUILD_TYPE=Release \
48<                     -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
49<                     -DCMAKE_INSTALL_PREFIX=${prefix} \
50<                     -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
51<                     -DCMAKE_INCLUDE_PATH=${prefix}/include \
52<                     -DCMAKE_LIBRARY_PATH=${prefix}/lib \
53<                     -DJPEG_INCLUDE_DIR=${prefix}/include \
54<                     -DPNG_PNG_INCLUDE_DIR=${prefix}/include \
55<                     -DTIFF_INCLUDE_DIR=${prefix}/include \
56<                     -Wno-dev \
57<                     -DBUILD_SHARED_LIBS=ON
58< configure.post_args .
59<
60< destroot.env-append DESTDIR=${destroot}
61<
62< post-destroot {
63<     # fix location of documentation to include version.
64<     # remove documentation if no variant is set.
65<     # for now since NumPy variant does not work, just
66<     # move what can be moved and delete the rest.
67<     if {[variant_isset docs]} {
68<         # move documentation to a versioned directory
69<         xinstall -m 755 -d ${destroot}${prefix}/share/doc
70<         move ${destroot}${prefix}/doc/${name} \
71<             ${destroot}${prefix}/share/doc/${name}-${version}
72<     }
73<     # delete whatever is left in the doc directory
74<     delete ${destroot}${prefix}/doc
75<     
76<     # unfortunately, we need to fix the RPATHs of the VIGRANUMPY bindings here
77<     if { ${python_version} != ""} {
78<               
79<         #1. determine the site packages path
80<       set python-site-packages ${frameworks_dir}/Python.framework/Versions/${python_version}/lib/python${python_version}/site-packages
81<
82<               #2.Repair the vigrnumpy python-lib's ids
83<               system "install_name_tool -id ${python-site-packages}/vigra/analysis.so \
84<                       ${destroot}${python-site-packages}/vigra/analysis.so"
85<               system "install_name_tool -id ${python-site-packages}/vigra/colors.so \
86<                       ${destroot}${python-site-packages}/vigra/colors.so"
87<               system "install_name_tool -id ${python-site-packages}/vigra/filters.so \
88<                       ${destroot}${python-site-packages}/vigra/filters.so"
89<               system "install_name_tool -id ${python-site-packages}/vigra/fourier.so \
90<                       ${destroot}${python-site-packages}/vigra/fourier.so"
91<               system "install_name_tool -id ${python-site-packages}/vigra/geometry.so \
92<                       ${destroot}${python-site-packages}/vigra/geometry.so"
93<               system "install_name_tool -id ${python-site-packages}/vigra/impex.so \
94<                       ${destroot}${python-site-packages}/vigra/impex.so"
95<               system "install_name_tool -id ${python-site-packages}/vigra/learning.so \
96<                       ${destroot}${python-site-packages}/vigra/learning.so"
97<               system "install_name_tool -id ${python-site-packages}/vigra/noise.so \
98<                       ${destroot}${python-site-packages}/vigra/noise.so"
99<               system "install_name_tool -id ${python-site-packages}/vigra/sampling.so \
100<                       ${destroot}${python-site-packages}/vigra/sampling.so"
101<               system "install_name_tool -id ${python-site-packages}/vigra/vigranumpycore.so \
102<                               ${destroot}${python-site-packages}/vigra/vigranumpycore.so"
103<
104<       #3. Repair the vigrnumpy python-lib's  dependencies
105<               system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
106<                                                                       ${python-site-packages}/vigra/vigranumpycore.so \
107<                                                                       ${destroot}${python-site-packages}/vigra/analysis.so"
108<               system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
109<                                                                       ${python-site-packages}/vigra/vigranumpycore.so \
110<                                                                       ${destroot}${python-site-packages}/vigra/colors.so"
111<               system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
112<                                                                       ${python-site-packages}/vigra/vigranumpycore.so \
113<                                                                       ${destroot}${python-site-packages}/vigra/filters.so"
114<               system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
115<                                                                       ${python-site-packages}/vigra/vigranumpycore.so \
116<                                                                       ${destroot}${python-site-packages}/vigra/fourier.so"
117<               system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
118<                                                                       ${python-site-packages}/vigra/vigranumpycore.so \
119<                                                                       ${destroot}${python-site-packages}/vigra/geometry.so"
120<               system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
121<                                                                       ${python-site-packages}/vigra/vigranumpycore.so \
122<                                                                       ${destroot}${python-site-packages}/vigra/impex.so"
123<               system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
124<                                                                       ${python-site-packages}/vigra/vigranumpycore.so \
125<                                                                       ${destroot}${python-site-packages}/vigra/learning.so"
126<               system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
127<                                                                       ${python-site-packages}/vigra/vigranumpycore.so \
128<                                                                       ${destroot}${python-site-packages}/vigra/noise.so"
129<               system "install_name_tool -change ${prefix}/lib/vigranumpycore.so \
130<                                                                       ${python-site-packages}/vigra/vigranumpycore.so \
131<                                                                       ${destroot}${python-site-packages}/vigra/sampling.so"                                                   
132<     }
133< }
134<
135< variant docs description "Build documentation" {}
136< if {[variant_isset docs]} {
137<     depends_lib-append port:doxygen
138< } else {
139<     configure.args-append \
140<         -DBUILD_doc=OFF \
141<         -DDOXYGEN_DOT_EXECUTABLE= \
142<         -DDOXYGEN_DOT_PATH= \
143<         -DDOXYGEN_EXECUTABLE=
144< }
145<
146< variant valgrind description "Include support for VALGRIND" {}
147< if {[variant_isset valgrind]} {
148<    depends_lib-append port:valgrind
149< } else {
150<    configure.args-append -DWITH_VALGRIND=NO
151< }
152<
153< variant python25 conflicts python26 python27 \
154< description "Use Python 2.5 - Requires Boost::Python and Numpy" {}
155<
156< variant python26 conflicts python25 python27 \
157< description "Use Python 2.6 - Requires Boost::Python and Numpy" {}
158<
159< variant python27 conflicts python25 python26 \
160< description "Use Python 2.7 - Requires Boost::Python and Numpy" {}
161<
162< set python_version ""
163< if {[variant_isset python25]} {
164<       set python_version "2.5"
165< } elseif {[variant_isset python26]} {
166<    set python_version "2.6"
167< } elseif {[variant_isset python27]} {
168<    set python_version "2.7"
169< }
170<
171< #check if python2.X-numpybindings shall be installed
172< if { ${python_version} == ""} {
173<
174<    configure.args-append -DWITH_VIGRANUMPY=NO
175<
176< } else {
177<       configure.args-append   -DPYTHON_EXECUTABLE=${prefix}/bin/python${python_version} \
178<                                                       -DPYTHON_SPHINX=${prefix}/bin/sphinx-build-${python_version}
179<
180<       set python_version_join [join [split ${python_version} "."] ""]
181<       depends_lib-append port:python${python_version_join}
182<
183<       depends_lib-append port:py${python_version_join}-numpy
184<       depends_lib-append port:py${python_version_join}-sphinx
185<       
186<       #unfortunately, it seems to be impossible to depend o a ports variant!
187<       #depends_lib-append port:boost+python${python_version_join}
188< }
189---
190> destroot.destdir    prefix=${destroot}${prefix}
191185c47
192< livecheck.regex     ${name}-(\[0-9.\]+)-src\\.tar
193---
194> livecheck.regex     ${name}(\[0-9.\]+)\\.tar