void-packages/srcpkgs/libcxxabi/template

50 lines
1.4 KiB
Bash
Raw Normal View History

2016-03-14 21:24:36 +00:00
# Template file for 'libcxxiabi'
pkgname=libcxxabi
2016-12-23 15:35:30 +00:00
version=3.9.1
2016-03-14 21:24:36 +00:00
revision=1
wrksrc="${pkgname}-${version}.src"
build_style=cmake
configure_args="-DLIBCXXABI_LIBCXX_INCLUDES=../libcxx/include"
make_build_args="VERBOSE=1"
2016-12-25 14:58:26 +00:00
hostmakedepends="llvm"
2016-03-14 21:24:36 +00:00
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"
2016-12-23 15:35:30 +00:00
checksum="920d8be32e6f5574a3fb293f93a31225eeba15086820fcb942155bf50dc029e2
25e615e428f60e651ed09ffd79e563864e3f4bc69a9e93ee41505c419d1a7461"
case "$XBPS_TARGET_MACHINE" in
2016-12-23 19:11:43 +00:00
arm*) broken="Wierd EHABI defines break it";;
2016-03-29 17:43:25 +00:00
esac
2016-03-14 21:24:36 +00:00
post_extract() {
# Break dependency cycle, we just need the headers here
mv ../libcxx-${version}.src libcxx
2016-09-02 21:43:56 +00:00
sed -i 's,share/llvm/cmake,lib/cmake/llvm,g' CMakeLists.txt
2016-03-14 21:24:36 +00:00
# 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"
}
}