1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/graphics/libheif/Makefile
Conrad Meyer 799bbb3015 graphics/libheif: Correct license, OPTIONize, add jpeg support
Most of this is non-functional change pulling various features out into
options.  Part of that is correctly labeling the examples as GPL3+.  In a
later revision, they are relicensed to MIT, but not in this version of the
port.

Functional changes including adding a JPEG option and enabling it by
default.  libheif is the only utility we ship that can understand .heic
images and converting photos to the more portable jpeg is a reasonable thing
to enable by default.

Approved by:	maintainer timeout
Differential Revision:	https://reviews.freebsd.org/D18802
2019-02-24 18:42:06 +00:00

60 lines
1.4 KiB
Makefile

# $FreeBSD$
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_LGPL3+= ${WRKSRC}/COPYING
USES= autoreconf libtool localbase pkgconfig shebangfix
USE_GITHUB= yes
GH_ACCOUNT= strukturag
GH_PROJECT= libheif
GNU_CONFIGURE= yes
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>