diff -rNu erlang-runtime20.old/Makefile erlang-runtime20/Makefile --- erlang-runtime20.old/Makefile 2018-05-03 02:17:42.288245000 +0000 +++ erlang-runtime20/Makefile 2018-05-03 02:18:14.103181000 +0000 @@ -3,6 +3,7 @@ PORTNAME= erlang PORTVERSION= 20.3.4 +PORTREVISION= 1 CATEGORIES= lang parallel java MASTER_SITES= http://www.erlang.org/download/:erlangorg \ http://erlang.stacken.kth.se/download/:erlangorg \ diff -rNu erlang-runtime20.old/files/patch-lib_crypto_c__src_crypto.c erlang-runtime20/files/patch-lib_crypto_c__src_crypto.c --- erlang-runtime20.old/files/patch-lib_crypto_c__src_crypto.c 1970-01-01 00:00:00.000000000 +0000 +++ erlang-runtime20/files/patch-lib_crypto_c__src_crypto.c 2018-05-03 02:24:02.186972000 +0000 @@ -0,0 +1,11 @@ +--- lib/crypto/c_src/crypto.c.orig 2018-03-13 20:11:05.000000000 +0000 ++++ lib/crypto/c_src/crypto.c +@@ -103,7 +103,9 @@ + # endif + + /* LibreSSL wants the 1.0.1 API */ +-# define NEED_EVP_COMPATIBILITY_FUNCTIONS ++# if LIBRESSL_VERSION_NUMBER < 0x20700000L ++# define NEED_EVP_COMPATIBILITY_FUNCTIONS ++# endif + #endif