Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151034528
D18802.id52714.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D18802.id52714.diff
View Options
Index: graphics/libheif/Makefile
===================================================================
--- graphics/libheif/Makefile
+++ graphics/libheif/Makefile
@@ -3,20 +3,17 @@
PORTNAME= libheif
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.2
+PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= me@sebastiansteinmetz.ch
COMMENT= Libheif is an ISO/IEC 23008-12:2017 HEIF file format de- and encoder
+# N.B., subsequent revisions in Git relicense examples from GPL3+ to MIT.
LICENSE= LGPL3+
-LICENSE_FILE= ${WRKSRC}/COPYING
+LICENSE_FILE_LGPL3+= ${WRKSRC}/COPYING
-LIB_DEPENDS= libde265.so:multimedia/libde265 \
- libx265.so:multimedia/x265 \
- libpng16.so:graphics/png
-
-USES= autoreconf libtool pkgconfig shared-mime-info \
- shebangfix
+USES= autoreconf libtool localbase pkgconfig shebangfix
USE_GITHUB= yes
GH_ACCOUNT= strukturag
GH_PROJECT= libheif
@@ -24,4 +21,39 @@
USE_LDCONFIG= yes
SHEBANG_GLOB= *.sh
+OPTIONS_DEFINE= EXAMPLES JPEG LIBDE265 PNG THREADS X265
+OPTIONS_DEFAULT=EXAMPLES JPEG LIBDE265 PNG THREADS X265
+OPTIONS_SUB= yes
+
+EXAMPLES_DESC= Install example programs (heif-convert, heif-enc, heif-info, heif-thumbnailer)
+LIBDE265_DESC= Use libde265 (support for HEVC decoding)
+X265_DESC= Use x265 (support for HEVC encoding)
+
+THREADS_CONFIGURE_OFF= --disable-multithreading
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+LICENSE+= GPLv3+
+LICENSE_COMB= multi
+LICENSE_FILE_GPLv3+= ${WRKSRC}/examples/COPYING
+USES+= shared-mime-info
+.endif
+
+.if ${PORT_OPTIONS:MJPEG}
+USES+= jpeg
+.endif
+
+.if ${PORT_OPTIONS:MLIBDE265}
+LIB_DEPENDS+= libde265.so:multimedia/libde265
+.endif
+
+.if ${PORT_OPTIONS:MPNG}
+LIB_DEPENDS+= libpng16.so:graphics/png
+.endif
+
+.if ${PORT_OPTIONS:MX265}
+LIB_DEPENDS+= libx265.so:multimedia/x265
+.endif
+
.include <bsd.port.mk>
Index: graphics/libheif/pkg-plist
===================================================================
--- graphics/libheif/pkg-plist
+++ graphics/libheif/pkg-plist
@@ -1,7 +1,7 @@
-bin/heif-convert
-bin/heif-enc
-bin/heif-info
-bin/heif-thumbnailer
+%%EXAMPLES%%bin/heif-convert
+%%EXAMPLES%%bin/heif-enc
+%%EXAMPLES%%bin/heif-info
+%%EXAMPLES%%bin/heif-thumbnailer
include/libheif/heif.h
include/libheif/heif_cxx.h
include/libheif/heif_plugin.h
@@ -11,5 +11,5 @@
lib/libheif.so.1
lib/libheif.so.1.3.2
libdata/pkgconfig/libheif.pc
-share/mime/packages/heif.xml
-share/thumbnailers/heif.thumbnailer
+%%EXAMPLES%%share/mime/packages/heif.xml
+%%EXAMPLES%%share/thumbnailers/heif.thumbnailer
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 2:06 PM (1 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30975026
Default Alt Text
D18802.id52714.diff (2 KB)
Attached To
Mode
D18802: graphics/libheif: Clean up Makefile, add JPEG by default
Attached
Detach File
Event Timeline
Log In to Comment