Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $OpenBSD: Makefile,v 1.14 2015/07/18 21:11:18 jasper Exp $
  2. COMMENT = PostgreSQL log analyzer
  3. DISTNAME = pgfouine-1.2
  4. CATEGORIES = databases
  5. REVISION = 6
  6. HOMEPAGE = http://pgfouine.projects.postgresql.org/
  7. MAINTAINER = Pierre-Emmanuel Andre <pea@openbsd.org>
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM = Yes
  10. MASTER_SITES = http://pgfoundry.org/frs/download.php/2575/ \
  11. http://pgfouine.projects.postgresql.org/releases/
  12. NO_BUILD = Yes
  13. NO_TEST = Yes
  14. PKG_ARCH = *
  15. MODULES = lang/php
  16. RUN_DEPENDS = lang/php/${MODPHP_VERSION},-gd
  17. pre-configure:
  18. @sed -i -e 's,/usr/bin/php,${MODPHP_BIN},g;' \
  19. -e 's,!!PREFIX!!,${PREFIX},g' \
  20. ${WRKSRC}/pgfouine.php ${WRKSRC}/pgfouine_vacuum.php
  21. @find ${WRKSRC} -type d -name CVS | xargs rm -fr
  22. do-install:
  23. ${INSTALL_SCRIPT} ${WRKSRC}/pgfouine.php ${PREFIX}/bin/pgfouine
  24. ${INSTALL_SCRIPT} ${WRKSRC}/pgfouine_vacuum.php ${PREFIX}/bin/pgfouine_vacuum
  25. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pgfouine
  26. ${INSTALL_DATA_DIR} ${PREFIX}/share/pgfouine/include
  27. ${INSTALL_DATA} ${WRKSRC}/version.php ${PREFIX}/share/pgfouine/
  28. @cd ${WRKSRC}/include && \
  29. find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/pgfouine/include/{} \;
  30. @cd ${WRKSRC}/include && \
  31. find . ! -type d -exec ${INSTALL_DATA} {} ${PREFIX}/share/pgfouine/include/{} \;
  32. ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/pgfouine/
  33. ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/pgfouine/
  34. ${INSTALL_DATA} ${WRKSRC}/THANKS ${PREFIX}/share/doc/pgfouine/
  35. ${INSTALL_DATA} ${WRKSRC}/rpm-specific/sources/pgfouine-tutorial.txt \
  36. ${PREFIX}/share/doc/pgfouine/pgfouine-tutorial.txt
  37. .include <bsd.port.mk>