7889e357c2
With MPEG2ENC enabled by default, the license is not free, and this port cannot be packaged. Therefore the consumers of simage cannot be packaged: among them Coin-4.0.6 graphics/Coin simage-1.8.4 FreeCAD-1.0.2_7 cad/freecad simage-1.8.4 FreeCAD-devel-r20251228075421_1 cad/freecad-devel simage-1.8.4 py311-pivy-0.6.10 graphics/py-pivy@py311 simage-1.8.4 SoQt-1.6.4,1 x11-toolkits/soqt simage-1.8.4 visp-3.6.0_13 misc/visp simage-1.8.4 This patch make MPEG2ENC optional, so that these ports should be packageable again. Problem identified by: Mark Millard PR: 293070 Approved by: maintainer’s time-out MFC after: 8 days
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
PORTNAME= simage
|
|
DISTVERSION= 1.8.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= https://github.com/coin3d/${PORTNAME}/releases/download/v${DISTVERSION}/
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
|
|
|
|
MAINTAINER= florianmarx@free.fr
|
|
COMMENT= Library with image format loaders and front-ends
|
|
WWW= https://github.com/coin3d/simage/
|
|
|
|
LICENSE= ISCL
|
|
|
|
LIB_DEPENDS= libsndfile.so:audio/libsndfile \
|
|
libvorbis.so:audio/libvorbis \
|
|
libFLAC.so:audio/flac \
|
|
libogg.so:audio/libogg \
|
|
libopus.so:audio/opus \
|
|
libzstd.so:archivers/zstd \
|
|
libgif.so:graphics/giflib \
|
|
libpng.so:graphics/png \
|
|
libtiff.so:graphics/tiff \
|
|
libjasper.so:graphics/jasper
|
|
|
|
USES= cmake jpeg localbase:ldflags
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS_DEFINE= MPEG2ENC
|
|
MPEG2ENC_DESC= MPEG encodage support (royalty fees implied)
|
|
MPEG2ENC_CMAKE_BOOL= SIMAGE_MPEG2ENC_SUPPORT
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
PLIST_SUB= VERSION="${DISTVERSION}"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMPEG2ENC}
|
|
LICENSE+= MPEG2ENC
|
|
LICENSE_COMB= multi
|
|
LICENSE_NAME_MPEG2ENC= mpeg2enc license
|
|
LICENSE_FILE_ISCL= ${WRKSRC}/LICENSE
|
|
LICENSE_FILE_MPEG2ENC= ${WRKSRC}/LICENSE.mpeg2enc
|
|
LICENSE_PERMS_MPEG2ENC= no-dist-sell no-pkg-sell
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|