2a7c056120
Reviewed by: many (*) Differential Revision: https://reviews.freebsd.org/D55624 Differential Revision: https://reviews.freebsd.org/D55642 (merged in from bofh) many (*) acm arrowd brooks cmt dch decke dinoex eduardo fluffy fuz gahr garga jbeich joerg jrm kai kenrap martymac matthew mfechner michaelo mizhka nobutaka pkubaj se tagattie thj Anton Saietskii GenericRikka Gert Doering Jan Bramkamp Oleh Hushchenkov Oleksandr Kryvulia Ralf van der Enden Yamagi desktop kde python tcltk office
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
PORTNAME= gdchart
|
|
PORTVERSION= 0.11.5
|
|
PORTREVISION= 11
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.fred.net/brv/chart/ \
|
|
ftp://ftp.nuug.no/pub/anders/distfiles/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}dev
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Easy to use fast C API for creating charts and graphs
|
|
WWW= http://www.fred.net/brv/chart/
|
|
|
|
LIB_DEPENDS= libgd.so:graphics/gd \
|
|
libfreetype.so:print/freetype2
|
|
|
|
USES= jpeg uidfix
|
|
USE_LDCONFIG= yes
|
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
|
MAKE_ARGS= PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
|
|
|
|
PORTDOCS= README.txt
|
|
PORTEXAMPLES= ft_samp.c gdc_pie_samp.c gdc_samp1.c gdc_samp2.c
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(NO_PROFILE) || ${OPSYS} == FreeBSD
|
|
PLIST_SUB+= PROFILE="@comment "
|
|
.else
|
|
PLIST_SUB+= PROFILE=""
|
|
.endif
|
|
|
|
.if ${OPSYS} == FreeBSD
|
|
CFLAGS+= -Wno-error=incompatible-function-pointer-types
|
|
.endif
|
|
|
|
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
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|