summaryrefslogtreecommitdiff
path: root/graphics/jpgraph2/Makefile
blob: ac916320f1c6b4723f554bf3d09789c449bc0154 (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
# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$

PORTNAME=	jpgraph
PORTVERSION=	4.0.1
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://fossies.org/linux/www/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Draw both "quick and dirty" graphs with a minimum of code

LICENSE=	QPL
LICENSE_NAME=	Q PUBLIC LICENSE version 1.0
LICENSE_TEXT=	Please refer to: http://www.opensource.org/licenses/qtpl.php for details
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

RUN_DEPENDS=	${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu

BROKEN_powerpc64=	Does not build

USES=		php tar:bzip2
USE_PHP=	gd
NO_ARCH=	yes
NO_BUILD=	yes

NO_CDROM=	The free version cannot be used in a commercial context

PORTDATA=	*
PORTDOCS=	*
PORTEXAMPLES=	*

OPTIONS_DEFINE=	DOCS EXAMPLES

post-patch:
	@${REINPLACE_CMD} '/TrueType/ s|// ||; \
		s|/usr/share/fonts/TrueType|${LOCALBASE}/share/fonts/dejavu|' \
		${WRKSRC}/src/jpg-config.inc.php

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC}/src && ${COPYTREE_SHARE} "*.php *.dat fonts lang themes" \
		${STAGEDIR}${DATADIR})

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${RM} ${WRKSRC}/src/Examples/jpgraph
	(cd ${WRKSRC}/src/Examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>