1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/graphics/png/Makefile
Daniel Engberg b2ce808120 graphics/png: Update to 1.6.44
Changelog: https://github.com/pnggroup/libpng/blob/v1.6.44/ANNOUNCE

PR:		281503
Approved by:	desktop (fluffy)
Exp-run by:	antoine
2024-09-20 21:16:58 +02:00

59 lines
1.6 KiB
Makefile

PORTNAME= png
DISTVERSION= 1.6.44
CATEGORIES= graphics
MASTER_SITES= SF/lib${PORTNAME}/lib${PORTNAME}16/${DISTVERSION}/
PATCH_SITES= SF/lib${PORTNAME}-apng/lib${PORTNAME}16/${DISTVERSION}/
# Keep this because you normally need to keep patch version in sync with release
DISTNAME= lib${PORTNAME}-${DISTVERSION}
MAINTAINER= desktop@FreeBSD.org
COMMENT= Library for manipulating PNG images
WWW= http://www.libpng.org/pub/png/libpng.html
LICENSE= Libpng
LICENSE_GROUPS= FSF GPL OSI
LICENSE_NAME= libpng License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= cmake:testing cpe pathfix tar:xz
CPE_PRODUCT= libpng
USE_LDCONFIG= yes
CMAKE_OFF= PNG_TESTS
CMAKE_TESTING_ON= PNG_TESTS
OPTIONS_DEFINE= APNG SIMD
OPTIONS_DEFAULT=APNG
OPTIONS_DEFAULT_aarch64= SIMD
OPTIONS_DEFAULT_amd64= SIMD
OPTIONS_DEFAULT_powerpc64le= SIMD
# arm/arm_init.c:43:6: error: "No support for run-time ARM Neon checking; use compile-time options"
.ifdef QEMU_EMULATING
OPTIONS_EXCLUDE_armv6= SIMD
OPTIONS_EXCLUDE_armv7= SIMD
.endif
APNG_DESC=Enable Animated PNG support
SIMD_CMAKE_BOOL= PNG_HARDWARE_OPTIMIZATIONS
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64 && ${PORT_OPTIONS:MSIMD}
USES+= compiler:c11
CFLAGS+= -maltivec -mvsx
.endif
.if ${PORT_OPTIONS:MAPNG} || make(makesum)
#PATCHFILES= ${DISTNAME}-apng.patch.gz:-p1
# Keep this because you normally need to keep patch version in sync with release
PATCHFILES= lib${PORTNAME}-${DISTVERSION}-apng.patch.gz:-p1
.endif
post-patch:
@${REINPLACE_CMD} -e 's|PNG_DEBUG_POSTFIX "d"|PNG_DEBUG_POSTFIX ""|g' \
${PATCH_WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>