diff options
author | darcy <darcy> | 2001-10-18 11:13:56 +0000 |
---|---|---|
committer | darcy <darcy> | 2001-10-18 11:13:56 +0000 |
commit | 723cf577b1d467b9abd51318191c5d6587dc7944 (patch) | |
tree | dc59df5e8ce6a51109634726f7656d4890f33222 /graphics/gdchart/Makefile | |
parent | cd3fdda1f3e8f626016a4bfd62363a74bc74d6c9 (diff) | |
download | pkgsrc-723cf577b1d467b9abd51318191c5d6587dc7944.tar.gz |
Adding new package gdchart.
GDChart is an easy to use, high performance library/C API for creating charts
and graphs in GIF, PNG, JPEG and WBMP format.
WWW: http://www.fred.net/brv/chart/
- Anders Nordby <anders@fix.no>
Diffstat (limited to 'graphics/gdchart/Makefile')
-rw-r--r-- | graphics/gdchart/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/graphics/gdchart/Makefile b/graphics/gdchart/Makefile new file mode 100644 index 00000000000..3cd051c27ce --- /dev/null +++ b/graphics/gdchart/Makefile @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1 2001/10/18 11:13:56 darcy Exp $ +# FreeBSD Id: ports/graphics/gdchart/Makefile,v 1.5 2001/10/07 02:03:41 petef Exp + +DISTNAME= gdchart0.10.1dev +PKGNAME= gdchart-0.10.1 +CATEGORIES= graphics +MASTER_SITES= http://www.fred.net/brv/chart/ \ + ftp://ftp.nuug.no/pub/anders/distfiles/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.fred.net/brv/chart/ +COMMENT= Easy to use, fast C API for creating charts and graphs + +DEPENDS= gd-1.8*:../../graphics/gd + +MAKEFILE= makefile +WRKSRC= ${WRKDIR}/${DISTNAME} + +post-patch: + ${PERL5} -i -pe 's/^#ifdef HAVE_JPEG/#ifndef NO_JPEG/' ${WRKSRC}/*.[ch] + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libgdchart.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/gdchart.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/gdc.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/gdcpie.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/gifencode.h ${PREFIX}/include + +post-install: + @${INSTALL} -d -m 0755 ${PREFIX}/share/doc/gdchart + ${INSTALL_DATA} ${WRKSRC}/gdc_samp1.c ${PREFIX}/share/doc/gdchart + ${INSTALL_DATA} ${WRKSRC}/gdc_samp2.c ${PREFIX}/share/doc/gdchart + ${INSTALL_DATA} ${WRKSRC}/gdc_pie_samp.c ${PREFIX}/share/doc/gdchart + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gdchart + @${ECHO} "================================================================================" + @${ECHO} "Have a look at the sample code and README in ${PREFIX}/share/doc/${PORTNAME}." + @${ECHO} "To compile gdc_samp1, try something like:" + @${ECHO} + @${ECHO} "gcc -I${PREFIX}/include -o gdc_samp1 gdc_samp1.c -L${PREFIX}/lib -lgdchart -lgd" + @${ECHO} "================================================================================" + +.include "../../mk/bsd.pkg.mk" |