freebsd-ports/graphics/gdchart/Makefile
Pete Fritchman afbebb0cfe Set maintainer to ports@FreeBSD.org
Submitted by:	Anders Nordby <anders@fix.no> (previous maintainer)
2001-10-07 02:03:45 +00:00

49 lines
1.6 KiB
Makefile

# New ports collection makefile for: gdchart
# Date created: 4 June 2001
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= gdchart
PORTVERSION= 0.10.1
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://www.fred.net/brv/chart/ \
ftp://ftp.nuug.no/pub/anders/distfiles/
DISTNAME= ${PORTNAME}${PORTVERSION}dev
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
MAKEFILE= makefile
WRKSRC= ${WRKDIR}/${DISTNAME}
post-patch:
${PERL} -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
.if !defined(NOPORTDOCS)
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} "================================================================================"
.endif
.include <bsd.port.mk>