2013-09-21 00:24:43 +02:00
|
|
|
# Created by: Hsin-Han You <hhyou@cs.nctu.edu.tw>
|
2011-01-28 18:19:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= phpweathermap
|
|
|
|
PORTVERSION= 0.97a
|
2016-05-02 18:08:56 +02:00
|
|
|
PORTREVISION= 3
|
2011-01-28 18:19:37 +01:00
|
|
|
CATEGORIES= net-mgmt www
|
|
|
|
MASTER_SITES= http://www.network-weathermap.com/files/
|
|
|
|
DISTNAME= php-weathermap-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= hhyou@cs.nctu.edu.tw
|
2014-07-10 14:13:11 +02:00
|
|
|
COMMENT= Network visualisation tool with web editor
|
2011-01-28 18:19:37 +01:00
|
|
|
|
2014-06-27 18:59:28 +02:00
|
|
|
LICENSE= GPLv2
|
2015-09-14 19:16:57 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2014-06-27 18:59:28 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/pear/Console/Getopt.php:devel/pear \
|
|
|
|
rrdtool:databases/rrdtool
|
2011-01-28 18:19:37 +01:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2015-09-14 19:16:57 +02:00
|
|
|
NO_ARCH= yes
|
2014-03-10 17:38:00 +01:00
|
|
|
USES= zip
|
2011-01-28 18:19:37 +01:00
|
|
|
USE_PHP= gd
|
|
|
|
|
|
|
|
WM_FILES= HTML_ImageMap.class.php WeatherMap.functions.php \
|
|
|
|
WeatherMapLink.class.php WeatherMapNode.class.php \
|
|
|
|
Weathermap.class.php weathermap.conf
|
|
|
|
|
|
|
|
WM_WWW_FILES= overlib.js editor-config.php-dist editor.css \
|
|
|
|
editor.inc.php editor.js editor.php
|
|
|
|
|
|
|
|
WM_WWW_DIRS= editor-resources images docs
|
|
|
|
|
|
|
|
PORTDOCS= CHANGES COPYING README
|
|
|
|
WRKSRC= ${WRKDIR}/weathermap
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2015-09-14 19:16:57 +02:00
|
|
|
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
|
2014-07-15 18:44:50 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2011-01-28 18:19:37 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/editor.php
|
|
|
|
${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \
|
|
|
|
-e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/weathermap
|
|
|
|
|
|
|
|
do-install:
|
2014-06-27 18:59:28 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}/${DATADIR}/www/configs
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/weathermap ${STAGEDIR}/${PREFIX}/bin/phpweathermap
|
2011-01-28 18:19:37 +01:00
|
|
|
@for i in ${WM_FILES}; do \
|
2014-06-27 18:59:28 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}/${DATADIR}/$$i; \
|
2011-01-28 18:19:37 +01:00
|
|
|
done
|
|
|
|
@for i in ${WM_WWW_FILES}; do \
|
2014-06-27 18:59:28 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}/${DATADIR}/www/$$i; \
|
2011-01-28 18:19:37 +01:00
|
|
|
done
|
2014-06-27 18:59:28 +02:00
|
|
|
@${CP} -R ${WRKSRC}/lib ${STAGEDIR}/${DATADIR}
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "${WM_WWW_DIRS}" ${STAGEDIR}/${DATADIR}/www)
|
|
|
|
|
2015-09-14 19:16:57 +02:00
|
|
|
do-install-EXAMPLES-on:
|
2014-06-27 18:59:28 +02:00
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "random-bits" ${STAGEDIR}/${EXAMPLESDIR})
|
2011-01-28 18:19:37 +01:00
|
|
|
|
2015-09-14 19:16:57 +02:00
|
|
|
do-install-DOCS-on:
|
2014-06-27 18:59:28 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
|
2015-09-14 19:16:57 +02:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}/${DOCSDIR}
|
2011-01-28 18:19:37 +01:00
|
|
|
|
2014-07-15 18:44:50 +02:00
|
|
|
.include <bsd.port.mk>
|