From 41751e7d78680947c4537e973884a76bf6e3d613 Mon Sep 17 00:00:00 2001 From: shamil Date: Tue, 1 Mar 2016 00:33:40 +0200 Subject: [PATCH] malfs mekanizma guncelleme --- talimatname/genel/libthai/talimat | 2 +- talimatname/genel/llvm/config.h | 12 ++++ talimatname/genel/llvm/llvm-config.h | 12 ++++ talimatname/genel/llvm/talimat | 83 ++++++++++------------------ talimatname/genel/llvm/talimat.eski | 68 +++++++++++++++++++++++ 5 files changed, 121 insertions(+), 56 deletions(-) create mode 100644 talimatname/genel/llvm/config.h create mode 100644 talimatname/genel/llvm/llvm-config.h create mode 100644 talimatname/genel/llvm/talimat.eski diff --git a/talimatname/genel/libthai/talimat b/talimatname/genel/libthai/talimat index dbbc36f92..5c34baa38 100644 --- a/talimatname/genel/libthai/talimat +++ b/talimatname/genel/libthai/talimat @@ -4,7 +4,7 @@ # Depends on: libdatrie name=libthai -version=0.1.22 +version=0.1.21 release=1 source=(https://mirrors.kernel.org/debian/pool/main/libt/${name}/${name}_${version}.orig.tar.xz) diff --git a/talimatname/genel/llvm/config.h b/talimatname/genel/llvm/config.h new file mode 100644 index 000000000..b4b7f5df1 --- /dev/null +++ b/talimatname/genel/llvm/config.h @@ -0,0 +1,12 @@ +/* config.h stub */ + +#ifndef __STUB__CONFIG_H__ +#define __STUB__CONFIG_H__ + +#if defined(__x86_64__) +#include "config-64.h" +#else +#include "config-32.h" +#endif + +#endif diff --git a/talimatname/genel/llvm/llvm-config.h b/talimatname/genel/llvm/llvm-config.h new file mode 100644 index 000000000..ccc313fbf --- /dev/null +++ b/talimatname/genel/llvm/llvm-config.h @@ -0,0 +1,12 @@ +/* llvm-config.h stub */ + +#ifndef __STUB__LLVMCONFIG_H__ +#define __STUB__LLVMCONFIG_H__ + +#if defined(__x86_64__) +#include "llvm-config-64.h" +#else +#include "llvm-config-32.h" +#endif + +#endif diff --git a/talimatname/genel/llvm/talimat b/talimatname/genel/llvm/talimat index 396e33b57..348176079 100644 --- a/talimatname/genel/llvm/talimat +++ b/talimatname/genel/llvm/talimat @@ -1,68 +1,41 @@ -# Description: Low Level Virtual Machine, collection of modular and reusable compiler and toolchain. -# URL: http://llvm.org/ -# Maintainers: Chris Lattner -# Packager: pierre at nutyx dot org, tnut at nutyx dot org -# Depends on: python +# 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 name=llvm -version=3.7.1 +version=3.7.0 release=1 - -source=(http://llvm.org/releases/$version/$name-$version.src.tar.xz - http://llvm.org/releases/$version/cfe-$version.src.tar.xz - http://llvm.org/releases/$version/compiler-rt-$version.src.tar.xz) +source=(http://llvm.org/releases/$version/$name-$version.src.tar.xz \ + config.h llvm-config.h) build() { -cd $name-$version.src + cd $name-$version.src -mv ../compiler-rt-${version}.src projects/compiler-rt -mv ../cfe-$version.src tools/clang + mkdir build + cd build -sed -r "/ifeq.*CompilerTargetArch/s#i386#i686#g" \ - -i projects/compiler-rt/make/platform/clang_linux.mk + ../configure --prefix=/usr \ + --without-oprofile \ + --enable-cxx11 \ + --enable-targets=x86,x86_64,r600 \ + --enable-shared \ + --mandir=/usr/man -case `uname -m` in - x86_64) - enable_pic="yes";; - i?86) - enable_pic="no";; -esac -sed -e 's:/docs/llvm:/share/doc/llvm-$version:' \ - -i Makefile.config.in + make DISABLE_ASSERTIONS=1 $MAKEFLAGS + make DISABLE_ASSERTIONS=1 DESTDIR=$PKG install -mkdir -v build -cd build -CC=gcc CXX=g++ \ -../configure --prefix=/usr \ - --datarootdir=/usr/share \ - --sysconfdir=/etc \ - --enable-libffi \ - --enable-optimized \ - --enable-shared \ - --enable-targets=host,r600 \ - --disable-assertions \ - --docdir=/usr/share/doc/$name-$version -make || make -j1 -make DESTDIR=$PKG install || make -j1 DESTDIR=$PKG install -for file in '$PKG/usr/lib/lib{clang,LLVM,LTO}*.a' -do - test -f $file && chmod -v 644 $file -done + find $PKG -name .dir -delete + rm -rf $PKG/usr/docs -install -v -dm755 $PKG/usr/lib/clang-analyzer + # 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/ -for prog in scan-build scan-view -do - cp -rfv ../tools/clang/tools/$prog $PKG/usr/lib/clang-analyzer/ - ln -sfv ../lib/clang-analyzer/$prog/$prog $PKG/usr/bin/ -done - -install -d $PKG/etc/ld.so.conf.d -echo /usr/lib/llvm > $PKG/etc/ld.so.conf.d/llvm.conf - -ln -sfv /usr/bin/clang $PKG/usr/lib/clang-analyzer/scan-build/ -mkdir -p $PKG/usr/share/man/man1 - -mv -v $PKG/usr/lib/clang-analyzer/scan-build/scan-build.1 $PKG/usr/share/man/man1/ + # remove example hello transform + rm $PKG/usr/lib/LLVMHello.so } diff --git a/talimatname/genel/llvm/talimat.eski b/talimatname/genel/llvm/talimat.eski new file mode 100644 index 000000000..396e33b57 --- /dev/null +++ b/talimatname/genel/llvm/talimat.eski @@ -0,0 +1,68 @@ +# Description: Low Level Virtual Machine, collection of modular and reusable compiler and toolchain. +# URL: http://llvm.org/ +# Maintainers: Chris Lattner +# Packager: pierre at nutyx dot org, tnut at nutyx dot org +# Depends on: python + +name=llvm +version=3.7.1 +release=1 + +source=(http://llvm.org/releases/$version/$name-$version.src.tar.xz + http://llvm.org/releases/$version/cfe-$version.src.tar.xz + http://llvm.org/releases/$version/compiler-rt-$version.src.tar.xz) + +build() { +cd $name-$version.src + +mv ../compiler-rt-${version}.src projects/compiler-rt +mv ../cfe-$version.src tools/clang + +sed -r "/ifeq.*CompilerTargetArch/s#i386#i686#g" \ + -i projects/compiler-rt/make/platform/clang_linux.mk + +case `uname -m` in + x86_64) + enable_pic="yes";; + i?86) + enable_pic="no";; +esac +sed -e 's:/docs/llvm:/share/doc/llvm-$version:' \ + -i Makefile.config.in + +mkdir -v build +cd build +CC=gcc CXX=g++ \ +../configure --prefix=/usr \ + --datarootdir=/usr/share \ + --sysconfdir=/etc \ + --enable-libffi \ + --enable-optimized \ + --enable-shared \ + --enable-targets=host,r600 \ + --disable-assertions \ + --docdir=/usr/share/doc/$name-$version +make || make -j1 +make DESTDIR=$PKG install || make -j1 DESTDIR=$PKG install +for file in '$PKG/usr/lib/lib{clang,LLVM,LTO}*.a' +do + test -f $file && chmod -v 644 $file +done + +install -v -dm755 $PKG/usr/lib/clang-analyzer + +for prog in scan-build scan-view +do + cp -rfv ../tools/clang/tools/$prog $PKG/usr/lib/clang-analyzer/ + ln -sfv ../lib/clang-analyzer/$prog/$prog $PKG/usr/bin/ +done + +install -d $PKG/etc/ld.so.conf.d +echo /usr/lib/llvm > $PKG/etc/ld.so.conf.d/llvm.conf + +ln -sfv /usr/bin/clang $PKG/usr/lib/clang-analyzer/scan-build/ +mkdir -p $PKG/usr/share/man/man1 + +mv -v $PKG/usr/lib/clang-analyzer/scan-build/scan-build.1 $PKG/usr/share/man/man1/ + +}