2007-02-22 20:26:05 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2007/02/22 19:26:35 wiz Exp $
|
2004-01-22 13:40:14 +01:00
|
|
|
|
2005-06-14 13:25:09 +02:00
|
|
|
DISTNAME= jpgraph-1.18
|
2006-06-02 20:27:54 +02:00
|
|
|
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
|
2004-01-22 13:40:14 +01:00
|
|
|
CATEGORIES= graphics www
|
2005-06-14 13:25:09 +02:00
|
|
|
MASTER_SITES= http://members.chello.se/jpgraph/jpgdownloads/
|
2004-01-22 13:40:14 +01:00
|
|
|
|
2005-06-14 13:25:09 +02:00
|
|
|
MAINTAINER= adrianp@NetBSD.org
|
2007-02-22 20:26:05 +01:00
|
|
|
HOMEPAGE= http://www.aditus.nu/jpgraph/index.php
|
2004-01-22 13:40:14 +01:00
|
|
|
COMMENT= Object Oriented class library for PHP
|
|
|
|
|
2006-06-04 18:26:52 +02:00
|
|
|
CONFLICTS= php-jgraph-[0-9]*
|
2006-06-02 20:27:54 +02:00
|
|
|
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.1:../../graphics/php-gd
|
2004-01-22 13:40:14 +01:00
|
|
|
|
2004-11-27 23:34:19 +01:00
|
|
|
NO_CONFIGURE= YES
|
2004-01-22 13:40:14 +01:00
|
|
|
NO_BUILD= YES
|
|
|
|
|
2004-11-27 23:34:19 +01:00
|
|
|
EXDIR= ${PREFIX}/share/examples/php-jpgraph
|
|
|
|
PJDIR= ${PREFIX}/share/php-jpgraph
|
|
|
|
PJCONFFILE= ${PKG_SYSCONFDIR}/jpg-config.inc
|
2007-02-22 20:26:05 +01:00
|
|
|
CONF_FILES= ${EXDIR}/jpg-config.inc ${PKG_SYSCONFDIR}/jpg-config.inc
|
2004-11-27 23:34:19 +01:00
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
PKG_SYSCONFSUBDIR?= php-jpgraph
|
2004-11-27 23:34:19 +01:00
|
|
|
|
|
|
|
MESSAGE_SUBST+= PJCONFFILE=${PJCONFFILE} PJDIR=${PJDIR} EXDIR=${EXDIR}
|
|
|
|
|
2004-01-22 13:40:14 +01:00
|
|
|
do-install:
|
2004-11-27 23:34:19 +01:00
|
|
|
${INSTALL_DATA_DIR} ${EXDIR}
|
2004-01-22 13:40:14 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/php-jpgraph
|
2006-04-13 03:30:43 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/php-jpgraph/html
|
2004-11-27 23:34:19 +01:00
|
|
|
${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
|
|
|
|
|
2005-06-14 13:25:09 +02:00
|
|
|
for f in README QPL.txt; do \
|
2004-11-27 23:34:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$f \
|
|
|
|
${PREFIX}/share/doc/php-jpgraph; \
|
|
|
|
done
|
2006-04-13 03:30:43 +02:00
|
|
|
cd ${WRKSRC}/docs && ${PAX} -rw . ${PREFIX}/share/doc/php-jpgraph/html
|
|
|
|
${FIND} ${PREFIX}/share/doc/php-jpgraph/html -type d | ${XARGS} \
|
2005-06-14 13:25:09 +02:00
|
|
|
${CHMOD} ${PKGDIRMODE}
|
2004-01-22 13:40:14 +01:00
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
2004-01-22 13:40:14 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|