1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/graphics/mozjpeg/Makefile
Sunpoet Po-Chuan Hsieh 23f6cf9498 Fix build on powerpc64
PR:		240087
Submitted by:	pkubaj
2019-08-26 11:50:20 +00:00

52 lines
1.3 KiB
Makefile

# Created by: Horia Racoviceanu <horia@racoviceanu.com>
# $FreeBSD$
PORTNAME= mozjpeg
PORTVERSION= 3.3.1
DISTVERSIONPREFIX= v
CATEGORIES= graphics
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Improved JPEG encoder by Mozilla
LICENSE= BSD3CLAUSE
BROKEN_mips64= does not configure: error: SIMD support cannot be enabled
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>