aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/phplot/Makefile
blob: 3bf5000ad4b7ee0b620a715edf2eac869d6865c7 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# New ports collection makefile for:    phplot
# Date created:         21 Oct 2001
# Whom:                 yukinopo@livedoor.com
#
# $FreeBSD$

PORTNAME=   phplot
PORTVERSION=    4.4.6
PORTREVISION=   2
CATEGORIES= graphics www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= phplot
DISTNAME=   ${PORTNAME}-${PORTVERSION}

MAINTAINER= yukinopo@livedoor.com
COMMENT=    A PHP class for creating scientific and business charts

.if defined(WITH_APACHE2)
RUN_DEPENDS=   ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4
.else
RUN_DEPENDS=    ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
.endif
LIB_DEPENDS=    gd.4:${PORTSDIR}/graphics/gd

NO_BUILD=   YES

WRKSRC=     ${WRKDIR}/${DISTNAME}
PHPLOT_DIR= lib/php/phplot

PHPLOT_EXAMPLE= share/phplot

LIBS=       phplot.php phplot_data.php rgb.inc.php benjamingothic.ttf

DOCS=       internal_functions.html function_reference.html \
        index.html examples.html quick_start.php \
        user_functions.html user_internal_functions.html

EXAMPLES=   0cars.jpg benjamingothic.ttf create_chart.php \
        data.php data_date.php data_date2.php data_sample1.php data_sample2.php \
        data_sample3.php data_sample4.php example1.php example10.php \
        example11.php example12.php example13.php example2.php \
        example3.php example4.php example5.php example6.php \
        example7.php example8.php example9.php format_chart.php \
        inline_image.php rgb.inc.php test1.php test_setup.php

do-install:
    @${MKDIR} ${PREFIX}/${PHPLOT_DIR} 2>/dev/null||true
.for FILE in ${SAMPLES}
    @${INSTALL_DATA} ${WRKSRC}/${FILE} \
        @${PREFIX}/${PHPLOT_DIR}/${FILE}
.endfor

.for FILE in ${LIBS}
    @${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${PHPLOT_DIR}
.endfor
    @${MKDIR} ${PREFIX}/${PHPLOT_EXAMPLE}
    @${MKDIR} ${PREFIX}/${PHPLOT_EXAMPLE}/doc
    @${MKDIR} ${PREFIX}/${PHPLOT_EXAMPLE}/examples
.for FILE in ${DOCS}
    @${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${PREFIX}/${PHPLOT_EXAMPLE}/doc
.endfor

.for FILE in ${EXAMPLES}
    @${INSTALL_DATA} ${WRKSRC}/examples/${FILE} ${PREFIX}/${PHPLOT_EXAMPLE}/examples
.endfor

.include <bsd.port.mk>