48 lines
1.4 KiB
Bash
48 lines
1.4 KiB
Bash
# Template file for 'libcxxiabi'
|
|
pkgname=libcxxabi
|
|
version=3.8.1
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}.src"
|
|
build_style=cmake
|
|
configure_args="-DLIBCXXABI_LIBCXX_INCLUDES=../libcxx/include"
|
|
make_build_args="VERBOSE=1"
|
|
hostmakedepends="cmake"
|
|
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="BSD"
|
|
distfiles="http://www.llvm.org/releases/${version}/${pkgname}-${version}.src.tar.xz
|
|
http://www.llvm.org/releases/${version}/libcxx-${version}.src.tar.xz"
|
|
checksum="e1b55f7be3fad746bdd3025f43e42d429fb6194aac5919c2be17c4a06314dae1
|
|
77d7f3784c88096d785bd705fa1bab7031ce184cd91ba8a7008abf55264eeecc"
|
|
|
|
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
|
|
|
|
# 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"
|
|
}
|
|
}
|