summaryrefslogtreecommitdiff
path: root/llvm/Pkgfile
blob: b9826b2286c3e82d4a9bc032b371b2cb00eb39e7 (plain)
    1 # Description: LLVM including clang
    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.4.1
    9 release=1
   10 source=(http://llvm.org/releases/$version/{$name,cfe}-$version.src.tar.gz)
   11 
   12 build() {
   13   mv cfe-$version.src $name-$version.src/tools/clang
   14 
   15   cd $name-$version.src
   16 
   17   ./configure --prefix=/usr \
   18     --without-oprofile \
   19     --enable-cxx11 \
   20     --enable-targets=x86,x86_64,r600 \
   21     --enable-shared \
   22     --mandir=/usr/man
   23 
   24   make $MAKEFLAGS
   25   make DESTDIR=$PKG install
   26 
   27   # Unfortunately, llvm's configure script seems to ignore --mandir.
   28   mv $PKG/usr/share/man $PKG/usr
   29   rmdir $PKG/usr/share
   30 
   31   find $PKG -name .dir -delete
   32   rm -rf $PKG/usr/docs
   33 
   34   # fix symlink b0rkage
   35   cd $PKG/usr/lib
   36   ln -sf libLLVM-${version}.so libLLVM-${version%.*}.so
   37 
   38 }

Generated by cgit