50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
# Template file for 'libcxxiabi'
|
|
pkgname=libcxxabi
|
|
version=6.0.0
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}.src"
|
|
build_style=cmake
|
|
configure_args="-DLIBCXXABI_LIBCXX_INCLUDES=../libcxx/include"
|
|
make_build_args="VERBOSE=1"
|
|
hostmakedepends="llvm"
|
|
makedepends="llvm llvm-libunwind-devel"
|
|
LDFLAGS="-Wl,--no-as-needed -lunwind -Wl,--as-needed"
|
|
short_desc="Low-level support for libc++ standard library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://libcxxabi.llvm.org"
|
|
license="NCSA, MIT"
|
|
distfiles="http://www.llvm.org/releases/${version}/${pkgname}-${version}.src.tar.xz
|
|
http://www.llvm.org/releases/${version}/libcxx-${version}.src.tar.xz"
|
|
checksum="91c6d9c5426306ce28d0627d6a4448e7d164d6a3f64b01cb1d196003b16d641b
|
|
70931a87bde9d358af6cb7869e7535ec6b015f7e6df64def6d2ecdd954040dd9"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
arm*) broken="Wierd EHABI defines break it";;
|
|
esac
|
|
|
|
post_extract() {
|
|
# Break dependency cycle, we just need the headers here
|
|
mv ../libcxx-${version}.src libcxx
|
|
|
|
sed -i 's,share/llvm/cmake,lib/cmake/llvm,g' CMakeLists.txt
|
|
|
|
# For musl
|
|
sed -i 's/!defined(_GCC_MAX_ALIGN_T)/& \&\& !defined(__DEFINED_max_align_t)/' libcxx/include/stddef.h
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir usr/include
|
|
vcopy include/* usr/include
|
|
vlicense LICENSE.TXT
|
|
}
|
|
|
|
libcxxabi-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/include"
|
|
}
|
|
}
|