1
0
forked from ports/opt

llvm/llvm-clang: clean up indentation, footprint

This commit is contained in:
Thomas Penteker 2014-05-14 13:10:14 +02:00
parent 6b274cf5e1
commit 62364d6e7a
3 changed files with 40 additions and 45 deletions

View File

@ -1126,7 +1126,7 @@ drwxr-xr-x root/root usr/lib/clang/3.4.1/include/
-rw-r--r-- root/root usr/lib/clang/3.4.1/include/xmmintrin.h
-rw-r--r-- root/root usr/lib/clang/3.4.1/include/xopintrin.h
-rwxr-xr-x root/root usr/lib/libLLVM-3.4.1.so
lrwxrwxrwx root/root usr/lib/libLLVM-3.4.so -> /tmp/llvm-work/pkg/usr/lib/libLLVM-3.4.1.so
lrwxrwxrwx root/root usr/lib/libLLVM-3.4.so -> libLLVM-3.4.1.so
-rwxr-xr-x root/root usr/lib/libLLVMAnalysis.a
-rwxr-xr-x root/root usr/lib/libLLVMAsmParser.a
-rwxr-xr-x root/root usr/lib/libLLVMAsmPrinter.a
@ -1198,20 +1198,6 @@ lrwxrwxrwx root/root usr/lib/libLLVM-3.4.so -> /tmp/llvm-work/pkg/usr/lib/libLLV
-rwxr-xr-x root/root usr/lib/libclangStaticAnalyzerCore.a
-rwxr-xr-x root/root usr/lib/libclangStaticAnalyzerFrontend.a
-rwxr-xr-x root/root usr/lib/libclangTooling.a
-rwxr-xr-x root/root usr/lib/libllvm.a
-rwxr-xr-x root/root usr/lib/libllvm_R600.a
-rwxr-xr-x root/root usr/lib/libllvm_X86.a
-rwxr-xr-x root/root usr/lib/libllvm_analysis.a
-rwxr-xr-x root/root usr/lib/libllvm_bitreader.a
-rwxr-xr-x root/root usr/lib/libllvm_bitwriter.a
-rwxr-xr-x root/root usr/lib/libllvm_executionengine.a
-rwxr-xr-x root/root usr/lib/libllvm_ipo.a
-rwxr-xr-x root/root usr/lib/libllvm_irreader.a
-rwxr-xr-x root/root usr/lib/libllvm_linker.a
-rwxr-xr-x root/root usr/lib/libllvm_passmgr_builder.a
-rwxr-xr-x root/root usr/lib/libllvm_scalar_opts.a
-rwxr-xr-x root/root usr/lib/libllvm_target.a
-rwxr-xr-x root/root usr/lib/libllvm_vectorize.a
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/clang.1.gz

View File

@ -1,38 +1,47 @@
# Description: LLVM
# URL: http://llvm.org/
# Description: LLVM + clang compiler
# URL: http://llvm.org/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: python
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: python
name=llvm
name=llvm-clang
version=3.4.1
release=1
source=(http://llvm.org/releases/$version/{$name,cfe}-$version.src.tar.gz \
config.h llvm-config.h)
config.h llvm-config.h)
build() {
mv cfe-$version.src $name-$version.src/tools/clang
mv cfe-$version.src $name-$version.src/tools/clang
cd $name-$version.src
cd $name-$version.src
# enable enable-shard and the R600 target for mesa3d
./configure --prefix=/usr --without-oprofile --enable-cxx11 \
--enable-targets=x86,x86_64 \
--enable-shared --enable-experimental-targets=R600 \
./configure --prefix=/usr \
--without-oprofile \
--enable-cxx11 \
--enable-targets=x86,x86_64,r600 \
--enable-shared \
--mandir=/usr/man
make $MAKEFLAGS
make DESTDIR=$PKG install
make $MAKEFLAGS
make DESTDIR=$PKG install
find $PKG -name .dir -delete
rm -rf $PKG/usr/docs
# Unfortunately, llvm's configure script seems to ignore --mandir.
mv $PKG/usr/share/man $PKG/usr
rmdir $PKG/usr/share
# multilib stubs
mv $PKG/usr/include/llvm/Config/config{,-64}.h
mv $PKG/usr/include/llvm/Config/llvm-config{,-64}.h
install -m 0644 $SRC/config.h $PKG/usr/include/llvm/Config/
install -m 0644 $SRC/llvm-config.h $PKG/usr/include/llvm/Config/
find $PKG -name .dir -delete
rm -rf $PKG/usr/docs
# remove example hello transform
rm $PKG/usr/lib/LLVMHello.so
# multilib stubs
mv $PKG/usr/include/llvm/Config/config{,-64}.h
mv $PKG/usr/include/llvm/Config/llvm-config{,-64}.h
install -m 0644 $SRC/config.h $PKG/usr/include/llvm/Config/
install -m 0644 $SRC/llvm-config.h $PKG/usr/include/llvm/Config/
# remove example hello transform
rm $PKG/usr/lib/LLVMHello.so
# fix symlink b0rkage
cd $PKG/usr/lib
ln -sf libLLVM-${version}.so libLLVM-${version%.*}.so
}

View File

@ -1,8 +1,8 @@
# Description: LLVM
# URL: http://llvm.org/
# Description: LLVM compiler backend
# URL: http://llvm.org/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: python
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: python
name=llvm
version=3.4.1
@ -11,11 +11,11 @@ source=(http://llvm.org/releases/$version/{$name,cfe}-$version.src.tar.gz \
config.h llvm-config.h)
build() {
mv cfe-$version.src $name-$version.src/tools/clang
mv cfe-$version.src $name-$version.src/tools/clang
cd $name-$version.src
cd $name-$version.src
rm -rf tools/clang
rm -rf tools/clang
./configure --prefix=/usr \
--without-oprofile \