summaryrefslogtreecommitdiff
path: root/graphics/png/Makefile
blob: 255edc69a49350b448e360a9544a6953dfee5b98 (plain)
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
# $NetBSD: Makefile,v 1.43 2002/08/25 18:39:20 jlam Exp $

# On update, don't forget to increase shared library major/minor's in
# accordance with changes (patch-aa).
DISTNAME=	libpng-1.2.4
PKGNAME=	${DISTNAME:S/lib//}
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=libpng/} \
		http://www.libpng.org/pub/png/src/ \
		ftp://swrinde.nde.swri.edu/pub/png/src/ \
		ftp://ftp.simplesystems.org/pub/libpng/src/ \
		ftp://ftp.fu-berlin.de/unix/graphics/png/src/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	fredb@netbsd.org
HOMEPAGE=	http://www.libpng.org/pub/png/
COMMENT=	Library for manipulating PNG images

USE_BUILDLINK2=	yes
USE_LIBTOOL=	yes

LIBPNG_SO_MAJOR=	3
LIBPNG_SO_MINOR=	1

MAKEFILE=	scripts/makefile.std
MAKE_ENV+=	REALCC="${CC}"
MAKE_ENV+=	LIBPNG_SO_MAJOR=${LIBPNG_SO_MAJOR}
MAKE_ENV+=	LIBPNG_SO_MINOR=${LIBPNG_SO_MINOR}
PLIST_SUBST+=	LIBPNG_SO_MAJOR=${LIBPNG_SO_MAJOR}
PLIST_SUBST+=	LIBPNG_SO_MINOR=${LIBPNG_SO_MINOR}

post-install:
	${INSTALL_MAN} ${WRKSRC}/libpng.3 ${PREFIX}/man/man3
	${INSTALL_MAN} ${WRKSRC}/libpngpf.3 ${PREFIX}/man/man3
	${INSTALL_MAN} ${WRKSRC}/png.5 ${PREFIX}/man/man5

test: build
	@cd ${WRKSRC} && ${MAKE} -f ${MAKEFILE} test

.include "../../devel/zlib/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"