32 lines
884 B
Bash
32 lines
884 B
Bash
# Template file for 'libcxx'
|
|
pkgname=libcxx
|
|
version=3.8.0
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="cmake"
|
|
makedepends="llvm-libunwind-devel"
|
|
LDFLAGS="-Wl,--no-as-needed -lunwind -Wl,--as-needed"
|
|
make_build_args="VERBOSE=1"
|
|
short_desc="New implementation of the C++ standard library, targeting C++11"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://libcxx.llvm.org"
|
|
license="BSD"
|
|
distfiles="http://www.llvm.org/releases/${version}/${pkgname}-${version}.src.tar.xz"
|
|
checksum=36804511b940bc8a7cefc7cb391a6b28f5e3f53f6372965642020db91174237b
|
|
wrksrc=${pkgname}-${version}.src
|
|
|
|
post_extract() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) patch -Np1 <${FILESDIR}/libcxx-0001-musl-hacks.patch
|
|
esac
|
|
}
|
|
|
|
libcxx-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|