aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2026-02-09 18:50:01 +0000
committerThierry Thomas <thierry@FreeBSD.org>2026-02-20 19:52:48 +0000
commit7889e357c2accb7275b1c35be07ef2e7e5c31f32 (patch)
tree089b3097c90d09caaf6a00fe4ec736a80cd66cdf /graphics
parent4b74069478c7695eb8f2a48d2088c0b2da73c6c7 (diff)
Diffstat (limited to 'graphics')
-rw-r--r--graphics/simage/Makefile25
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>