freebsd-ports/graphics/jpeg-turbo/Makefile
Stefan Eßer bcaf25a8c8 Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.

This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.

Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
cannot conflict with itself (due to logic in bsd.port.mk that
supresses the pattern match result in that case).

A few ports that set the conflicts variables depending on complex
conditions (e.g. port options), have been left unmodified, despite
probably containing outdated package names.

These changes should only affect the installation of locally built
ports, not the package building with poudriere. They should give an
early indication of the install conflict in cases where currently
the pkg command aborts an installation when it detects that an
existing file would be overwritten,

Approved by:	portmgr (implicit)
2022-01-10 16:15:39 +01:00

56 lines
1.4 KiB
Makefile

# Created by: Denis Podolskiy <bytestore@yandex.ru>
PORTNAME= jpeg-turbo
DISTVERSION= 2.1.1
PORTREVISION?= 1
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 \
d401d6251412a2985810ffaffb90b448a6ee12a9.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= mozjpeg
PLIST_SUB+= JPEG="" LIBTURBOJPEG="@comment "
.endif
.include <bsd.port.mk>