Makefile 968 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.16 2017/05/27 19:57:07 ajacoutot Exp $
  2. COMMENT = STUN server implementing RFCs 5389, 5769, and 5780
  3. NOT_FOR_ARCHS = arm hppa # atomic ops
  4. VERSION = 1.2.9
  5. DISTNAME = stunserver-${VERSION}
  6. PKGNAME = stuntman-${VERSION}
  7. CATEGORIES = telephony net
  8. EXTRACT_SUFX = .tgz
  9. REVISION = 1
  10. MAINTAINER = Roman Kravchuk <kravchuk.kp@gmail.com>
  11. HOMEPAGE = http://www.stunprotocol.org/
  12. MASTER_SITES = ${HOMEPAGE}
  13. # Apache 2.0 license
  14. PERMIT_PACKAGE_CDROM= Yes
  15. WANTLIB += c crypto m pthread ${LIBCXX}
  16. BUILD_DEPENDS = devel/boost
  17. MAKE_FLAGS = BOOST_INCLUDE='-I${LOCALBASE}/include' \
  18. FLAVOR_FLAGS='${CXXFLAGS} -Wno-unknown-pragmas -DHAVE_ARC4RANDOM' \
  19. CXX="${CXX}"
  20. USE_GMAKE = Yes
  21. WRKDIST = ${WRKDIR}/stunserver
  22. do-install:
  23. cd ${WRKSRC}; ${INSTALL_PROGRAM} stunserver stunclient ${PREFIX}/sbin
  24. cd ${WRKSRC}/resources/; ${INSTALL_MAN} stunclient.1 stunserver.1 \
  25. ${PREFIX}/man/man1
  26. do-test:
  27. ${WRKSRC}/stuntestcode
  28. .include <bsd.port.mk>