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

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

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

LICENSE=    BSD3CLAUSE

BROKEN_aarch64= does not configure: error: SIMD support cannot be enabled
BROKEN_mips64=  does not configure: error: SIMD support cannot be enabled
BROKEN_powerpc64=   does not build: undefined reference to htole32
BROKEN_sparc64= does not configure: error: SIMD support cannot be enabled

LIB_DEPENDS=    libpng.so:graphics/png

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

CONFIGURE_ARGS= --docdir=${DOCSDIR} \
        --includedir=${PREFIX}/include/${PORTNAME} \
        --libdir=${PREFIX}/lib/${PORTNAME} \
        --program-prefix=${PORTNAME}- \
        --with-jpeg8
GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip
USE_LDCONFIG=   ${PREFIX}/lib/${PORTNAME}
USES=       autoreconf libtool pkgconfig

PORTDOCS=   *
PORTEXAMPLES=   *

GH_ACCOUNT= mozilla
USE_GITHUB= yes

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

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

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

.include <bsd.port.mk>