Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # $OpenBSD: Makefile,v 1.30 2017/04/11 03:00:12 gonzalo Exp $
  2. COMMENT = high-performance HTTP accelerator
  3. DISTNAME = varnish-5.1.2
  4. CATEGORIES = www
  5. SHARED_LIBS = varnishapi 1.0
  6. HOMEPAGE = http://www.varnish-cache.org/
  7. MAINTAINER = Jim Razmus II <jim@openbsd.org> \
  8. Gonzalo L. Rodriguez <gonzalo@openbsd.org>
  9. # BSD
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += c execinfo m ncursesw pcre pthread readline termcap
  12. MASTER_SITES = http://repo.varnish-cache.org/source/
  13. BUILD_DEPENDS = textproc/py-docutils
  14. LIB_DEPENDS = devel/pcre
  15. # The internal backtrace implementation fails to build with -Werror on arm/hppa
  16. LIB_DEPENDS += devel/libexecinfo
  17. CONFIGURE_STYLE = gnu
  18. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
  19. LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
  20. TEST_TARGET = check
  21. post-install:
  22. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/varnish
  23. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/varnish
  24. cp ${WRKDIST}${SYSCONFDIR}/{example,builtin}.vcl \
  25. ${PREFIX}/share/examples/varnish
  26. rm -f ${PREFIX}/lib/varnish/{vmods,}/*.{a,la}
  27. .include <bsd.port.mk>