pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/libLLVM libLLVM: Fix building on FreeBSD



details:   https://anonhg.NetBSD.org/pkgsrc/rev/35dea955e8ce
branches:  trunk
changeset: 387476:35dea955e8ce
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Sun Oct 30 22:02:11 2022 +0000

description:
libLLVM: Fix building on FreeBSD

pkgsrc changes:
---------------
  * Disable terminfo on FreeBSD since error occur with curs_terminfo(3X)
    functions. The fix comes from FreeBSD ports.

diffstat:

 lang/libLLVM/Makefile |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r aeb58f45a672 -r 35dea955e8ce lang/libLLVM/Makefile
--- a/lang/libLLVM/Makefile     Sun Oct 30 21:58:29 2022 +0000
+++ b/lang/libLLVM/Makefile     Sun Oct 30 22:02:11 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.40 2022/07/09 08:16:02 wiz Exp $
+# $NetBSD: Makefile,v 1.41 2022/10/30 22:02:11 triaxx Exp $
 
 DISTNAME=      llvm-13.0.1.src
 PKGNAME=       ${DISTNAME:S/llvm/libLLVM/:S/.src//}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    lang devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=llvm/}
 GITHUB_PROJECT=        llvm-project
@@ -122,6 +122,11 @@
 CXXFLAGS+=     -mlongcall
 .endif
 
+# LLVM likes to pick up ${LOCALBASE}/lib/libtinfo.so.*
+.if ${OPSYS} == "FreeBSD"
+CMAKE_ARGS+=   -DLLVM_ENABLE_TERMINFO=OFF
+.endif
+
 .include "options.mk"
 
 # replacing config.guess is required even for cmake.



Home | Main Index | Thread Index | Old Index