mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
# New ports collection makefile for: gdchart
|
|
# Date created: 4 June 2001
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gdchart
|
|
PORTVERSION= 0.11.5
|
|
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
|
|
COMMENT= Easy to use, fast C API for creating charts and graphs
|
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
|
freetype:${PORTSDIR}/print/freetype2
|
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
|
MAKE_ARGS= PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
|
|
USE_LDCONFIG= yes
|
|
|
|
DOCS= README.txt
|
|
EXAMPLES= ft_samp.c gdc_pie_samp.c gdc_samp1.c gdc_samp2.c
|
|
|
|
.if defined(NOPROFILE)
|
|
PLIST_SUB+= PROFILE="@comment "
|
|
.else
|
|
PLIST_SUB+= PROFILE=
|
|
.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
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
.for f in ${DOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
.endfor
|
|
.for f in ${EXAMPLES}
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}/
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|