pkgsrc/graphics/php-jpgraph/Makefile
joerg 337c6b1297 Rename all PHP 4 packages to php4-*, all PHP 5 packages to php5-*,
all PEAR packages to php?-pear-* and all Apache packages to ap13-* or
ap2-* respectively. Add new variables to simplify the Makefile
handling. Add CONFLICTS on the old names. Reset revisions of bumped
packages. ap-php will now depend on the default Apache and PHP version.
All programs using it have an implicit option of the Apache version
as well.

OK from jlam@ and adrianp@.
2006-06-02 18:27:54 +00:00

57 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2006/06/02 18:27:56 joerg Exp $
DISTNAME= jpgraph-1.18
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
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
CONFLICTS= php-jgraph-[0-9]
DEPENDS+= ${PHP_PKG_PREFIX}-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 "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"