Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $OpenBSD: Makefile,v 1.17 2015/06/05 06:00:22 robert Exp $
  2. COMMENT= graphical network traffic map
  3. DISTNAME= php-weathermap-0.97c
  4. EXTRACT_SUFX= .zip
  5. REVISION= 2
  6. CATEGORIES= net www
  7. HOMEPAGE= http://www.network-weathermap.com/
  8. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  9. # GPLv2
  10. PERMIT_PACKAGE_CDROM= Yes
  11. MASTER_SITES= ${HOMEPAGE}files/
  12. MODULES= lang/php
  13. RUN_DEPENDS= www/pear \
  14. lang/php/${MODPHP_VERSION},-gd
  15. NO_TEST= Yes
  16. PKG_ARCH= *
  17. WRKDIST= ${WRKDIR}/weathermap
  18. PREFIX= ${VARBASE}/www
  19. INSTDIR= ${PREFIX}/weathermap
  20. SUBST_VARS= INSTDIR
  21. do-configure:
  22. perl -pi -e 's,^#!/usr/bin/php,#!${MODPHP_BIN},;' \
  23. -e 's,/usr/bin/rrdtool,${LOCALBASE}/bin/rrdtool,;' \
  24. ${WRKSRC}/weathermap
  25. do-build:
  26. .for i in weathermap.conf configs/simple.conf
  27. mv ${WRKSRC}/$i ${WRKSRC}/$i-dist
  28. .endfor
  29. do-install:
  30. ${INSTALL_DATA_DIR} ${INSTDIR}
  31. cd ${WRKSRC}; pax -rw * ${INSTDIR}
  32. ${INSTALL_DATA} ${FILESDIR}/editor-config.php-dist ${INSTDIR}
  33. chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
  34. chmod -R u=rwX,og=rX ${INSTDIR}
  35. find ${INSTDIR} -name '*.orig' -print0 | xargs -0r rm
  36. .include <bsd.port.mk>