freebsd-ports/graphics/png/Makefile
2021-04-06 16:31:07 +02:00

49 lines
1.3 KiB
Makefile

# Created by: ache
PORTNAME= png
PORTVERSION= 1.6.37
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/lib${PORTNAME}/lib${PORTNAME}16/${PORTVERSION} \
ftp://ftp.simplesystems.org/pub/lib${PORTNAME}/${PORTNAME}/src/lib${PORTNAME}16/
PATCH_SITES= SF/apng/lib${PORTNAME}/lib${PORTNAME}16/
DISTNAME= lib${PORTNAME}-${PORTVERSION}
MAINTAINER= portmgr@FreeBSD.org
COMMENT= Library for manipulating PNG images
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= cpe libtool tar:xz
CPE_PRODUCT= libpng
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET= install-strip
TEST_TARGET= check-TESTS
USE_LDCONFIG= yes
OPTIONS_DEFINE= APNG SIMD
OPTIONS_DEFAULT=APNG
OPTIONS_DEFAULT_aarch64= SIMD
OPTIONS_DEFAULT_amd64= SIMD
OPTIONS_DEFAULT_powerpc64le= SIMD
APNG_DESC=Enable Animated PNG support
SIMD_CONFIGURE_OFF= --enable-hardware-optimizations=no
SIMD_CONFIGURE_ON= --enable-hardware-optimizations=yes
.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
.endif
.include <bsd.port.mk>