freebsd-ports/graphics/jpgraph/Makefile
Edwin Groothuis d7fb81a04e teach graphics/jpgraph about apache2
jpgraph requires php, and looks for it where php-cli and
	mod_php installs it. When mod_php is compiled WITH_APACHE2,
	it installs in a different place.

PR:		ports/55337
Submitted by:	Yonatan@xpert.com <Yonatan@xpert.com>
2003-08-25 01:52:14 +00:00

40 lines
945 B
Makefile

# ex:ts=8
# Ports collection makefile for: jpgraph
# Date created: Oct 20, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= jpgraph
PORTVERSION= 1.12.2
CATEGORIES= graphics
MASTER_SITES= http://www.aditus.nu/jpgraph/downloads/
MAINTAINER= ports@FreeBSD.org
COMMENT= 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) && !exists(${LOCALBASE}/libexec/apache2/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}
${CP} ${WRKSRC}/src/*.php ${DATADIR}
${CP} ${WRKSRC}/src/*.inc ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/docs/ ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/src/Examples/ ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>