summaryrefslogtreecommitdiffstats
path: root/graphics/mozjpeg/Makefile
blob: 710fcdffe2a6dfccad716bf20ea2d3feac943859 (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
# Created by: Horia Racoviceanu <horia@racoviceanu.com>
# $FreeBSD$

PORTNAME=	mozjpeg
PORTVERSION=	3.1
DISTVERSIONPREFIX=	v
PORTREVISION=	1
CATEGORIES=	graphics

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Advanced JPEG encoder for the Web

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BROKEN_powerpc64=	Does not build

USE_GITHUB=	yes
GH_ACCOUNT=	mozilla

USES=		autoreconf libtool pkgconfig
USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--docdir=${PREFIX}/share/doc/${PORTNAME} \
		--includedir=${PREFIX}/include/${PORTNAME} \
		--libdir=${PREFIX}/lib/${PORTNAME} \
		--with-jpeg8 \
		--disable-static
INSTALL_TARGET=	install-strip

PLIST_SUB=	PORTNAME=${PORTNAME}

PORTDOCS=	*
PORTEXAMPLES=	*

OPTIONS_DEFINE=	DOCS EXAMPLES SIMD TURBOJPEG
OPTIONS_DEFAULT=SIMD TURBOJPEG
OPTIONS_SUB=	yes

SIMD_DESC=	Include SIMD extensions
TURBOJPEG_DESC=	Include the TurboJPEG wrapper library and associated tests

SIMD_CONFIGURE_WITH=		simd
SIMD_BUILD_DEPENDS=		yasm:devel/yasm
TURBOJPEG_CONFIGURE_WITH=	turbojpeg

post-patch:
	@${REINPLACE_CMD} -e '/^docdir/s|=.*|= ${DOCSDIR}|; \
		/^exampledir/s|=.*|= ${EXAMPLESDIR}|' \
			${WRKSRC}/Makefile.am

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

.include <bsd.port.mk>
OpenPOWER on IntegriCloud