blob: 63af3dc525be41a2bfe69cb832dd5606de4a5ac7 (
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
60
61
62
63
64
65
|
# New ports collection makefile for: PNG images library
# Date created: 5 Dec 1995
# Whom: ache
#
# $FreeBSD$
#
PORTNAME= png
PORTVERSION= 1.4.8
CATEGORIES= graphics
MASTER_SITES= SF/lib${PORTNAME}/lib${PORTNAME}14/${PORTVERSION}
DISTNAME= lib${PORTNAME}-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Library for manipulating PNG images
MAKE_JOBS_SAFE= yes
USE_XZ= yes
USE_LDCONFIG= yes
MAKEFILE= ${WRKSRC}/scripts/makefile.freebsd
ALL_TARGET= all libpng-config test
MAKE_FLAGS= ccopts="${CFLAGS}" ldopts="${LDFLAGS}" -f
SHLIB_VER= 6
MAKE_ENV= SHLIB_VER="${SHLIB_VER}"
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
MAN3= libpng.3 libpngpf.3
MAN5= png.5
MANCOMPRESSED= maybe
OPTIONS= APNG "Animated PNG support" On
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_APNG) || make(makesum) || defined(FETCH_ALL)
MASTER_SITES+= SF/lib${PORTNAME}-apng/libpng-master/${PORTVERSION}:apng
DISTFILES+= ${DISTNAME}-apng.patch.gz:apng
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
.if !defined(WITHOUT_APNG)
EXTRA_PATCHES= ${WRKSRC}/${DISTNAME}-apng.patch
.endif
post-extract:
.if !defined(WITHOUT_APNG)
@${LN} -sf ${WRKSRC} ${WRKSRC}/
${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}-apng.patch.gz ${WRKSRC}/
${GZIP_CMD} -d ${WRKSRC}/${DISTNAME}-apng.patch.gz
.endif
pre-su-install:
@${MKDIR} ${PREFIX}/include/libpng
@${MKDIR} ${PREFIX}/libdata/pkgconfig
post-install:
${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/scripts/libpng.pc.in \
> ${WRKSRC}/scripts/libpng.pc
${INSTALL_DATA} ${WRKSRC}/scripts/libpng.pc \
${PREFIX}/libdata/pkgconfig/libpng14.pc
${LN} -sf libpng14.pc ${PREFIX}/libdata/pkgconfig/libpng.pc
.include <bsd.port.post.mk>
|