talimat 943 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Description: LLVM derleyici arka uç
  2. # URL: http://llvm.org/
  3. # Packager: milisarge
  4. # Depends on: python
  5. name=llvm
  6. version=3.7.0
  7. release=1
  8. source=(http://llvm.org/releases/$version/$name-$version.src.tar.xz \
  9. config.h llvm-config.h)
  10. build() {
  11. cd $name-$version.src
  12. mkdir build
  13. cd build
  14. ../configure --prefix=/usr \
  15. --without-oprofile \
  16. --enable-cxx11 \
  17. --enable-targets=x86,x86_64,r600 \
  18. --enable-shared \
  19. --mandir=/usr/man
  20. make DISABLE_ASSERTIONS=1 $MAKEFLAGS
  21. make DISABLE_ASSERTIONS=1 DESTDIR=$PKG install
  22. find $PKG -name .dir -delete
  23. rm -rf $PKG/usr/docs
  24. # multilib stubs
  25. mv $PKG/usr/include/llvm/Config/config{,-64}.h
  26. mv $PKG/usr/include/llvm/Config/llvm-config{,-64}.h
  27. install -m 0644 $SRC/config.h $PKG/usr/include/llvm/Config/
  28. install -m 0644 $SRC/llvm-config.h $PKG/usr/include/llvm/Config/
  29. # remove example hello transform
  30. rm $PKG/usr/lib/LLVMHello.so
  31. }