summaryrefslogtreecommitdiff
path: root/llvm/Pkgfile
blob: 943b0289b2cbe7908a6e54a6a1d040d3893ba44c (plain)
    1 # Description: LLVM compiler backend
    2 # URL:         http://llvm.org/
    3 # Maintainer:  Thomas Penteker, tek at serverop dot de
    4 # Packager:    Tilman Sauerbeck, tilman at crux dot nu
    5 # Depends on:  python
    6 
    7 name=llvm
    8 version=3.6.2
    9 release=1
   10 source=(http://llvm.org/releases/$version/$name-$version.src.tar.xz \
   11         config.h llvm-config.h)
   12 
   13 build() {
   14   cd $name-$version.src
   15 
   16   ./configure --prefix=/usr \
   17     --without-oprofile \
   18     --enable-cxx11 \
   19     --enable-targets=x86,x86_64,r600 \
   20     --enable-shared \
   21     --mandir=/usr/man
   22 
   23   make DISABLE_ASSERTIONS=1 $MAKEFLAGS
   24   make DISABLE_ASSERTIONS=1 DESTDIR=$PKG install
   25 
   26   find $PKG -name .dir -delete
   27   rm -rf $PKG/usr/docs
   28 
   29   # multilib stubs
   30   mv $PKG/usr/include/llvm/Config/config{,-64}.h
   31   mv $PKG/usr/include/llvm/Config/llvm-config{,-64}.h
   32   install -m 0644 $SRC/config.h $PKG/usr/include/llvm/Config/
   33   install -m 0644 $SRC/llvm-config.h $PKG/usr/include/llvm/Config/
   34 
   35   # remove example hello transform
   36   rm $PKG/usr/lib/LLVMHello.so
   37 
   38 }

Generated by cgit