freebsd-ports/graphics/mozjpeg/Makefile
Antoine Brodin 18a2c964ca Fix negative shift with IFAST FDCT and qual=100
This fixes regression tests with clang 3.7.0

PR:		202763
Obtained from:	4cfa3f4c39
Submitted upstream in:	https://github.com/mozilla/mozjpeg/pull/186
Approved by:	maintainer timeout (2 weeks)
2015-09-13 20:37:04 +00:00

53 lines
1.2 KiB
Makefile

# Created by: Horia Racoviceanu <horia@racoviceanu.com>
# $FreeBSD$
PORTNAME= mozjpeg
PORTVERSION= 3.1
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= horia@racoviceanu.com
COMMENT= Advanced JPEG encoder for the Web
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
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:${PORTSDIR}/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>