From 20e8c23ad667fcb458b030b19eecb8f041d4a7ef Mon Sep 17 00:00:00 2001 From: ijliao Date: Fri, 7 Nov 2003 09:31:04 +0000 Subject: add pngwriter 0.3.7 A C++ library for creating PNG images --- graphics/pngwriter/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 graphics/pngwriter/Makefile (limited to 'graphics/pngwriter/Makefile') diff --git a/graphics/pngwriter/Makefile b/graphics/pngwriter/Makefile new file mode 100644 index 00000000000..0580f9eb2c7 --- /dev/null +++ b/graphics/pngwriter/Makefile @@ -0,0 +1,38 @@ +# ex:ts=8 +# Ports collection makefile for: pngwriter +# Date created: Nov 7, 2003 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= pngwriter +PORTVERSION= 0.3.7 +CATEGORIES= graphics devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +EXTRACT_SUFX= .tgz + +MAINTAINER= ports@FreeBSD.org +COMMENT= A C++ library for creating PNG images + +LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png + +USE_REINPLACE= yes +ALL_TARGET= libpngwriter + +post-patch: + @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ + -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/make.include.linux + +do-install: + ${INSTALL_DATA} ${WRKSRC}/src/pngwriter.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/src/libpngwriter.a ${PREFIX}/lib +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${CP} -R ${WRKSRC}/doc/ ${DOCSDIR} + @${MKDIR} ${EXAMPLESDIR} + ${CP} -R ${WRKSRC}/examples/*.cc ${EXAMPLESDIR} +.endif + +.include -- cgit