Commit c4b8dc41 authored by Rene Ladan's avatar Rene Ladan
Browse files

graphics/vv: Remove expired port

2026-08-04 graphics/vv: depends on expired science/InsightToolkit501
parent 88e826bf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5547,3 +5547,4 @@ devel/p5-Devel-BeginLift||2026-08-02|Has expired: uses hidden Perl functions tha
textproc/p5-Text-ClearSilver||2026-08-02|Has expired: uses hidden Perl functions that are hidden after 5.37.0
x11-fonts/nerd-fonts-d2coding|x11-fonts/nerd-fonts-d2koding|2026-08-03|Renamed by upstream due to licensing reasons
math/topaz||2026-08-04|Has expired: Last release was in 2011 and WWW is unavailable
graphics/vv||2026-08-04|Has expired: depends on expired science/InsightToolkit501
+0 −1
Original line number Diff line number Diff line
@@ -1286,7 +1286,6 @@
    SUBDIR += vulkan-tools
    SUBDIR += vulkan-utility-libraries
    SUBDIR += vulkan-validation-layers
    SUBDIR += vv
    SUBDIR += waffle
    SUBDIR += waifu2x-converter-cpp
    SUBDIR += waifu2x-ncnn-vulkan

graphics/vv/Makefile

deleted100644 → 0
+0 −74
Original line number Diff line number Diff line
PORTNAME=	vv
DISTVERSIONPREFIX=	v
DISTVERSION=	1.4.0-406
PORTREVISION=	2
DISTVERSIONSUFFIX=	-gd33ac3e8
CATEGORIES=	graphics

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Fast and simple 4D image viewer
WWW=		https://github.com/open-vv/vv

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

DEPRECATED=	depends on expired science/InsightToolkit501
EXPIRATION_DATE=2026-08-04

BUILD_DEPENDS=	googletest>0:devel/googletest # error: unable to find library -lGTest::GTest, see https://github.com/open-vv/vv/issues/74
LIB_DEPENDS=	libexpat.so:textproc/expat2 \
		libfreetype.so:print/freetype2 \
		libgdcmCommon.so:devel/gdcm \
		libhdf5_cpp.so:science/hdf5 \
		libITKLabelMap-5.0.so:science/InsightToolkit501 \
		libmpi.so:net/mpich \
		libnetcdf.so:science/netcdf \
		libpng16.so:graphics/png \
		libtiff.so:graphics/tiff \
		libvtkIOSQL-${VTK_VER}.so:math/vtk9

USES=		cmake compiler:c++11-lang eigen:3 jpeg python:build,run qt:5 xorg
USE_GITHUB=	yes
GH_ACCOUNT=	open-vv
USE_QT=		core designer gui network opengl declarative sql widgets xml buildtools:build qmake:build
USE_XORG=	ice sm x11 xext xt
USE_CXXSTD=	c++11

CMAKE_ARGS=	-DVTK_DIR:PATH=${LOCALBASE}/lib/vtk-8.2/cmake/vtk-8.2

PLIST_FILES=	bin/vv

.include <bsd.port.pre.mk>

.if ${ARCH} == i386
CXXFLAGS+=	-msse2 # workaround for ITK failing to add -msse2 on i386: https://github.com/open-vv/vv/issues/83 & https://github.com/InsightSoftwareConsortium/ITK/issues/2011
.endif

post-patch:
	@${REINPLACE_CMD} -e 's/VTK_OVERRIDE/override/g' \
		${WRKSRC}/vv/vtkVOXImageWriter.h \
		${WRKSRC}/vv/vvAnimatedGIFWriter.h \
		${WRKSRC}/vv/vvBlendImageActor.h \
		${WRKSRC}/vv/vvClipPolyData.h \
		${WRKSRC}/vv/vvGlyph2D.h \
		${WRKSRC}/vv/vvGlyphSource.h \
		${WRKSRC}/vv/vvInteractorStyleNavigator.h \
		${WRKSRC}/vv/vvLandmarksGlyph.h \
		${WRKSRC}/vv/vvSlicer.h
	@${REINPLACE_CMD} -e 's/Widget()->GetRenderWindow()/Widget()->renderWindow()/g' \
		${WRKSRC}/vv/vvToolHistogramCommand.cxx
	@${REINPLACE_CMD} -e 's/Widget->GetRenderWindow()/Widget->renderWindow()/g' \
		${WRKSRC}/vv/vvMainWindow.cxx \
		${WRKSRC}/vv/vvSegmentationDialog.cxx \
		${WRKSRC}/vv/vvSurfaceViewerDialog.cxx \
		${WRKSRC}/vv/vvToolHistogram.cxx \
		${WRKSRC}/vv/vvToolProfile.cxx
	@${REINPLACE_CMD} -e 's/widget->GetRenderWindow()/widget->renderWindow()/g' \
		${WRKSRC}/vv/vvMainWindow.cxx

post-configure: # workaround for "error: unable to find library -lGTest::GTest", see https://github.com/open-vv/vv/issues/74
	@${REINPLACE_CMD} -E 's/ -lGTest::(GTest|Main) / /g' ${BUILD_WRKSRC}/build.ninja
	@${REINPLACE_CMD} -E 's|/usr/local/lib/libtiff\.so\.[0-9]+\.[0-9]+\.[0-9]+|/usr/local/lib/libtiff.so|g' ${BUILD_WRKSRC}/build.ninja

.include <../../math/vtk9/Makefile.version>
.include <bsd.port.post.mk>

graphics/vv/distinfo

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
TIMESTAMP = 1760419528
SHA256 (open-vv-vv-v1.4.0-406-gd33ac3e8_GH0.tar.gz) = 7f3e10a3a1391ccebd56d685316303b2fbf7f0112417d8caadb4562644cebf06
SIZE (open-vv-vv-v1.4.0-406-gd33ac3e8_GH0.tar.gz) = 8248327
+0 −25
Original line number Diff line number Diff line
Remove deprecated std::binary_function base class.

C++17 removed std::binary_function which was deprecated in C++11.
Replace with plain structs that define operator().

--- common/clitkCommon.txx.orig	2025-04-17 12:54:38 UTC
+++ common/clitkCommon.txx
@@ -135,7 +135,7 @@ template<class Type>
 
 //--------------------------------------------------------------------
 template<class Type>
-struct vectorComparisonLowerThan: public std::binary_function<int, int, bool> {
+struct vectorComparisonLowerThan {
   vectorComparisonLowerThan(const std::vector<Type> & v):vect(v) {};
   bool operator()(int x, int y) {
     return (vect[x] < vect[y]);
@@ -146,7 +146,7 @@ template<class Type>
 
 //--------------------------------------------------------------------
 template<class Type>
-struct vectorComparisonGreaterThan: public std::binary_function<int, int, bool> {
+struct vectorComparisonGreaterThan {
   vectorComparisonGreaterThan(const std::vector<Type> & v):vect(v) {};
   bool operator()(int x, int y) {
     return (vect[x] > vect[y]);
Loading