source: trunk/dports/devel/vxl/Portfile

Last change on this file was 151499, checked in by larryv@…, 11 months ago

vxl: Give patch a patchy extension

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
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
2# $Id: Portfile 151499 2016-08-17 05:25:49Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       cmake 1.0
6
7name            vxl
8version         1.17.0
9revision        1
10set branch      [join [lrange [split ${version} .] 0 1] .]
11categories      devel
12maintainers     nomaintainer
13description     C++ libraries for computer vision
14long_description \
15    VXL (the Vision-something-Libraries) is a collection of C++ libraries \
16    designed for computer vision research and implementation. It was \
17    created from TargetJr and the IUE with the aim of making a light, \
18    fast and consistent system. VXL is written in ANSI/ISO C++ and is \
19    designed to be portable over many platforms.
20homepage        http://vxl.sourceforge.net/
21platforms       darwin
22
23master_sites    sourceforge:project/vxl/vxl/${branch}
24use_zip         yes
25checksums       rmd160  a00d811aa86b2d3a2dad292ff94991c034092434 \
26                sha256  b06b4a087486af3a270ced2597242bd6cc4e3381779f27a944ea0620208ae7e1
27
28# licenses in vxl:
29# (see also: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/vxl/trunk/debian/copyright?revision=10688&view=markup)
30# BSD       for core
31# GPL-2+    for v3p/Qv/*
32# zlib      for v3p/zlib/*
33# GPL-2+    for v3p/mpeg2/libmpeg2/*
34# MIT       for v3p/geotiff/*
35# Boost     for core/vul/vul_ios_state.h
36# Boost     for contrib/rpl/rgrl/*
37# MIT/X11   for contrib/brl/b3p/shapelib/* (or LGPL-something)
38# zlib      for contrib/brl/b3p/minizip/*
39# GPL-2+    for vidl_vil1/vidl_vil1_mpegcodec.cxx and vidl1/vidl1_mpegcodec.cxx
40# Boost     for vcl_atomic_count.h and vcl/internal/*
41license         BSD GPL-2+ zlib MIT Boost
42
43# ensure that embedded openjpeg2 openjpeg.h takes precedence over that from external openjpeg15 or openjpeg
44# disable ffmpeg support that fails to build with current ffmpeg versions
45# disable broken contrib/prip code
46
47patchfiles      patch-use-embedded-openjpeg2.diff \
48                patch-contrib_mul_tools_crop_image_2d.cxx.diff \
49                patch-contrib_mul_tools_crop_image_3d.cxx.diff \
50                patch-disable-broken-ffmpeg.diff \
51                patch-disable-contrib-prip.diff
52
53depends_lib-append \
54                port:jpeg \
55                port:tiff \
56                port:libgeotiff \
57                port:libpng \
58                port:zlib \
59                port:bzip2 \
60                port:libdc1394
61
62if {[string match *clang* ${configure.compiler}]} {
63    configure.cxxflags-append -Werror=gnu -Wno-error=vla -std=c++0x
64    patchfiles-append   patch-core_vul_vul_psfile.h.diff
65}
66
67configure.args-append \
68    -DBUILD_SHARED_LIBS=YES \
69    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/${name} \
70    -DBUILD_BRL=NO
71
72# shuffle directories around to turn ${prefix}/lib into ${prefix}/lib/${name}
73post-destroot {
74    file rename ${destroot}${prefix}/lib ${destroot}${prefix}/tmp
75    file mkdir ${destroot}${prefix}/lib
76    file rename ${destroot}${prefix}/tmp ${destroot}${prefix}/lib/${name}
77
78    # for some reason this file doesn't get installed, making rev-upgrade complain
79    xinstall -m 755 ${worksrcpath}/lib/libvpgl.dylib ${destroot}${prefix}/lib/${name}
80}
81
82livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.