openbsd-ports/graphics/png/Makefile

40 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.25 2000/09/16 11:45:25 brad Exp $
1997-12-02 22:39:50 -05:00
2000-07-25 04:56:14 -04:00
DISTNAME= libpng-1.0.8
PKGNAME= png-1.0.8
CATEGORIES= graphics
2000-07-25 04:56:14 -04:00
NEED_VERSION= 1.310
2000-07-03 05:41:31 -04:00
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= libpng
1997-12-02 22:39:50 -05:00
2000-06-10 02:34:37 -04:00
HOMEPAGE= http://www.libpng.org/pub/png/
MAINTAINER= brad@openbsd.org
1997-12-02 22:39:50 -05:00
2000-03-05 23:06:32 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 01:29:49 -05:00
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="-L. -lpng -lz -lm"
FAKE_FLAGS+= ${MAKE_FLAGS}
MAKE_FILE= scripts/makefile.std
1998-02-12 09:38:32 -05:00
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
1998-02-12 09:38:32 -05:00
test: build
2000-06-28 13:22:52 -04:00
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} test
.include <bsd.port.mk>
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
MAKE_ENV= NO_SHARED_LIBS=Yes
.endif