Ticket #34838: Portfile

File Portfile, 3.1 KB (added by andi.dhroso@…, 12 years ago)

Porfile after applying Portfile.patch

Line 
1# $Id: Portfile 90311 2012-03-01 18:37:57Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name             vxl
6version          1.14.0
7revision         1
8set branch       [join [lrange [split ${version} .] 0 1] .]
9categories       devel
10maintainers      maeth.com:wiking
11description      C++ libraries for computer vision
12long_description \
13        VXL (the Vision-something-Libraries) is a collection of C++ libraries \
14        designed for computer vision research and implementation. It was \
15        created from TargetJr and the IUE with the aim of making a light, \
16        fast and consistent system. VXL is written in ANSI/ISO C++ and is \
17        designed to be portable over many platforms.
18homepage         http://vxl.sourceforge.net/
19platforms        darwin
20
21master_sites     sourceforge:project/vxl/vxl/${branch}
22use_zip          yes
23checksums        md5    0329521f2fda61d2835e7b3c7c1189df \
24                 sha1   db42cfce42448c40d37fcdd3127e6d586660c8c3 \
25                 rmd160 2b7c72ead698d928cfd5d56205b2e1b3f7f2fef9
26
27# error: integer constant is too large for 'long' type
28universal_variant no
29
30patchfiles      patch-contrib__gel__mrc__vpgl__txx-clang-compatibility.diff \
31                patch-contrib__prip__vmap__vmap_2_map.txx.diff \
32                patch-contrib__prip__vmap__vmap_ptr_sequences.h-clang-compatibility.diff \
33                patch-contrib__prip__vpyr__vpyr_2_pyramid_level_elts.h-clang-compatibility.diff \
34                patch-contrib__prip__vpyr__vpyr_2_tpyramid_level_elts.h-clang-compatibility.diff \
35                patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff \
36                patch-contrib__tbl__vipl__txx-clang-compatibility.diff \
37                patch-core__examples__vnl_calc__vnl_calc.cxx-clang-compatibility.diff \
38                patch-core__vil__tests__test_image_resource.cxx-clang-compatibility.diff \
39                patch-core__vil__tests__test_image_view.cxx-clang-compatibility.diff \
40                patch-core__vnl__vnl_matrix_fixed_ref.h-clang-compatibility.diff \
41                patch-v3p__mpeg2__libmpeg2__idct_altivec.c \
42                patch-v3p__mpeg2__libmpeg2__motion_comp_altivec.c
43
44#patchfiles             patch-v3p__mpeg2__libmpeg2__idct_altivec.c \
45#                   patch-v3p__mpeg2__libmpeg2__motion_comp_altivec.c
46
47post-patch {
48        file delete ${worksrcpath}/contrib/mul/vil3d/Templates/vil3d_tricub_interp+uint-.cxx
49}
50
51depends_build    port:cmake
52
53depends_lib      path:lib/libavcodec.dylib:ffmpeg \
54                 port:libgeotiff \
55                 port:libpng
56
57configure.cmd      ${prefix}/bin/cmake
58configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix}
59configure.args     -DBUILD_SHARED_LIBS=YES \
60                   -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/${name} \
61                                   -DCMAKE_CXX_FLAGS=\"${configure.cxxflags} -Werror=gnu\" \
62                   -DBUILD_BRL=NO \
63                   ${worksrcpath}
64
65use_parallel_build no
66
67# shuffle directories around to turn ${prefix}/lib into ${prefix}/lib/${name}
68post-destroot {
69        file rename ${destroot}${prefix}/lib ${destroot}${prefix}/tmp
70        file mkdir ${destroot}${prefix}/lib
71        file rename ${destroot}${prefix}/tmp ${destroot}${prefix}/lib/${name}
72}
73
74livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}