36 lines
969 B
Makefile
36 lines
969 B
Makefile
# $OpenBSD: Makefile,v 1.24 2000/07/25 08:56:14 brad Exp $
|
|
|
|
DISTNAME= libpng-1.0.8
|
|
PKGNAME= png-1.0.8
|
|
CATEGORIES= graphics
|
|
NEED_VERSION= 1.310
|
|
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= libpng
|
|
|
|
HOMEPAGE= http://www.libpng.org/pub/png/
|
|
|
|
MAINTAINER= brad@openbsd.org
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="libpng.la -lz -lm"
|
|
|
|
MAKE_FILE= scripts/makefile.std
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/png
|
|
cd ${WRKSRC}; ${INSTALL_MAN} libpng.3 libpngpf.3 ${PREFIX}/man/man3
|
|
${INSTALL_MAN} ${WRKSRC}/png.5 ${PREFIX}/man/man5
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/png
|
|
${INSTALL_DATA} ${WRKSRC}/libpng.txt ${PREFIX}/share/doc/png
|
|
|
|
test: build
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} test
|
|
|
|
.include <bsd.port.mk>
|