Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.16 2016/08/27 07:46:50 juanfra Exp $
  2. COMMENT= SSL library with an intuitive API and readable source code
  3. DISTNAME= mbedtls-2.2.1
  4. REVISION= 0
  5. EXTRACT_SUFX= -gpl.tgz
  6. # check SOVERSION
  7. SHARED_LIBS += mbedtls 2.1
  8. SHARED_LIBS += mbedcrypto 0.0 # 2.1
  9. SHARED_LIBS += mbedx509 0.0 # 2.1
  10. CATEGORIES= security
  11. HOMEPAGE= https://tls.mbed.org/
  12. # Dual licensed: GPLv2+/Commercial
  13. # name changed from PolarSSL to mbed TLS after the ARM acquisition and a
  14. # future update will change the license to Apache.
  15. PERMIT_PACKAGE_CDROM= Yes
  16. # libssl/libcrypto are used for polarssl_o_p_test only
  17. WANTLIB += c crypto pthread ssl
  18. MASTER_SITES= https://tls.mbed.org/download/
  19. MODULES= devel/cmake
  20. CONFIGURE_ARGS= -DUSE_SHARED_MBEDTLS_LIBRARY=ON \
  21. -DLINK_WITH_PTHREAD=ON
  22. post-install:
  23. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mbedtls
  24. cd ${WRKSRC}; ${INSTALL_DATA} README.md ChangeLog \
  25. ${PREFIX}/share/doc/mbedtls
  26. mv ${PREFIX}/bin ${PREFIX}/share/examples/mbedtls
  27. (echo "These programs are useful code samples for a crypto expert, but";\
  28. echo "should not be relied upon by the normal end-user.") \
  29. > ${PREFIX}/share/examples/mbedtls/README
  30. .include <bsd.port.mk>