summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2018-09-23 18:39:22 +0000
committerbsiegert <bsiegert@pkgsrc.org>2018-09-23 18:39:22 +0000
commitff83f991e3c747fafd72ca5fa8bc94d10be9fbfd (patch)
tree4f103929a7d552eea13ccc73ec45d54849a510b5 /security
parentb5442e844287a5426fcb421a4022af7a85d93f00 (diff)
downloadpkgsrc-ff83f991e3c747fafd72ca5fa8bc94d10be9fbfd.tar.gz
Use correct versioned Go dependency, subst go tool path.
Diffstat (limited to 'security')
-rw-r--r--security/boringssl/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/security/boringssl/Makefile b/security/boringssl/Makefile
index 1aef6804357..37cb455cce3 100644
--- a/security/boringssl/Makefile
+++ b/security/boringssl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2018/08/22 09:46:17 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2018/09/23 18:39:22 bsiegert Exp $
DISTNAME= boringssl-20151230
PKGREVISION= 8
@@ -12,13 +12,20 @@ LICENSE= openssl
WRKSRC= ${WRKDIR}/boringssl
-BUILD_DEPENDS+= go>=1.4:../../lang/go
+.include "../../lang/go/version.mk"
+
+BUILD_DEPENDS+= ${GO_PACKAGE_DEP}
USE_TOOLS+= cmake perl
USE_LANGUAGES+= c c++
AUTO_MKDIRS= yes
+SUBST_CLASSES+= go
+SUBST_STAGE.go= post-patch
+SUBST_FILES.go= CMakeLists.txt
+SUBST_SED.go= -e '/find_program.GO_EXECUTABLE/s,go,${GO},'
+
do-build:
mkdir -p ${WRKSRC}/build
cd ${WRKSRC}/build && cmake ..