aboutsummaryrefslogtreecommitdiff
path: root/graphics/jpgraph/Makefile
blob: 66bcf93321e42f10121c64e9b325a151bbe0457c (plain) (blame)
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
# ex:ts=8
# Ports collection makefile for:	jpgraph
# Date created:			Oct 20, 2002
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	jpgraph
PORTVERSION=	1.8
CATEGORIES=	graphics
MASTER_SITES=	http://www.aditus.nu/jpgraph/downloads/

MAINTAINER=	ports@FreeBSD.org

PORTCOMMENT=	Draw both "quick and dirty" graphs with a minimum of code

NO_BUILD=	yes

.include <bsd.port.pre.mk>

.if !exists(${LOCALBASE}/bin/php) && !exists(${LOCALBASE}/libexec/apache/libphp4.so)
BROKEN=	"need PHP 4.04 or above"
.endif

.if !exists(${LOCALBASE}/lib/libgd.a)
BROKEN=	"PHP have to build with GD support"
.endif

do-install:
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/src/*.php ${DATADIR}
.if !defined(NOPORTDOCS)
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/src/Examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>