Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2026 19:55:58 +0000
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7889e357c2ac - main - graphics/simage: disable MPEG2ENC support by default to make packageable
Message-ID:  <6998bc4e.461f0.d76354b@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7889e357c2accb7275b1c35be07ef2e7e5c31f32

commit 7889e357c2accb7275b1c35be07ef2e7e5c31f32
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2026-02-09 18:50:01 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2026-02-20 19:52:48 +0000

    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
---
 graphics/simage/Makefile | 25 ++++++++++++++++---------
 1 file 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>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6998bc4e.461f0.d76354b>