pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust We need curl and openssl buildlinked if BUIL...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a29a6ebb6f45
branches:  trunk
changeset: 449701:a29a6ebb6f45
user:      he <he%pkgsrc.org@localhost>
date:      Sun Apr 04 10:21:44 2021 +0000

description:
We need curl and openssl buildlinked if BUILD_TARGET is "build".
This is because in that case we're not using the rust-internal
copies of those libraries, governed by the rust-cargo-static option.

diffstat:

 lang/rust/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r c835090f6804 -r a29a6ebb6f45 lang/rust/Makefile
--- a/lang/rust/Makefile        Sun Apr 04 09:58:38 2021 +0000
+++ b/lang/rust/Makefile        Sun Apr 04 10:21:44 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.224 2021/04/04 09:23:37 nia Exp $
+# $NetBSD: Makefile,v 1.225 2021/04/04 10:21:44 he Exp $
 
 DISTNAME=      rustc-1.49.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -540,6 +540,14 @@
 DEPENDS+=      libatomic-links>=0:../../devel/libatomic-links
 .endif
 
+.if ${BUILD_TARGET} == "build"
+# This is without rust-cargo-static option, so need these available.
+BUILDLINK_API_DEPENDS.nghttp2+= nghttp2>=1.41.0
+BUILDLINK_API_DEPENDS.curl+=   curl>=7.67.0
+.  include "../../www/curl/buildlink3.mk"
+.  include "../../security/openssl/buildlink3.mk"
+.endif
+
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../lang/python/tool.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index