2001-06-16 17:03:06 +02:00
|
|
|
# New ports collection makefile for: gdchart
|
|
|
|
# Date created: 4 June 2001
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gdchart
|
2006-04-29 23:23:20 +02:00
|
|
|
PORTVERSION= 0.11.5
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2001-06-16 17:03:06 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://www.fred.net/brv/chart/ \
|
|
|
|
ftp://ftp.nuug.no/pub/anders/distfiles/
|
2001-06-18 09:03:00 +02:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}dev
|
2001-06-16 17:03:06 +02:00
|
|
|
|
2005-11-11 02:18:01 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-18 06:52:56 +01:00
|
|
|
COMMENT= Easy to use, fast C API for creating charts and graphs
|
2001-06-16 17:03:06 +02:00
|
|
|
|
2003-08-18 18:15:10 +02:00
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
|
2002-09-15 14:10:35 +02:00
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
|
|
|
freetype:${PORTSDIR}/print/freetype2
|
2001-06-16 17:03:06 +02:00
|
|
|
|
2002-09-15 14:10:35 +02:00
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
|
|
|
MAKE_ARGS= PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-06-16 17:03:06 +02:00
|
|
|
|
2006-04-29 23:23:20 +02:00
|
|
|
DOCS= README.txt
|
2002-09-15 14:10:35 +02:00
|
|
|
EXAMPLES= ft_samp.c gdc_pie_samp.c gdc_samp1.c gdc_samp2.c
|
2001-07-17 09:25:51 +02:00
|
|
|
|
2002-09-19 03:47:10 +02:00
|
|
|
.if defined(NOPROFILE)
|
|
|
|
PLIST_SUB+= PROFILE="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PROFILE=
|
|
|
|
.endif
|
|
|
|
|
2002-09-15 14:10:35 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's/^#ifdef HAVE_JPEG/#ifndef NO_JPEG/' \
|
|
|
|
-e 's/^#ifdef HAVE_LIBFREETYPE/#ifndef NO_LIBFREETYPE/' \
|
|
|
|
${WRKSRC}/*.[ch]
|
|
|
|
# ft_samp.c and gdc_samp?.c miss #include "gdcpie.h"
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's/^#include "gdc\.h"/#include "gdcpie.h"/' \
|
|
|
|
${WRKSRC}/ft_samp.c \
|
|
|
|
${WRKSRC}/gdc_samp?.c
|
|
|
|
# gdc_pie_samp.c misses #include "gdchart.h"
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's/^#include "gdc\.h"/#include "gdchart.h"/' \
|
|
|
|
${WRKSRC}/gdc_pie_samp.c
|
2001-06-16 17:03:06 +02:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
2002-09-15 14:10:35 +02:00
|
|
|
.for f in ${DOCS}
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.for f in ${EXAMPLES}
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}/
|
|
|
|
.endfor
|
2001-06-16 17:03:06 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|