diff options
| author | Thierry Thomas <thierry@FreeBSD.org> | 2026-02-09 18:50:01 +0000 |
|---|---|---|
| committer | Thierry Thomas <thierry@FreeBSD.org> | 2026-02-20 19:52:48 +0000 |
| commit | 7889e357c2accb7275b1c35be07ef2e7e5c31f32 (patch) | |
| tree | 089b3097c90d09caaf6a00fe4ec736a80cd66cdf | |
| parent | 4b74069478c7695eb8f2a48d2088c0b2da73c6c7 (diff) | |
graphics/simage: disable MPEG2ENC support by default to make packageable
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
| -rw-r--r-- | graphics/simage/Makefile | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/graphics/simage/Makefile b/graphics/simage/Makefile index 6116dc8f5670..b7c6dfc14b90 100644 --- a/graphics/simage/Makefile +++ b/graphics/simage/Makefile @@ -1,5 +1,6 @@ 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 @@ -8,14 +9,7 @@ MAINTAINER= florianmarx@free.fr COMMENT= Library with image format loaders and front-ends WWW= https://github.com/coin3d/simage/ -LICENSE= ISC MPEG2ENC -LICENSE_COMB= multi -LICENSE_NAME_ISC= ISC License -LICENSE_NAME_MPEG2ENC= mpeg2enc license -LICENSE_FILE_ISC= ${WRKSRC}/LICENSE -LICENSE_FILE_MPEG2ENC= ${WRKSRC}/LICENSE.mpeg2enc -LICENSE_PERMS_ISC= dist-mirror dist-sell pkg-mirror pkg-sell -LICENSE_PERMS_MPEG2ENC= no-dist-sell no-pkg-sell +LICENSE= ISCL LIB_DEPENDS= libsndfile.so:audio/libsndfile \ libvorbis.so:audio/libvorbis \ @@ -31,10 +25,23 @@ LIB_DEPENDS= libsndfile.so:audio/libsndfile \ USES= cmake jpeg localbase:ldflags USE_LDCONFIG= yes -CMAKE_ON= SIMAGE_MPEG2ENC_SUPPORT +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> |
