malfs mekanizma guncelleme
This commit is contained in:
parent
5a1e5bf66f
commit
41751e7d78
|
@ -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)
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -1,68 +1,41 @@
|
|||
# Description: Low Level Virtual Machine, collection of modular and reusable compiler and toolchain.
|
||||
# Description: LLVM compiler backend
|
||||
# URL: http://llvm.org/
|
||||
# Maintainers: Chris Lattner <sabre at nondot dot org>
|
||||
# Packager: pierre at nutyx dot org, tnut at nutyx dot 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
|
||||
|
||||
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
|
||||
mkdir build
|
||||
cd build
|
||||
CC=gcc CXX=g++ \
|
||||
|
||||
../configure --prefix=/usr \
|
||||
--datarootdir=/usr/share \
|
||||
--sysconfdir=/etc \
|
||||
--enable-libffi \
|
||||
--enable-optimized \
|
||||
--without-oprofile \
|
||||
--enable-cxx11 \
|
||||
--enable-targets=x86,x86_64,r600 \
|
||||
--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
|
||||
--mandir=/usr/man
|
||||
|
||||
install -v -dm755 $PKG/usr/lib/clang-analyzer
|
||||
make DISABLE_ASSERTIONS=1 $MAKEFLAGS
|
||||
make DISABLE_ASSERTIONS=1 DESTDIR=$PKG install
|
||||
|
||||
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
|
||||
find $PKG -name .dir -delete
|
||||
rm -rf $PKG/usr/docs
|
||||
|
||||
install -d $PKG/etc/ld.so.conf.d
|
||||
echo /usr/lib/llvm > $PKG/etc/ld.so.conf.d/llvm.conf
|
||||
# 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/
|
||||
|
||||
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
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
# Description: Low Level Virtual Machine, collection of modular and reusable compiler and toolchain.
|
||||
# URL: http://llvm.org/
|
||||
# Maintainers: Chris Lattner <sabre at nondot dot org>
|
||||
# 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/
|
||||
|
||||
}
|
Loading…
Reference in New Issue