From 380530d02a5449fdef97b63b394a6743c3de0092 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Jul 2013 01:17:00 -0700 Subject: Tue Jul 16 01:16:20 PDT 2013 --- community/libc++/PKGBUILD | 20 ++++++++++---------- community/libc++/libc++.install | 7 +++++++ 2 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 community/libc++/libc++.install (limited to 'community/libc++') diff --git a/community/libc++/PKGBUILD b/community/libc++/PKGBUILD index 51e254233..6a4f8c0df 100644 --- a/community/libc++/PKGBUILD +++ b/community/libc++/PKGBUILD @@ -1,25 +1,25 @@ # Maintainer: Daniel Micay # Contributor: MThinkCpp -pkgname='libc++' +pkgname=libc++ pkgver=3.3 -pkgrel=1 +pkgrel=3 pkgdesc='A new implementation of the C++ standard library, targeting C++11.' url='http://libcxx.llvm.org' license=('custom:University of Illinois/NCSA Open Source License') arch=('i686' 'x86_64') -depends=('glibc' 'gcc-libs') # gcc-libs for libsupc++ binary -makedepends=('clang' 'subversion' 'cmake' 'gcc') # gcc provides libsupc++ headers +# gcc-libs needed for libgcc_s, because Arch doesn't use a pure compiler-rt clang +depends=('glibc' 'libc++abi' 'gcc-libs') +makedepends=('clang' 'subversion' 'cmake') source=("http://www.llvm.org/releases/${pkgver}/libcxx-${pkgver}.src.tar.gz") -md5sums=('SKIP') +md5sums=('59006e659ffb33f5222a7b79d4cd071e') +install=${pkgname}.install build() { - _gcc_include_dir=/usr/include/c++/$(gcc -dumpversion) - _gcc_platform_include_dir=$_gcc_include_dir/$(gcc -dumpmachine) mkdir -p libcxx-${pkgver}.src/build cd libcxx-${pkgver}.src/build - cmake -G "Unix Makefiles" -DLIBCXX_CXX_ABI=libsupc++ \ - -DLIBCXX_LIBSUPCXX_INCLUDE_PATHS="${_gcc_include_dir};${_gcc_platform_include_dir}" \ - -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "${srcdir}/libcxx-${pkgver}.src" + CC=clang CXX=clang++ cmake -G "Unix Makefiles" -DLIBCXX_CXX_ABI=libcxxabi \ + -DLIBCXX_LIBCXXABI_INCLUDE_PATHS=/usr/include \ + -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/libcxx-${pkgver}.src" make } package() { diff --git a/community/libc++/libc++.install b/community/libc++/libc++.install new file mode 100644 index 000000000..caef683ae --- /dev/null +++ b/community/libc++/libc++.install @@ -0,0 +1,7 @@ +post_install() { + echo compile with \`clang++ -std=c++11 -stdlib=libc++ -lc++abi\` to use libc++ +} + +post_upgrade() { + post_install +} -- cgit v1.2.3-54-g00ecf