summaryrefslogtreecommitdiff
path: root/graphics/libheif/Makefile
blob: 4d92b8a9627b187cebdfe20854ecf93b15f464f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $FreeBSD$

PORTNAME=		libheif
DISTVERSIONPREFIX=	v
DISTVERSION=		1.3.2
PORTREVISION=		4
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 compiler:c++11-lang 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+=		libpng.so:graphics/png
.endif

.if ${PORT_OPTIONS:MX265}
LIB_DEPENDS+=		libx265.so:multimedia/x265
.endif

.include <bsd.port.mk>