pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/libcxxabi libcxxabi: reduce compiler requirement,...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ce41b37c5408
branches:  trunk
changeset: 383144:ce41b37c5408
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Aug 13 09:03:55 2022 +0000

description:
libcxxabi: reduce compiler requirement, delint

diffstat:

 lang/libcxxabi/Makefile |  26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diffs (57 lines):

diff -r 8d2278c3145c -r ce41b37c5408 lang/libcxxabi/Makefile
--- a/lang/libcxxabi/Makefile   Sat Aug 13 09:00:23 2022 +0000
+++ b/lang/libcxxabi/Makefile   Sat Aug 13 09:03:55 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2022/08/12 08:41:58 pin Exp $
+# $NetBSD: Makefile,v 1.14 2022/08/13 09:03:55 tnn Exp $
 
 .include "../../lang/llvm/version.mk"
+PKGREVISION=   1
 
 DISTNAME=      libcxxabi-${LLVM_VERSION}.src
 PKGNAME=       ${DISTNAME:S/.src//}
@@ -17,18 +18,20 @@
 # circular dependencies.  This must be kept in sync with libcxxabi/Makefile.
 LIBCXX=                libcxx-${LLVM_VERSION}.src
 LLVMDIST=      llvm-${LLVM_VERSION}.src
-_EXTRA_DIST=   ${LIBCXX}${EXTRACT_SUFX} ${LLVMDIST}${EXTRACT_SUFX}
-SITES.${LIBCXX}${EXTRACT_SUFX}=                ${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
-SITES.${LLLVMDIST}${EXTRACT_SUFX}=     ${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
+EXTRA_DIST=    ${LIBCXX}${EXTRACT_SUFX} ${LLVMDIST}${EXTRACT_SUFX}
 
-DISTFILES=     ${DEFAULT_DISTFILES} ${_EXTRA_DIST}
+SITES.${LIBCXX}${EXTRACT_SUFX}=        \
+       ${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
+SITES.${LLLVMDIST}${EXTRACT_SUFX}=     \
+       ${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
 
-CONFIGURE_DIRS=        ${WRKDIR}/build
+DISTFILES=     ${DEFAULT_DISTFILES} ${EXTRA_DIST}
+
+CONFIGURE_DIRS=        build
 CMAKE_ARG_PATH=        ${WRKSRC}
 
-USE_LANGUAGES= c c++
+USE_LANGUAGES= c c++17
 USE_CMAKE=     yes
-GCC_REQD+=     12
 SSP_SUPPORTED= no
 
 CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE=Release
@@ -40,11 +43,14 @@
 # avoid conflict with stddef.h
 CXXFLAGS.NetBSD+=      -D__DEFINED_max_align_t=1
 
+# Avoid GCC < 11 error https://github.com/llvm/llvm-project/issues/54018
+CXXFLAGS+=             -std=c++17 -D_LIBCPP_STD_VER=17
+
 post-extract:
-       ${MKDIR} ${WRKDIR}/build
+       ${MKDIR} ${WRKSRC}/build
        ${LN} -f -s ${WRKDIR}/${LIBCXX} ${WRKDIR}/libcxx
        ${LN} -f -s ${WRKDIR}/${LLVMDIST} ${WRKDIR}/llvm
-        # TODO: not sure what should create this and with which contents
+# TODO: not sure what should create this and with which contents
        ${TOUCH} ${WRKDIR}/${LIBCXX}/include/__config_site
 
 .include "../../lang/libunwind/buildlink3.mk"



Home | Main Index | Thread Index | Old Index