1 # Created by: Horia Racoviceanu <horia@racoviceanu.com>
10 MAINTAINER= ports@FreeBSD.org
11 COMMENT= Advanced JPEG encoder for the Web
14 LICENSE_FILE= ${WRKSRC}/LICENSE.txt
19 USES= autoreconf libtool pkgconfig
20 USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
22 CONFIGURE_ARGS= --docdir=${PREFIX}/share/doc/${PORTNAME} \
23 --includedir=${PREFIX}/include/${PORTNAME} \
24 --libdir=${PREFIX}/lib/${PORTNAME} \
27 INSTALL_TARGET= install-strip
29 PLIST_SUB= PORTNAME=${PORTNAME}
34 OPTIONS_DEFINE= DOCS EXAMPLES SIMD TURBOJPEG
35 OPTIONS_DEFAULT=SIMD TURBOJPEG
38 SIMD_DESC= Include SIMD extensions
39 TURBOJPEG_DESC= Include the TurboJPEG wrapper library and associated tests
41 SIMD_CONFIGURE_WITH= simd
42 SIMD_BUILD_DEPENDS= yasm:devel/yasm
43 TURBOJPEG_CONFIGURE_WITH= turbojpeg
45 BROKEN_aarch64= Does not configure: error: SIMD support cannot be enabled
46 BROKEN_mips64= Does not configure: error: SIMD support cannot be enabled
47 BROKEN_powerpc64= Does not build: undefined reference to htole32
48 BROKEN_sparc64= Does not configure: error: SIMD support cannot be enabled
51 @${REINPLACE_CMD} -e '/^docdir/s|=.*|= ${DOCSDIR}|; \
52 /^exampledir/s|=.*|= ${EXAMPLESDIR}|' \
56 (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
58 .include <bsd.port.mk>