blob: c8f5b54162fec0938ae6420b080fa45ff6bcb499 (
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
|
# Created by: ache
# $FreeBSD$
PORTNAME= png
PORTVERSION= 1.6.19
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
USES= cpe libtool tar:xz
CPE_PRODUCT= libpng
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE=APNG PNGTEST
OPTIONS_DEFAULT=APNG PNGTEST
APNG_DESC=Enable Animated PNG support
PNGTEST_DESC=Enable Regression Test (recommended)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAPNG} || make(makesum)
PATCHFILES= ${DISTNAME}-apng.patch.gz
.endif
.if ${PORT_OPTIONS:MPNGTEST}
post-build:
(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} test; then \
if [ x != x${BUILD_FAIL_MESSAGE} ] ; then \
${ECHO_MSG} "===> Compilation failed unexpectedly."; \
(${ECHO_CMD} ${BUILD_FAIL_MESSAGE}) | ${FMT} 75 79 ; \
fi; \
${FALSE}; \
fi)
.endif
.include <bsd.port.mk>
|