blob: c41b4c9625fef1ac145d45d404fd424aa6330ec5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
PORTNAME= png
DISTVERSION= 1.6.40
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
PATCH_SITES= SF/lib${PORTNAME}-apng/lib${PORTNAME}16/1.6.39/
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}-1.6.39-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>
|