I need this change to remove the embedded copy of polarssl in hiawatha.

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/security/polarssl/Makefile,v
retrieving revision 1.15
diff -u -p -r1.15 Makefile
--- Makefile    11 Mar 2016 18:13:19 -0000      1.15
+++ Makefile    27 Aug 2016 01:43:15 -0000
@@ -3,6 +3,7 @@
 COMMENT=       SSL library with an intuitive API and readable source code
 
 DISTNAME=      mbedtls-2.2.1
+REVISION=      0
 EXTRACT_SUFX=  -gpl.tgz
 
 # check SOVERSION
@@ -26,7 +27,8 @@ MASTER_SITES= https://tls.mbed.org/downl
 
 MODULES=       devel/cmake
 
-CONFIGURE_ARGS= -DUSE_SHARED_MBEDTLS_LIBRARY=ON
+CONFIGURE_ARGS=                -DUSE_SHARED_MBEDTLS_LIBRARY=ON \
+                       -DLINK_WITH_PTHREAD=ON
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mbedtls
Index: patches/patch-include_mbedtls_config_h
===================================================================
RCS file: patches/patch-include_mbedtls_config_h
diff -N patches/patch-include_mbedtls_config_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-include_mbedtls_config_h      27 Aug 2016 01:43:15 -0000
@@ -0,0 +1,25 @@
+$OpenBSD$
+
+MBEDTLS_THREADING_PTHREAD and MBEDTLS_THREADING_C are required by
+www/hiawatha.
+
+--- include/mbedtls/config.h.orig      Sat Aug 27 03:17:22 2016
++++ include/mbedtls/config.h   Sat Aug 27 03:18:03 2016
+@@ -1246,7 +1246,7 @@
+  *
+  * Uncomment this to enable pthread mutexes.
+  */
+-//#define MBEDTLS_THREADING_PTHREAD
++#define MBEDTLS_THREADING_PTHREAD
+ 
+ /**
+  * \def MBEDTLS_VERSION_FEATURES
+@@ -2261,7 +2261,7 @@
+  *
+  * Enable this layer to allow use of mutexes within mbed TLS
+  */
+-//#define MBEDTLS_THREADING_C
++#define MBEDTLS_THREADING_C
+ 
+ /**
+  * \def MBEDTLS_TIMING_C

Reply via email to