2013-09-20 20:35:44 +02:00
|
|
|
# Created by: Anders Nordby <anders@fix.no>
|
2001-06-16 17:03:06 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gdchart
|
2006-04-29 23:23:20 +02:00
|
|
|
PORTVERSION= 0.11.5
|
2016-07-20 11:33:31 +02:00
|
|
|
PORTREVISION= 9
|
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
|
2012-07-28 17:57:55 +02:00
|
|
|
COMMENT= Easy to use fast C API for creating charts and graphs
|
2001-06-16 17:03:06 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libgd.so:graphics/gd \
|
|
|
|
libfreetype.so:print/freetype2
|
2001-06-16 17:03:06 +02:00
|
|
|
|
2015-06-22 20:33:20 +02:00
|
|
|
USES= jpeg uidfix
|
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
|
|
|
|
2016-10-09 11:01:52 +02:00
|
|
|
PORTDOCS= README.txt
|
|
|
|
PORTEXAMPLES= ft_samp.c gdc_pie_samp.c gdc_samp1.c gdc_samp2.c
|
2014-07-05 20:55:33 +02:00
|
|
|
|
|
|
|
.if defined(NO_PROFILE)
|
|
|
|
PLIST_SUB+= PROFILE="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PROFILE=""
|
|
|
|
.endif
|
2002-09-19 03:47:10 +02:00
|
|
|
|
2016-10-09 11:01:52 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2002-09-15 14:10:35 +02:00
|
|
|
post-patch:
|
2016-10-09 11:01:52 +02:00
|
|
|
@${REINPLACE_CMD} \
|
2002-09-15 14:10:35 +02:00
|
|
|
-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"
|
2016-10-09 11:01:52 +02:00
|
|
|
@${REINPLACE_CMD} \
|
2002-09-15 14:10:35 +02:00
|
|
|
-e 's/^#include "gdc\.h"/#include "gdcpie.h"/' \
|
|
|
|
${WRKSRC}/ft_samp.c \
|
|
|
|
${WRKSRC}/gdc_samp?.c
|
|
|
|
# gdc_pie_samp.c misses #include "gdchart.h"
|
2016-10-09 11:01:52 +02:00
|
|
|
@${REINPLACE_CMD} \
|
2002-09-15 14:10:35 +02:00
|
|
|
-e 's/^#include "gdc\.h"/#include "gdchart.h"/' \
|
|
|
|
${WRKSRC}/gdc_pie_samp.c
|
2001-06-16 17:03:06 +02:00
|
|
|
|
2016-10-09 11:01:52 +02:00
|
|
|
post-install-DOCS-on:
|
2014-04-27 14:23:38 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
|
2016-10-09 11:01:52 +02:00
|
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
2014-04-27 14:23:38 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2016-10-09 11:01:52 +02:00
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
|
2001-06-16 17:03:06 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|