43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'libcxx'
|
|
pkgname=libcxx
|
|
version=10.0.0
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}.src"
|
|
build_style=cmake
|
|
configure_args+=" -DLIBCXX_CXX_ABI=libcxxabi -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON
|
|
-DLIBCXX_CXX_ABI_LIBRARY_PATH=${XBPS_CROSS_BASE}/usr/lib
|
|
-DLIBCXXABI_USE_LLVM_UNWINDER=1"
|
|
hostmakedepends="llvm10 clang-tools-extra python3"
|
|
makedepends="libcxxabi-devel llvm10 llvm-libunwind-devel"
|
|
make_build_args="VERBOSE=1"
|
|
short_desc="New implementation of the C++ standard library, targeting C++11, C++14 and above"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="NCSA, MIT"
|
|
homepage="https://libcxx.llvm.org"
|
|
distfiles="https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/libcxx-${version}.src.tar.xz"
|
|
checksum=270f8a3f176f1981b0f6ab8aa556720988872ec2b48ed3b605d0ced8d09156c7
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES"
|
|
esac
|
|
|
|
post_extract() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) patch -Np1 <${FILESDIR}/libcxx-0001-musl-hacks.patch
|
|
sed -i 's/!defined(_GCC_MAX_ALIGN_T)/& \&\& !defined(__DEFINED_max_align_t)/' include/stddef.h ;;
|
|
esac
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.TXT
|
|
}
|
|
|
|
libcxx-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|