|
|
|
|
@@ -2,13 +2,12 @@
|
|
|
|
|
pkgname=llvm
|
|
|
|
|
version=3.3
|
|
|
|
|
wrksrc="llvm-${version}.src"
|
|
|
|
|
revision=3
|
|
|
|
|
revision=4
|
|
|
|
|
build_style=gnu-configure
|
|
|
|
|
configure_args="--disable-expensive-checks --disable-debug-runtime
|
|
|
|
|
--enable-targets=all --enable-bindings=none --enable-optimize
|
|
|
|
|
--enable-shared --enable-libffi --enable-llvmc-dynamic
|
|
|
|
|
--disable-assertions --libdir=/usr/lib/llvm
|
|
|
|
|
--enable-experimental-targets=R600"
|
|
|
|
|
--disable-assertions --enable-experimental-targets=R600"
|
|
|
|
|
short_desc="Low Level Virtual Machine"
|
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
|
homepage="http://www.llvm.org"
|
|
|
|
|
@@ -41,25 +40,16 @@ post_extract() {
|
|
|
|
|
pre_configure() {
|
|
|
|
|
# Fix installation directories, ./configure doesn't seem to set them right
|
|
|
|
|
sed -i -e 's:\$(PROJ_prefix)/etc/llvm:/etc/llvm:' \
|
|
|
|
|
-e 's:\$(PROJ_prefix)/lib:$(PROJ_prefix)/lib/llvm:' \
|
|
|
|
|
-e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm:' \
|
|
|
|
|
Makefile.config.in
|
|
|
|
|
sed -i '/ActiveLibDir = ActivePrefix/s:lib:lib/llvm:' \
|
|
|
|
|
tools/llvm-config/llvm-config.cpp
|
|
|
|
|
sed -i 's:LLVM_LIBDIR="${prefix}/lib":LLVM_LIBDIR="${prefix}/lib/llvm":' \
|
|
|
|
|
autoconf/configure.ac configure
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
|
# Fix permissions of static libs
|
|
|
|
|
chmod -x ${DESTDIR}/usr/lib/llvm/*.a
|
|
|
|
|
chmod -x ${DESTDIR}/usr/lib/*.a
|
|
|
|
|
|
|
|
|
|
# Get rid of example Hello transformation
|
|
|
|
|
rm ${DESTDIR}/usr/lib/llvm/*LLVMHello.*
|
|
|
|
|
|
|
|
|
|
# Add ld.so.conf.d entry
|
|
|
|
|
vmkdir etc/ld.so.conf.d
|
|
|
|
|
echo /usr/lib/llvm > ${DESTDIR}/etc/ld.so.conf.d/llvm.conf
|
|
|
|
|
rm ${DESTDIR}/usr/lib/*LLVMHello.*
|
|
|
|
|
|
|
|
|
|
# Required for multilib.
|
|
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
|
|
|
@@ -74,7 +64,7 @@ post_install() {
|
|
|
|
|
clang-analyzer_package() {
|
|
|
|
|
noarch=yes
|
|
|
|
|
pycompile_dirs="usr/lib/clang-analyzer"
|
|
|
|
|
depends="clang>=${version} python"
|
|
|
|
|
depends="clang-${version}_${revision} python"
|
|
|
|
|
short_desc="Low-Level Virtual Machine (LLVM) - A source code analysis framework"
|
|
|
|
|
homepage="http://clang-analyzer.llvm.org/"
|
|
|
|
|
pkg_install() {
|
|
|
|
|
@@ -92,7 +82,7 @@ clang-analyzer_package() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
clang_package() {
|
|
|
|
|
depends="libstdc++-devel binutils"
|
|
|
|
|
depends="libstdc++-devel binutils gcc"
|
|
|
|
|
short_desc="Low-Level Virtual Machine (LLVM) -- C language family frontend"
|
|
|
|
|
homepage="http://clang.llvm.org/"
|
|
|
|
|
pkg_install() {
|
|
|
|
|
@@ -100,7 +90,7 @@ clang_package() {
|
|
|
|
|
vmove "usr/bin/*clang*"
|
|
|
|
|
vmove usr/bin/c-index-test
|
|
|
|
|
vmove usr/lib/clang
|
|
|
|
|
vmove "usr/lib/llvm/libclang*"
|
|
|
|
|
vmove "usr/lib/libclang*"
|
|
|
|
|
vmove "usr/share/man/man1/*clang*"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@@ -113,6 +103,14 @@ llvm-docs_package() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
libllvm_package() {
|
|
|
|
|
short_desc+=" - runtime library"
|
|
|
|
|
replaces="llvm>3.2<3.3_4"
|
|
|
|
|
pkg_install() {
|
|
|
|
|
vmove usr/lib/libLLVM-${version}.so
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
llvm_package() {
|
|
|
|
|
pkg_install() {
|
|
|
|
|
vmove all
|
|
|
|
|
|