aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/phplot/Makefile
blob: 1fb0eb0b08fd7a97fad217541e5d95bfdf3c8600 (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
39
40
41
42
# Created by: yukinopo@livedoor.com
# $FreeBSD$

PORTNAME=   phplot
PORTVERSION=    6.2.0
CATEGORIES= graphics www
MASTER_SITES=   SF \
        SF/${PORTNAME}/Manual/20130511:source2
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} \
        ${PORTNAME}docs-20130511.zip:source2

MAINTAINER= ports@FreeBSD.org
COMMENT=    PHP class for creating scientific and business charts

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libgd.so:${PORTSDIR}/graphics/gd

NO_ARCH=    yes
NO_BUILD=   yes
USES=       zip
USE_PHP=    yes

PHPLOT_DIR= ${STAGEDIR}${PREFIX}/include/php/phplot

LIBRARIES=  phplot.php rgb.inc.php

OPTIONS_DEFINE=     DOCS FONTS
OPTIONS_DEFAULT=    FONTS
FONTS_DESC=     install TrueType fonts
FONTS_LIB_DEPENDS=  libfreetype.so:${PORTSDIR}/print/freetype2

do-install:
    @${MKDIR} ${PHPLOT_DIR}
    ${INSTALL_DATA} ${LIBRARIES:S,^,${WRKSRC}/,} ${PHPLOT_DIR}

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

.include <bsd.port.mk>