2014-03-13 21:00:11 +01:00
|
|
|
# Created by: Horia Racoviceanu <horia@racoviceanu.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mozjpeg
|
2018-01-14 15:14:22 +01:00
|
|
|
PORTVERSION= 3.3.1
|
2015-06-17 19:25:02 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2014-03-13 21:00:11 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
2017-05-07 23:26:23 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
|
|
COMMENT= Improved JPEG encoder by Mozilla
|
2014-03-13 21:00:11 +01:00
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
|
2017-08-20 14:26:43 +02:00
|
|
|
BROKEN_mips64= does not configure: error: SIMD support cannot be enabled
|
2017-05-07 23:26:23 +02:00
|
|
|
BROKEN_powerpc64= does not build: undefined reference to htole32
|
2017-08-20 14:26:43 +02:00
|
|
|
BROKEN_sparc64= does not configure: error: SIMD support cannot be enabled
|
|
|
|
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
2017-05-07 23:26:23 +02:00
|
|
|
|
|
|
|
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} \
|
2014-03-13 21:00:11 +01:00
|
|
|
--includedir=${PREFIX}/include/${PORTNAME} \
|
2014-10-03 14:26:44 +02:00
|
|
|
--libdir=${PREFIX}/lib/${PORTNAME} \
|
2017-05-13 16:59:10 +02:00
|
|
|
--program-prefix=${PORTNAME}- \
|
2017-05-07 23:26:23 +02:00
|
|
|
--with-jpeg8
|
|
|
|
GNU_CONFIGURE= yes
|
2014-10-03 14:26:44 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2017-05-07 23:26:23 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
USES= autoreconf libtool pkgconfig
|
2014-03-13 21:00:11 +01:00
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
2017-05-07 23:26:23 +02:00
|
|
|
GH_ACCOUNT= mozilla
|
|
|
|
USE_GITHUB= yes
|
2014-03-13 21:00:11 +01:00
|
|
|
|
2017-05-07 23:26:23 +02:00
|
|
|
SIMD_BUILD_DEPENDS= yasm:devel/yasm
|
|
|
|
SIMD_CONFIGURE_WITH= simd
|
2014-03-13 21:00:11 +01:00
|
|
|
TURBOJPEG_CONFIGURE_WITH= turbojpeg
|
|
|
|
|
|
|
|
post-patch:
|
2017-05-07 23:26:23 +02:00
|
|
|
@${REINPLACE_CMD} -e '/pkgconfig/d; /^exampledir = / s| =.*| = ${EXAMPLESDIR}|' ${WRKSRC}/Makefile.am
|
2014-03-13 21:00:11 +01:00
|
|
|
|
2017-05-07 23:26:23 +02:00
|
|
|
post-install-DOCS-on:
|
|
|
|
cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
|
2014-03-13 21:00:11 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|