sthen 9d623ec305 explicitly set MODPHP_VERSION=7.4 for PHP ports unless they're known
or strongly suspected to support at least 8.0. (7.4 is currently on security
support only, and that finishes in November, so I intend to switch the "ports
default" version to 8.0).

some of these ports _may_ work with 8.0 already, some have pull requests or
support in newer upstream code (not always in a release), others definitely
need 7.4.
2022-03-22 18:20:52 +00:00

50 lines
998 B
Makefile

COMMENT= graphical network traffic map
DISTNAME= php-weathermap-0.97c
EXTRACT_SUFX= .zip
REVISION= 7
CATEGORIES= net www
HOMEPAGE= http://www.network-weathermap.com/
# GPLv2
PERMIT_PACKAGE= Yes
MASTER_SITES= ${HOMEPAGE}files/
MODULES= lang/php
MODPHP_VERSION= 7.4
RUN_DEPENDS= www/pear \
lang/php/${MODPHP_VERSION},-gd
NO_TEST= Yes
PKG_ARCH= *
WRKDIST= ${WRKDIR}/weathermap
PREFIX= ${VARBASE}/www
INSTDIR= ${PREFIX}/weathermap
SUBST_VARS= INSTDIR
do-configure:
perl -pi -e 's,^#!/usr/bin/php,#!${MODPHP_BIN},;' \
-e 's,/usr/bin/rrdtool,${LOCALBASE}/bin/rrdtool,;' \
${WRKSRC}/weathermap
do-build:
.for i in weathermap.conf configs/simple.conf
mv ${WRKSRC}/$i ${WRKSRC}/$i-dist
.endfor
do-install:
${INSTALL_DATA_DIR} ${INSTDIR}
cd ${WRKSRC}; pax -rw * ${INSTDIR}
${INSTALL_DATA} ${FILESDIR}/editor-config.php-dist ${INSTDIR}
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
chmod -R u=rwX,og=rX ${INSTDIR}
find ${INSTDIR} -name '*.orig' -delete
.include <bsd.port.mk>