svn commit: r352479 - head/graphics/phplot
Pawel Pekala
pawel at FreeBSD.org
Mon Apr 28 10:14:20 UTC 2014
Author: pawel
Date: Mon Apr 28 10:14:19 2014
New Revision: 352479
URL: http://svnweb.freebsd.org/changeset/ports/352479
QAT: https://qat.redports.org/buildarchive/r352479/
Log:
- Add staging support
- Convert to new LIB_DEPENDS format
- Use option helper
- Define DOCS option
- Unmute install commands
Modified:
head/graphics/phplot/Makefile
Modified: head/graphics/phplot/Makefile
==============================================================================
--- head/graphics/phplot/Makefile Mon Apr 28 09:57:02 2014 (r352478)
+++ head/graphics/phplot/Makefile Mon Apr 28 10:14:19 2014 (r352479)
@@ -13,35 +13,26 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}${E
MAINTAINER= ports at FreeBSD.org
COMMENT= PHP class for creating scientific and business charts
-LIB_DEPENDS+= gd:${PORTSDIR}/graphics/gd
+LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
USES= zip
USE_PHP= yes
DEFAULT_PHP_VER= 5
NO_BUILD= YES
-PHPLOT_DIR= ${PREFIX}/include/php/phplot
+PHPLOT_DIR= ${STAGEDIR}${PREFIX}/include/php/phplot
LIBS= phplot.php rgb.inc.php
-OPTIONS_DEFINE= FONTS
+OPTIONS_DEFINE= DOCS FONTS
OPTIONS_DEFAULT= FONTS
FONTS_DESC= install TrueType fonts
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MFONTS}
-LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2
-.endif
+FONTS_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
do-install:
@${MKDIR} ${PHPLOT_DIR}
- @${INSTALL_DATA} ${LIBS:S,^,${WRKSRC}/,} ${PHPLOT_DIR}/
-
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- @cd ${WRKDIR}/phplotdocs && ${COPYTREE_SHARE} . ${DOCSDIR}/
-.endif
+ ${INSTALL_DATA} ${LIBS:S,^,${WRKSRC}/,} ${PHPLOT_DIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKDIR}/phplotdocs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list