openbsd-ports/graphics/png/Makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

2001-06-10 13:36:00 -04:00
# $OpenBSD: Makefile,v 1.33 2001/06/10 17:36:00 brad Exp $
2001-03-25 12:32:23 -05:00
COMMENT= "library for manipulating PNG images"
1997-12-02 22:39:50 -05:00
2001-06-10 13:36:00 -04:00
DISTNAME= libpng-1.0.12
PKGNAME= ${DISTNAME:S/lib//}
CATEGORIES= graphics
2001-06-10 13:36:00 -04:00
NEED_VERSION= 1.413
2001-04-03 10:08:30 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
2000-07-03 05:41:31 -04:00
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/
2000-09-24 03:03:59 -04:00
MAINTAINER= Brad Smith <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} prefix="${PREFIX}"
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"
2001-04-20 20:59:11 -04:00
MAKE_ENV+= NO_SHARED_LIBS=Yes
.endif