Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # $OpenBSD: Makefile,v 1.31 2016/03/19 23:59:15 naddy Exp $
  2. COMMENT= fast and stable PHP opcode cacher
  3. VERSION= 3.2.0
  4. DISTNAME= xcache-${VERSION}
  5. CATEGORIES= www
  6. MASTER_SITES= http://xcache.lighttpd.net/pub/Releases/${VERSION}/
  7. REVISION= 1
  8. HOMEPAGE= http://xcache.lighttpd.net/
  9. MAINTAINER= Brad Smith <brad@comstyle.com>
  10. # BSD
  11. PERMIT_PACKAGE_CDROM= Yes
  12. MODULES= lang/php
  13. BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS} \
  14. devel/re2c>=0.13.4 \
  15. devel/gindent
  16. WEBROOT= ${VARBASE}/www
  17. SUBST_VARS= WEBROOT
  18. LIBTOOL_FLAGS= --tag=disable-static
  19. CONFIGURE_STYLE= gnu
  20. CONFIGURE_ARGS+= --enable-xcache
  21. CONFIGURE_ENV= AUTOCONF_VERSION=${AUTOCONF_VERSION}
  22. DESTDIRNAME= INSTALL_ROOT
  23. NO_TEST= Yes
  24. FLAVORS= constant coverager
  25. FLAVOR?=
  26. .if ${FLAVOR:Mconstant}
  27. CONFIGURE_ARGS+= --enable-xcache-constant
  28. .endif
  29. .if ${FLAVOR:Mcoverager}
  30. CONFIGURE_ARGS+= --enable-xcache-coverager
  31. .endif
  32. MODPHP_DO_PHPIZE= Yes
  33. MODPHP_DO_SAMPLE= xcache
  34. post-extract:
  35. @ln -sf ${LOCALBASE}/bin/gindent ${WRKDIR}/bin/indent
  36. post-install:
  37. ${INSTALL_DATA_DIR} ${WRKINST}${WEBROOT}/xcache
  38. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/php-${MODPHP_VERSION}
  39. cd ${WRKSRC}/htdocs && cp -R * ${WRKINST}${WEBROOT}/xcache
  40. chown -R ${SHAREOWN}:${SHAREGRP} ${WRKINST}${WEBROOT}/xcache/*
  41. find ${WRKINST}${WEBROOT}/xcache -type f -print0 | \
  42. xargs -0 chmod ${SHAREMODE}
  43. ${INSTALL_DATA} ${WRKSRC}/xcache.ini \
  44. ${PREFIX}/share/examples/php-${MODPHP_VERSION}
  45. .include <bsd.port.mk>