llvm: update to 3.4.

This commit is contained in:
Juan RP 2014-01-07 00:15:35 +01:00
parent 3aaf2948fd
commit bc7f6a614f

View file

@ -1,23 +1,23 @@
# Template file for 'llvm'
pkgname=llvm
version=3.3
wrksrc="llvm-${version}.src"
revision=4
version=3.4
wrksrc="llvm-${version}"
revision=1
configure_args="--disable-expensive-checks --disable-debug-runtime
--enable-bindings=none --enable-optimize --enable-shared --enable-libffi
--enable-llvmc-dynamic --disable-assertions --enable-experimental-targets=R600"
--enable-llvmc-dynamic --disable-assertions"
short_desc="Low Level Virtual Machine"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.llvm.org"
license="BSD"
distfiles="
http://www.llvm.org/releases/${version}/llvm-${version}.src.tar.gz
http://www.llvm.org/releases/${version}/cfe-${version}.src.tar.gz
http://www.llvm.org/releases/${version}/clang-${version}.src.tar.gz
http://www.llvm.org/releases/${version}/compiler-rt-${version}.src.tar.gz"
checksum="
68766b1e70d05a25e2f502e997a3cb3937187a3296595cf6e0977d5cd6727578
b1b55de4ab3a57d3e0331a83e0284610191c77d924e3446498d9113d08dfb996
0e2f3180d6316e6c43f064fdd406c5c6515e682c5f31c57c28335b68c7525423"
25a5612d692c48481b9b397e2b55f4870e447966d66c96d655241702d44a2628
22a9780db3b85a7f2eb9ea1f7f6e00da0249e3d12851e8dea0f62f1783242b1b
f37c89b1383ce462d47537a0245ac798600887a9be9f63073e16b79ed536ab5c"
# XXX Investigate ocaml bindings.
hostmakedepends="groff bsdtar perl python"
@ -25,13 +25,12 @@ makedepends="zlib-devel libffi-devel"
post_extract() {
# Move clang files into the llvm source.
if [ -d ${XBPS_BUILDDIR}/cfe-${version}.src ]; then
mv ${XBPS_BUILDDIR}/cfe-${version}.src ${wrksrc}/tools/clang
if [ -d ${XBPS_BUILDDIR}/clang-${version} ]; then
mv ${XBPS_BUILDDIR}/clang-${version} ${wrksrc}/tools/clang
fi
# Move compiler-rt files into the llvm source.
if [ -d ${XBPS_BUILDDIR}/compiler-rt-${version}.src ]; then
mv ${XBPS_BUILDDIR}/compiler-rt-${version}.src \
${wrksrc}/projects/compiler-rt
if [ -d ${XBPS_BUILDDIR}/compiler-rt-${version} ]; then
mv ${XBPS_BUILDDIR}/compiler-rt-${version} ${wrksrc}/projects/compiler-rt
fi
}
@ -90,8 +89,8 @@ clang-analyzer_package() {
short_desc="Low-Level Virtual Machine (LLVM) - A source code analysis framework"
homepage="http://clang-analyzer.llvm.org/"
pkg_install() {
install -d ${PKGDESTDIR}/usr/bin
install -d ${PKGDESTDIR}/usr/lib/clang-analyzer
vmkdir usr/bin
vmkdir usr/lib/clang-analyzer
for f in build view; do
cp -r ${wrksrc}/tools/clang/tools/scan-${f} ${PKGDESTDIR}/usr/lib/clang-analyzer