Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # $OpenBSD: Makefile,v 1.6 2017/02/26 20:07:40 sthen Exp $
  2. COMMENT = proxy for Asterisk Manager Interface
  3. DISTNAME = astmanproxy-1.22pre081119
  4. REVISION = 0
  5. CATEGORIES = telephony
  6. HOMEPAGE = http://www.voip-info.org/tiki-index.php?page=AstManProxy
  7. MAINTAINER = Stuart Henderson <sthen@openbsd.org>
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB = c crypto pthread ssl
  11. # mirrored from git repository
  12. MASTER_SITES = https://spacehopper.org/mirrors/
  13. MAKE_ENV = CFLAGS="${CFLAGS}"
  14. MAKE_FLAGS = CC="${CC}" SYSCONFDIR=${SYSCONFDIR} \
  15. LIBDIR=${WRKINST}/${PREFIX}/lib/astmanproxy \
  16. MODDIR=${PREFIX}/lib/astmanproxy/modules \
  17. MODDIR_REAL=${WRKINST}/${PREFIX}/lib/astmanproxy/modules \
  18. CONFDIR=${SYSCONFDIR}/astmanproxy \
  19. CONFDIR_REAL=${WRKINST}/${PREFIX}/share/examples/astmanproxy \
  20. PERMDIR=${SYSCONFDIR}/astmanproxy \
  21. PERMDIR_REAL=${WRKINST}/${PREFIX}/share/examples/astmanproxy
  22. FAKE_FLAGS = PREFIX=${PREFIX}
  23. USE_GMAKE = Yes
  24. NO_TEST = Yes
  25. ALL_TARGET = astmanproxy
  26. pre-configure:
  27. ${SUBST_CMD} ${WRKSRC}/configs/astmanproxy.conf
  28. post-install:
  29. ${INSTALL_DATA} ${WRKSRC}/configs/ssl.conf \
  30. ${PREFIX}/share/examples/astmanproxy/proxy-ssl.conf
  31. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/astmanproxy/
  32. ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/* \
  33. ${PREFIX}/share/doc/astmanproxy
  34. .include <bsd.port.mk>