Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # $OpenBSD: Makefile,v 1.30 2017/01/23 18:00:23 tj Exp $
  2. COMMENT-main= secure communications between a DNS client and resolver
  3. COMMENT-plugins= example plugins for dnscrypt-proxy
  4. V= 1.9.3
  5. REVISION-main= 0
  6. DISTNAME= dnscrypt-proxy-${V}
  7. PKGNAME-main= dnscrypt-proxy-${V}
  8. PKGNAME-plugins= dnscrypt-proxy-plugins-${V}
  9. CATEGORIES= net
  10. MASTER_SITES= https://download.dnscrypt.org/dnscrypt-proxy/ \
  11. https://download.dnscrypt.org/dnscrypt-proxy/old/
  12. HOMEPAGE= https://dnscrypt.org/
  13. MAINTAINER= Frank Denis <dnscrypt@pureftpd.org>
  14. # BSD
  15. PERMIT_PACKAGE_CDROM= Yes
  16. MULTI_PACKAGES= -main -plugins
  17. commonWANTLIB= execinfo kvm m sodium pthread
  18. WANTLIB-main= ${commonWANTLIB} c ltdl
  19. WANTLIB-plugins= ${commonWANTLIB} crypto ldns
  20. commonLIB_DEPENDS= devel/libexecinfo \
  21. security/libsodium
  22. LIB_DEPENDS-main= ${commonLIB_DEPENDS} \
  23. devel/libtool,-ltdl
  24. LIB_DEPENDS-plugins= ${commonLIB_DEPENDS} \
  25. net/ldns/libldns
  26. CONFIGURE_STYLE= gnu
  27. CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
  28. LDFLAGS=-L${LOCALBASE}/lib \
  29. ac_cv_header_uuid_uuid_h=no
  30. CONFIGURE_ARGS+= --enable-plugins \
  31. --enable-plugins-root \
  32. --enable-pie=no
  33. # Don't force PIE, it's broken on at least arm. OpenBSD enables it
  34. # by default on arch where it works anyway.
  35. # for tests
  36. USE_GMAKE= yes
  37. DOCS= README-PLUGINS.markdown \
  38. README.markdown \
  39. DNSCRYPT-V2-PROTOCOL.txt
  40. # there is also a config file in newer versions; it can be specified on
  41. # the command-line, but it's incompatible with specifying other options there,
  42. # so we can't force daemonizing, causing issues for the rc script.
  43. post-install:
  44. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dnscrypt-proxy
  45. cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/dnscrypt-proxy
  46. rm -f ${PREFIX}/lib/dnscrypt-proxy/*.la
  47. .include <bsd.port.mk>