1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Sebastien Binet <binet@lblbox>
7 pkgdesc='Low Level Virtual Machine with the GCC front-end.'
10 license=('custom:University of Illinois/NCSA Open Source License')
12 makedepends=('libffi' 'python' 'ocaml')
13 conflicts=('llvm-gcc-svn')
14 source=("http://llvm.org/releases/${pkgver}/llvm-${pkgver}.tgz"
15 "http://llvm.org/releases/${pkgver}/llvm-gcc-4.2-${pkgver}.source.tgz")
16 md5sums=('220d361b4d17051ff4bb21c64abe05ba'
17 'e5b0569f5f018086c62201d87e161154')
22 # --sysconfdir to configure apparently isn't enough ...
23 # sed -i 's:$(PROJ_prefix)/etc/llvm:/etc/llvm:' Makefile.config.in
31 # make ENABLE_OPTIMIZED=$_llvm_optimized
32 # make ENABLE_OPTIMIZED=$_llvm_optimized DESTDIR=$pkgdir install
35 # now the llvm-gcc part...
36 LLVM_GCC_SRC=llvm-gcc-4.2-${pkgver}.source
37 LLVM_OBJ_DIR=${srcdir}/llvm-${pkgver}
38 cd $srcdir/$LLVM_GCC_SRC
40 BUILDOPTIONS=LLVM_VERSION_INFO=${pkgver}
42 # Don't install libiberty
43 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
45 # Don't run fixincludes
46 # sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
48 # For some reason this is used by default - remove it
57 ../${LLVM_GCC_SRC}/configure \
59 --program-prefix=llvm- \
60 --enable-llvm=$LLVM_OBJ_DIR \
61 --enable-languages=c,c++ \
65 --enable-threads=posix \
66 --enable-__cxa_atexit \
68 --libexecdir=/usr/lib \
69 --enable-clocale=gnu \
70 --disable-libstdcxx-pch
78 make DESTDIR=${pkgdir} install
80 rm -f ${startdir}/pkg/usr/lib/lib{stdc++,supc++,gcc_s}.*
81 #rm -f ${startdir}/pkg/usr/share/locale/*/LC_MESSAGES/libstdc++.mo
82 rm -rf ${startdir}/pkg/usr/share/locale
83 rm -rf ${startdir}/pkg/usr/man/man7