summaryrefslogtreecommitdiff
path: root/graphics/openjph/Makefile
blob: c44219bd03a8b0ea42c034012e535a0a2599436d (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
PORTNAME=	openjph
PORTVERSION=	0.13.3
CATEGORIES=	graphics

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Open-source implementation of JPEG2000 Part-15
WWW=		https://github.com/aous72/OpenJPH

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libtiff.so:graphics/tiff

USES=		cmake compiler:c++11-lang pathfix

CMAKE_OFF=	OJPH_BUILD_STREAM_EXPAND OJPH_BUILD_TESTS
CMAKE_ON=	BUILD_SHARED_LIBS OJPH_BUILD_EXECUTABLES OJPH_ENABLE_TIFF_SUPPORT
USE_LDCONFIG=	yes

PLIST_SUB=	PORTVERSION=${PORTVERSION}

GH_ACCOUNT=	aous72
GH_PROJECT=	OpenJPH
USE_GITHUB=	yes

.include <bsd.port.options.mk>

.if ${ARCH} != amd64
CMAKE_ON+=	OJPH_DISABLE_SIMD
.endif

post-install:
	${LN} -s libopenjph.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libopenjph.so.0

.include <bsd.port.mk>