summaryrefslogblamecommitdiff
path: root/graphics/gdchart/Makefile
blob: c9c5712549c43f1008aa9c6b5c23383a8db82e66 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                     
                      
                 


                                                       
                                            
 
                                 


                                            
                   
                        
                                     
 
           
                                                                                   
 




                                                             
                                                               





                                                                         

                                                                            
                                                                                                   
                                                                                                


                                                                                                  



                                                                                                   
# 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

USE_REINPLACE=	yes
MAKEFILE=	makefile
WRKSRC=		${WRKDIR}/${DISTNAME}

post-patch:
	${REINPLACE_CMD} -e '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>