pkgsrc/graphics/gdchart/Makefile
jlam 7897826581 Now that we build a gdchart shared library, we should ensure that the
correct libraries (-lgd) are added to the link command to produce the
correct inter-library dependencies.  Bump the PKGREVISION of graphics/gd
to 3.
2003-01-24 12:41:17 +00:00

44 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2003/01/24 12:41:17 jlam Exp $
#
DISTNAME= gdchart0.10.1dev
PKGNAME= gdchart-0.10.1
PKGREVISION= 3
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
MAKEFILE= makefile
USE_BUILDLINK2= YES
USE_LIBTOOL= YES
post-patch:
for fn in ${WRKSRC}/*.[ch]; do \
${SED} 's/^#ifdef HAVE_JPEG/#ifndef NO_JPEG/' $${fn} \
> $${fn}.new; \
${MV} $${fn}.new $${fn}; \
done
do-install:
${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/libgdchart.la \
${PREFIX}/lib
${LIBTOOL} -n --finish ${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
${INSTALL_DATA_DIR} -d -m 0755 ${PREFIX}/share/doc/gdchart
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gdchart
${INSTALL_DATA_DIR} -d -m 0755 ${PREFIX}/share/examples/gdchart
${INSTALL_DATA} ${WRKSRC}/gdc_samp1.c ${PREFIX}/share/examples/gdchart
${INSTALL_DATA} ${WRKSRC}/gdc_samp2.c ${PREFIX}/share/examples/gdchart
${INSTALL_DATA} ${WRKSRC}/gdc_pie_samp.c \
${PREFIX}/share/examples/gdchart
.include "../../graphics/gd/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"