summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2015-03-26 08:05:02 +0000
committerdholland <dholland@pkgsrc.org>2015-03-26 08:05:02 +0000
commit0cd23628372200ddc64bb15f537e2c5a764736c6 (patch)
treec801e53b79f77e1dc673e4f077474e1186804493
parent4f83b0dfaabef2eaf587d853e67c69dd921bb052 (diff)
downloadpkgsrc-0cd23628372200ddc64bb15f537e2c5a764736c6.tar.gz
Fix builtin detection for latest version (introduced a space between
'#' and 'define') - avoids unconditionally building pkgsrc openssl on netbsd-current. ok'd for during the freeze after an excessively long discussion :-/
-rw-r--r--security/openssl/builtin.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/openssl/builtin.mk b/security/openssl/builtin.mk
index bc27aed8906..f7a4c4f919b 100644
--- a/security/openssl/builtin.mk
+++ b/security/openssl/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.42 2014/06/05 12:16:06 wiz Exp $
+# $NetBSD: builtin.mk,v 1.43 2015/03/26 08:05:02 dholland Exp $
BUILTIN_PKG:= openssl
@@ -32,6 +32,7 @@ BUILTIN_VERSION.openssl!= \
${AWK} 'BEGIN { hex="0123456789abcdef"; \
alpha="abcdefghijklmnopqrstuvwxyz"; \
} \
+ /\#[ ]+define/ { sub("\#[ \\t]+define", "\#define", $$0); } \
/\#define[ ]*OPENSSL_VERSION_NUMBER/ { \
major = index(hex, substr($$3, 3, 1)) - 1; \
i = 16 * (index(hex, substr($$3, 4, 1)) - 1); \