pkgsrc-WIP-changes archive

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

libunwind-15.0.1 - part of llvm update



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Thu Sep 22 10:47:51 2022 +0200
Changeset:	5aad2991417ed476d249a9511784b94f5d9b9c47

Modified Files:
	Makefile
Added Files:
	libunwind/DESCR
	libunwind/Makefile
	libunwind/PLIST
	libunwind/buildlink3.mk
	libunwind/distinfo

Log Message:
libunwind-15.0.1 - part of llvm update

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5aad2991417ed476d249a9511784b94f5d9b9c47

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                |  1 +
 libunwind/DESCR         |  1 +
 libunwind/Makefile      | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
 libunwind/PLIST         | 12 +++++++++++
 libunwind/buildlink3.mk | 13 ++++++++++++
 libunwind/distinfo      | 14 +++++++++++++
 6 files changed, 97 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 8102c8aaac..c9c5a2fc67 100644
--- a/Makefile
+++ b/Makefile
@@ -2212,6 +2212,7 @@ SUBDIR+=	libucl
 SUBDIR+=	libudev
 SUBDIR+=	libuna
 SUBDIR+=	libunit
+SUBDIR+=	libunwind
 SUBDIR+=	libunwind-git
 SUBDIR+=	libusbmuxd
 SUBDIR+=	libvalhalla
diff --git a/libunwind/DESCR b/libunwind/DESCR
new file mode 100644
index 0000000000..93d20deb5d
--- /dev/null
+++ b/libunwind/DESCR
@@ -0,0 +1 @@
+LLVM libunwind
diff --git a/libunwind/Makefile b/libunwind/Makefile
new file mode 100644
index 0000000000..d8abb966db
--- /dev/null
+++ b/libunwind/Makefile
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile,v 1.28 2022/08/14 13:52:27 tnn Exp $
+
+.include "../../wip/llvm/version.mk"
+
+DISTNAME=	libunwind-${LLVM_VERSION}.src
+PKGNAME=	${DISTNAME:S/.src//}
+CATEGORIES=	lang devel
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+#HOMEPAGE=	http://libunwind.llvm.org/
+COMMENT=	LLVM libunwind
+LICENSE=	apache-2.0
+
+# libunwind requires llvm and libcxx source code to build
+# As of v15.0.0 it also requires cmake source code
+LIBCXX=		libcxx-${LLVM_VERSION}.src
+LLVMDIST=	llvm-${LLVM_VERSION}.src
+CMAKE=		cmake-${LLVM_VERSION}.src
+EXTRA_DIST=	${LIBCXX}${EXTRACT_SUFX} ${LLVMDIST}${EXTRACT_SUFX} ${CMAKE}${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}/}
+SITES.${CMAKE}${EXTRACT_SUFX}=	\
+	${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
+
+DISTFILES=	${DEFAULT_DISTFILES} ${EXTRA_DIST}
+
+CONFIGURE_DIRS=	build
+CMAKE_ARG_PATH=	${WRKSRC}
+
+USE_CMAKE=		yes
+USE_LANGUAGES=		c c++11
+USE_TOOLS+=		pax
+SSP_SUPPORTED=		no
+GCC_REQD+=		10	# must be in sync with libcxx
+
+CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+=	-DCMAKE_C_COMPILER=${CC:Q}
+CMAKE_ARGS+=	-DCMAKE_CXX_COMPILER=${CXX:Q}
+
+INSTALLATION_DIRS=	include
+
+post-extract:
+	${MKDIR} ${WRKSRC}/build
+	${LN} -f -s ${WRKDIR}/${LIBCXX} ${WRKDIR}/libcxx
+	${LN} -f -s ${WRKDIR}/${LLVMDIST} ${WRKDIR}/llvm
+	${LN} -f -s ${WRKDIR}/${CMAKE} ${WRKDIR}/cmake
+
+post-install:
+	cd ${WRKSRC}/include && ${PAX} -rw . ${DESTDIR}${PREFIX}/include
+
+BUILDLINK_DEPMETHOD.llvm=	build
+.include "../../wip/llvm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libunwind/PLIST b/libunwind/PLIST
new file mode 100644
index 0000000000..627da16bd2
--- /dev/null
+++ b/libunwind/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.3 2022/08/12 08:39:56 pin Exp $
+include/CMakeLists.txt
+include/__libunwind_config.h
+include/libunwind.h
+include/mach-o/compact_unwind_encoding.h
+include/unwind.h
+include/unwind_arm_ehabi.h
+include/unwind_itanium.h
+lib/libunwind.a
+lib/libunwind.so
+lib/libunwind.so.1
+lib/libunwind.so.1.0
diff --git a/libunwind/buildlink3.mk b/libunwind/buildlink3.mk
new file mode 100644
index 0000000000..37d2b95f03
--- /dev/null
+++ b/libunwind/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.11 2022/08/12 08:39:56 pin Exp $
+
+BUILDLINK_TREE+=	libunwind
+
+.if !defined(LIBUNWIND_BUILDLINK3_MK)
+LIBUNWIND_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libunwind+=	libunwind>=15.0.1
+BUILDLINK_PKGSRCDIR.libunwind?=		../../wip/libunwind
+
+.endif	# LIBUNWIND_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libunwind
diff --git a/libunwind/distinfo b/libunwind/distinfo
new file mode 100644
index 0000000000..5d40857981
--- /dev/null
+++ b/libunwind/distinfo
@@ -0,0 +1,14 @@
+$NetBSD: distinfo,v 1.25 2022/08/12 08:39:56 pin Exp $
+
+BLAKE2s (cmake-15.0.1.src.tar.xz) = 1f7fb68a1c7c05b82a72137f3edf4a9b8dfb9e2fae277af1643e4bc545db6f75
+SHA512 (cmake-15.0.1.src.tar.xz) = fbb29395a337be4e591567cc0f990857a2663cb2335b5ef30945c6b516dbc65e86f022ef3acc1dc572cf6791e1cd20f6754256e00b60cdbf579c04ed74460522
+Size (cmake-15.0.1.src.tar.xz) = 6976 bytes
+BLAKE2s (libcxx-15.0.1.src.tar.xz) = 990ed1b196ec72548326496613b39a460f3836b34ec1e99443ec06d85096295e
+SHA512 (libcxx-15.0.1.src.tar.xz) = 1438b689bb11b25a0b77c83c8fc0dbe98f729186aa2718119c42f4efe42fca9ec33a79a0fac036d6617d0452dcfd76463a8adbc55b0552a0a4e72757d841fdf0
+Size (libcxx-15.0.1.src.tar.xz) = 3345100 bytes
+BLAKE2s (libunwind-15.0.1.src.tar.xz) = 9a2720e3a01da911d528011470dd6a4c110f11be7f69a8b120305dccdebe61a1
+SHA512 (libunwind-15.0.1.src.tar.xz) = 2ff2d84f62c41724caf3c121a515facd6a7eaf6f65658f4a04b268cb839861d4561b5ab11557474c41b59c42c00a4381cf5d561bf612251044b4774883888b59
+Size (libunwind-15.0.1.src.tar.xz) = 113356 bytes
+BLAKE2s (llvm-15.0.1.src.tar.xz) = ed1e687e9fc2c529180f7352d3f8dcaa9a0de1bf4edc9c128f1fb85575afe31f
+SHA512 (llvm-15.0.1.src.tar.xz) = ec61b6d061ba71e00f6e9c1042705ab3512ff71a823e18ce75a3b8fd2ef40efff186b42d4be6ef948019e5bb5b3fb28f0c615ebb7872ec89f7643261eadf276a
+Size (llvm-15.0.1.src.tar.xz) = 53522984 bytes


Home | Main Index | Thread Index | Old Index