blob: a255d7f34cabbb361a3d4b0585eb4cbfdb761cf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# New ports collection makefile for: gdchart
# Date created: 4 June 2001
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= gdchart
PORTVERSION= 0.11.2
CATEGORIES= graphics
MASTER_SITES= http://www.fred.net/brv/chart/ \
ftp://ftp.nuug.no/pub/anders/distfiles/
DISTNAME= ${PORTNAME}${PORTVERSION}dev
MAINTAINER= knu@FreeBSD.org
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd \
jpeg:${PORTSDIR}/graphics/jpeg \
freetype:${PORTSDIR}/print/freetype2
USE_REINPLACE= yes
MAKEFILE= ${FILESDIR}/Makefile
MAKE_ARGS= PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
DOCS= README
EXAMPLES= ft_samp.c gdc_pie_samp.c gdc_samp1.c gdc_samp2.c
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>
|