1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

add pngwriter 0.3.7

A C++ library for creating PNG images
This commit is contained in:
Ying-Chieh Liao 2003-11-07 09:31:04 +00:00
parent 13362e5e25
commit 16e2f3a07e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93297
6 changed files with 83 additions and 0 deletions

View File

@ -291,6 +291,7 @@
SUBDIR += pngcheck
SUBDIR += pngcrush
SUBDIR += pngquant
SUBDIR += pngwriter
SUBDIR += pornview
SUBDIR += povray
SUBDIR += povray31

View File

@ -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 <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (pngwriter-0.3.7.tgz) = 72b4e2f09c3b4d81304fe1858b833c3a

View File

@ -0,0 +1,14 @@
--- make.include.linux.orig Fri Oct 17 23:39:10 2003
+++ make.include.linux Fri Nov 7 17:23:01 2003
@@ -1,7 +1,7 @@
-CXX=g++
-CXXFLAGS= -O3 -Wall -Wno-deprecated
-INC= -I../src
-LIBS= -L../src -lz -lpng -lpngwriter
+CXX?=g++
+CXXFLAGS+= -Wall -Wno-deprecated
+INC= -I../src -I%%LOCALBASE%%/include
+LIBS= -L../src -lz -lpng -lpngwriter -L%%LOCALBASE%%/lib
INSTALL=install
DESTDIR=/usr/local
SELF=make.include.linux

View File

@ -0,0 +1,9 @@
The PNGwriter library, which requires libpng, allows you to plot to a 48-bit
PNG file, saving it directly to disk. Plotting is as easy as specifying the
red, green, and blue values and the x, y coordinates of the pixel. It includes
functions for plotting simple geometric shapes (circle, rect, line), reading
the colour of a pixel, reading in a whole PNG file (great for image analysis),
plotting and reading in HSV colourspace, and many others that might come in
handy.
WWW: http://pngwriter.sourceforge.net/

View File

@ -0,0 +1,20 @@
include/pngwriter.h
lib/libpngwriter.a
%%PORTDOCS%%%%DOCSDIR%%/english/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/english/EXAMPLES
%%PORTDOCS%%%%DOCSDIR%%/english/LICENSE
%%PORTDOCS%%%%DOCSDIR%%/english/PNGwriterQuickReference_EN.pdf
%%PORTDOCS%%%%DOCSDIR%%/english/README
%%PORTDOCS%%%%DOCSDIR%%/espaniol/CAMBIOS
%%PORTDOCS%%%%DOCSDIR%%/espaniol/EJEMPLOS
%%PORTDOCS%%%%DOCSDIR%%/espaniol/LEAME
%%PORTDOCS%%%%DOCSDIR%%/espaniol/LICENCIA
%%PORTDOCS%%%%DOCSDIR%%/espaniol/PNGwriterQuickReference_ES.pdf
%%PORTDOCS%%@dirrm %%DOCSDIR%%/english
%%PORTDOCS%%@dirrm %%DOCSDIR%%/espaniol
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%%%EXAMPLESDIR%%/lyapunov.cc
%%PORTDOCS%%%%EXAMPLESDIR%%/lyapunov.espaniol.cc
%%PORTDOCS%%%%EXAMPLESDIR%%/pngtest.cc
%%PORTDOCS%%%%EXAMPLESDIR%%/pngtest.espaniol.cc
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%