summaryrefslogtreecommitdiff
path: root/graphics/mozjpeg/Makefile
blob: 72b63a745fe6756159667b16b679ec186b104ef2 (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
# Created by: Horia Racoviceanu <horia@racoviceanu.com>

PORTNAME=	mozjpeg
PORTVERSION=	4.0.3
DISTVERSIONPREFIX=	v
CATEGORIES=	graphics

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Improved JPEG encoder by Mozilla

LICENSE=	BSD3CLAUSE

BROKEN_mips64=	does not configure: error: SIMD support cannot be enabled
BROKEN_sparc64=	does not configure: error: SIMD support cannot be enabled

BUILD_DEPENDS=	nasm>=2.10,1:devel/nasm
LIB_DEPENDS=	libpng.so:graphics/png

USES=		cmake cpe

CONFLICTS_INSTALL=	jpeg-turbo

CMAKE_OFF=	REQUIRE_SIMD WITH_12BIT WITH_ARITH_DEC WITH_ARITH_ENC WITH_JAVA WITH_JPEG7
CMAKE_ON=	ENABLE_SHARED ENABLE_STATIC FORCE_INLINE PNG_SUPPORTED WITH_JPEG8 WITH_MEM_SRCDST WITH_SIMD WITH_TURBOJPEG
USE_LDCONFIG=	yes

CPE_VENDOR=	mozilla

GH_ACCOUNT=	mozilla
USE_GITHUB=	yes

OPTIONS_DEFINE=	DOCS

post-install-DOCS-on:
	cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>