Skip to content

Commit

Permalink
vxl: update to version 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Aug 30, 2023
1 parent 7a988af commit 1ddc2a0
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 234 deletions.
86 changes: 31 additions & 55 deletions devel/vxl/Portfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
# -*- 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

PortSystem 1.0
PortGroup cmake 1.0
PortSystem 1.0
PortGroup cmake 1.1
PortGroup github 1.0

name vxl
version 1.17.0
revision 4
set branch [join [lrange [split ${version} .] 0 1] .]
categories devel
maintainers nomaintainer
description C++ libraries for computer vision
long_description \
github.setup vxl vxl 3.5.0 v
revision 0

categories devel
maintainers nomaintainer
description C++ libraries for computer vision
long_description \
VXL (the Vision-something-Libraries) is a collection of C++ libraries \
designed for computer vision research and implementation. It was \
created from TargetJr and the IUE with the aim of making a light, \
fast and consistent system. VXL is written in ANSI/ISO C++ and is \
designed to be portable over many platforms.
homepage http://vxl.sourceforge.net/
platforms darwin
homepage https://vxl.github.io

master_sites sourceforge:project/vxl/vxl/${branch}
use_zip yes
checksums rmd160 a00d811aa86b2d3a2dad292ff94991c034092434 \
sha256 b06b4a087486af3a270ced2597242bd6cc4e3381779f27a944ea0620208ae7e1
checksums rmd160 525f017bb6b3ff5c15c6b4203b29162259171fb7 \
sha256 1fcdc2f284a301beefcef2e59c495d322dd5765be5c7118c2d2607a25a3c4457 \
size 44264490

# licenses in vxl:
# (see also: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/vxl/trunk/debian/copyright?revision=10688&view=markup)
Expand All @@ -37,46 +35,24 @@ checksums rmd160 a00d811aa86b2d3a2dad292ff94991c034092434 \
# zlib for contrib/brl/b3p/minizip/*
# GPL-2+ for vidl_vil1/vidl_vil1_mpegcodec.cxx and vidl1/vidl1_mpegcodec.cxx
# Boost for vcl_atomic_count.h and vcl/internal/*
license BSD GPL-2+ zlib MIT Boost

# ensure that embedded openjpeg2 openjpeg.h takes precedence over that from external openjpeg15 or openjpeg
# disable ffmpeg support that fails to build with current ffmpeg versions
# disable broken contrib/prip code

patchfiles patch-use-embedded-openjpeg2.diff \
patch-contrib_mul_tools_crop_image_2d.cxx.diff \
patch-contrib_mul_tools_crop_image_3d.cxx.diff \
patch-disable-broken-ffmpeg.diff \
patch-disable-contrib-prip.diff \
patch-jpeg.diff
license BSD GPL-2+ zlib MIT Boost

depends_lib-append \
path:include/turbojpeg.h:libjpeg-turbo \
port:tiff \
port:libgeotiff \
port:libpng \
port:zlib \
port:bzip2 \
port:libdc1394
set libdir lib/${github.project}

if {[string match *clang* ${configure.compiler}]} {
configure.cxxflags-append -Werror=gnu -Wno-error=vla -std=c++0x
patchfiles-append patch-core_vul_vul_psfile.h.diff
}
depends_lib-append \
path:include/turbojpeg.h:libjpeg-turbo \
port:tiff \
port:libgeotiff \
port:libpng \
port:zlib \
port:bzip2

configure.args-append \
-DBUILD_SHARED_LIBS=YES \
-DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/${name} \
-DBUILD_BRL=NO

# shuffle directories around to turn ${prefix}/lib into ${prefix}/lib/${name}
post-destroot {
file rename ${destroot}${prefix}/lib ${destroot}${prefix}/tmp
file mkdir ${destroot}${prefix}/lib
file rename ${destroot}${prefix}/tmp ${destroot}${prefix}/lib/${name}

# for some reason this file doesn't get installed, making rev-upgrade complain
xinstall -m 755 ${worksrcpath}/lib/libvpgl.dylib ${destroot}${prefix}/lib/${name}
}

livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
-DBUILD_SHARED_LIBS=YES \
-DCMAKE_INSTALL_NAME_DIR=${prefix}/${libdir} \
-DVXL_INSTALL_LIBRARY_DIR=${libdir} \
-DVXL_USE_DCMTK:BOOL=OFF \
-DVXL_FORCE_V3P_OPENJPEG2=ON \
-DVXL_BUILD_CORE_VIDEO=OFF \
-DVXL_BUILD_CONTRIB=OFF \
-DVXL_BUILD_VGUI:BOOL=OFF
44 changes: 0 additions & 44 deletions devel/vxl/files/patch-contrib_mul_tools_crop_image_2d.cxx.diff

This file was deleted.

53 changes: 0 additions & 53 deletions devel/vxl/files/patch-contrib_mul_tools_crop_image_3d.cxx.diff

This file was deleted.

11 changes: 0 additions & 11 deletions devel/vxl/files/patch-core_vul_vul_psfile.h.diff

This file was deleted.

20 changes: 0 additions & 20 deletions devel/vxl/files/patch-disable-broken-ffmpeg.diff

This file was deleted.

16 changes: 0 additions & 16 deletions devel/vxl/files/patch-disable-contrib-prip.diff

This file was deleted.

24 changes: 0 additions & 24 deletions devel/vxl/files/patch-jpeg.diff

This file was deleted.

11 changes: 0 additions & 11 deletions devel/vxl/files/patch-use-embedded-openjpeg2.diff

This file was deleted.

0 comments on commit 1ddc2a0

Please sign in to comment.