1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/graphics/jpeg-turbo/Makefile
Daniel Engberg 6b077d7a7d graphics/jpeg-turbo: Disable SIMD instructions on ARMv6 platforms
libjpeg-turbo incorrectly assumes that SIMD instructions are
available on all ARM platforms

PR:		258685
Reported by:	Martin Birgmeier
Approved by:	antoine	(portmgr / maintainer)
Differential Revision:	https://reviews.freebsd.org/D32096
2021-09-24 23:10:15 +02:00

56 lines
1.3 KiB
Makefile

# Created by: Denis Podolskiy <bytestore@yandex.ru>
PORTNAME= jpeg-turbo
DISTVERSION= 2.1.1
PORTREVISION?= 0
CATEGORIES= graphics
MASTER_SITES= SF/lib${PORTNAME}/${DISTVERSION}
DISTNAME= lib${PORTNAME}-${DISTVERSION}
PATCH_SITES= https://github.com/libjpeg-turbo/libjpeg-turbo/commit/
PATCHFILES= 173900b1cabb027495ae530c71250bcedc9925d5.patch:-p1 \
129f0cb76346ceede8f4d8d87dea8acb0809056c.patch:-p1
MAINTAINER= portmgr@FreeBSD.org
COMMENT?= SIMD-accelerated JPEG codec which replaces libjpeg
LICENSE= BSD3CLAUSE IJG ZLIB
LICENSE_COMB= multi
LICENSE_GROUPS_IJG= FSF GPL
LICENSE_NAME_IJG= Independent JPEG Group License
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE.md
LICENSE_FILE_IJG= ${WRKSRC}/README.ijg
LICENSE_FILE_ZLIB= ${WRKSRC}/LICENSE.md
LICENSE_PERMS_IJG= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= cmake cpe
USE_LDCONFIG= yes
CMAKE_ON= WITH_JPEG8
CPE_PRODUCT= libjpeg-turbo
TEST_TARGET= test
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/libjpeg-turbo
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${ARCH} == i386 || ${ARCH} == amd64
BUILD_DEPENDS+= nasm:devel/nasm
.endif
.if ${ARCH} == armv6
CMAKE_OFF= WITH_SIMD
.endif
.if ${SLAVE_PORT} == yes
PLIST_SUB+= JPEG="@comment " LIBTURBOJPEG=""
.else
CMAKE_OFF+= WITH_TURBOJPEG
CONFLICTS_INSTALL= jpeg-[0-9]*
PLIST_SUB+= JPEG="" LIBTURBOJPEG="@comment "
.endif
.include <bsd.port.mk>