blob: 7c5ef9852e66a50324a630ad1b63e0d8ac8f8ffd (
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
55
|
# $NetBSD: Makefile,v 1.10 2006/04/13 01:30:43 rillig Exp $
DISTNAME= jpgraph-1.18
PKGNAME= php-${DISTNAME}
PKGREVISION= 2
CATEGORIES= graphics www
MASTER_SITES= http://members.chello.se/jpgraph/jpgdownloads/
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.aditus.nu/jpgraph/index.php
COMMENT= Object Oriented class library for PHP
DEPENDS+= php-gd>=4.3.1:../../graphics/php-gd
NO_CONFIGURE= YES
NO_BUILD= YES
EXDIR= ${PREFIX}/share/examples/php-jpgraph
PJDIR= ${PREFIX}/share/php-jpgraph
PJCONFFILE= ${PKG_SYSCONFDIR}/jpg-config.inc
CONF_FILES= ${EXDIR}/jpg-config.inc ${PKG_SYSCONFDIR}/jpg-config.inc
PKG_SYSCONFSUBDIR?= php-jpgraph
MESSAGE_SUBST+= PJCONFFILE=${PJCONFFILE} PJDIR=${PJDIR} EXDIR=${EXDIR}
do-install:
${INSTALL_DATA_DIR} ${EXDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/php-jpgraph
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/php-jpgraph/html
${INSTALL_DATA_DIR} ${PJDIR}
${INSTALL_SCRIPT} ${WRKSRC}/src/Examples/*.php ${EXDIR}
${INSTALL_DATA} ${WRKSRC}/src/Examples/*.png ${EXDIR}
${INSTALL_DATA} ${WRKSRC}/src/Examples/*.gif ${EXDIR}
${INSTALL_DATA} ${WRKSRC}/src/Examples/*.jpg ${EXDIR}
${RM} -f ${PJDIR}/jpg-config.inc
${INSTALL_SCRIPT} ${WRKSRC}/src/*.php ${PJDIR}
${INSTALL_DATA} ${WRKSRC}/src/*.inc ${PJDIR}
${INSTALL_DATA} ${WRKSRC}/src/*.dat ${PJDIR}
${MV} -f ${PJDIR}/jpg-config.inc ${EXDIR}
${LN} -sf ${PJCONFFILE} ${PJDIR}/jpg-config.inc
for f in README QPL.txt; do \
${INSTALL_DATA} ${WRKSRC}/$$f \
${PREFIX}/share/doc/php-jpgraph; \
done
cd ${WRKSRC}/docs && ${PAX} -rw . ${PREFIX}/share/doc/php-jpgraph/html
${FIND} ${PREFIX}/share/doc/php-jpgraph/html -type d | ${XARGS} \
${CHMOD} ${PKGDIRMODE}
.include "../../mk/bsd.pkg.mk"
|