freebsd-ports/graphics/jpgraph2/Makefile
Pawel Pekala b9455dd280 - Update to version 4.0.1
- Clarify license, update WWW homepage
- MASTER_SITE change:

MASTER_SITE has been changed to fossies.org because I have contacted
with jpgraph.net and ask if they can provide to me direct download link
instead of some php script url, but they wont.

- Convert to USES=php
- Use COPYTREE_SHARE in place of CP to make sure proper permissions
  on files are set and simplify things a bit
- Split install target to option helpers ones

PR:		211772 (based on)
Submitted by:	Eero Hanninen
2016-08-15 18:07:23 +00:00

53 lines
1.4 KiB
Makefile

# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$
PORTNAME= jpgraph
PORTVERSION= 4.0.1
CATEGORIES= graphics
MASTER_SITES= http://fossies.org/linux/www/
MAINTAINER= ports@FreeBSD.org
COMMENT= Draw both "quick and dirty" graphs with a minimum of code
LICENSE= QPL
LICENSE_NAME= Q PUBLIC LICENSE version 1.0
LICENSE_TEXT= Please refer to: http://www.opensource.org/licenses/qtpl.php for details
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu
BROKEN_powerpc64= Does not build
USES= php tar:bzip2
USE_PHP= gd
NO_ARCH= yes
NO_BUILD= yes
NO_CDROM= The free version cannot be used in a commercial context
PORTDATA= *
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} '/TrueType/ s|// ||; \
s|/usr/share/fonts/TrueType|${LOCALBASE}/share/fonts/dejavu|' \
${WRKSRC}/src/jpg-config.inc.php
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/src && ${COPYTREE_SHARE} "*.php *.dat lang themes" \
${STAGEDIR}${DATADIR})
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${RM} ${WRKSRC}/src/Examples/jpgraph
(cd ${WRKSRC}/src/Examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>