aboutsummaryrefslogtreecommitdiff
path: root/graphics/openjpeg/Makefile
blob: 00f8e12f97fc0c9262426eb93f577bd2a18b9655 (plain) (blame)
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
PORTNAME=	openjpeg
PORTVERSION=	2.5.2
DISTVERSIONPREFIX=	v
PORTREVISION=	1
CATEGORIES=	graphics

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Open-source JPEG 2000 codec
WWW=		https://www.openjpeg.org/ \
		https://github.com/uclouvain/openjpeg

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	liblcms2.so:graphics/lcms2 \
		libpng.so:graphics/png \
		libtiff.so:graphics/tiff

USES=		cmake cpe localbase:ldflags jpeg pathfix pkgconfig

CMAKE_OFF=	BUILD_DOC \
		BUILD_JAVA \
		BUILD_JPIP \
		BUILD_JPIP_SERVER \
		BUILD_LUTS_GENERATOR \
		BUILD_TESTING \
		BUILD_THIRDPARTY \
		BUILD_UNIT_TESTS \
		BUILD_VIEWER \
		WITH_ASTYLE
CMAKE_ON=	BUILD_CODEC \
		BUILD_SHARED_LIBS \
		BUILD_STATIC_LIBS
USE_LDCONFIG=	yes

PLIST_SUB=	PORTVERSION=${PORTVERSION} VER=${PORTVERSION:R}

GH_ACCOUNT=	uclouvain
USE_GITHUB=	yes

CPE_VENDOR=	uclouvain

post-patch:
# Clean up bundled libraries
	@${RM} -r ${WRKSRC}/thirdparty/astyle/
	@${RM} -r ${WRKSRC}/thirdparty/include/
	@${RM} -r ${WRKSRC}/thirdparty/liblcms2/
	@${RM} -r ${WRKSRC}/thirdparty/libpng/
	@${RM} -r ${WRKSRC}/thirdparty/libtiff/
	@${RM} -r ${WRKSRC}/thirdparty/libz/

.include <bsd.port.mk>