wok-next rev 13784
Add llvm (thanks ernia)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 04 18:16:39 2013 +0100 (2013-01-04) |
parents | 8b6da8f8e9f7 |
children | 153b140a1600 |
files | llvm/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/llvm/receipt Fri Jan 04 18:16:39 2013 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="llvm" 1.7 +VERSION="3.2" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Modular compiler toolchain collection." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://llvm.org/" 1.12 +#TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +TARBALL="$PACKAGE-${VERSION}_${VERSION}.orig.tar.bz2" 1.14 +WGET_URL="http://ftp.de.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE-$VERSION/$TARBALL" 1.15 +#SUGGESTED="udevil" 1.16 + 1.17 +DEPENDS="libffi gcc-lib-base" 1.18 +BUILD_DEPENDS="libffi-dev libffi perl" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + cd $src 1.24 + ./configure --prefix=/usr --sysconfdir=/etc \ 1.25 + --enable-libffi \ 1.26 + --enable-optimized \ 1.27 + --enable-shared \ 1.28 + --enable-targets=all \ 1.29 + --disable-assertions \ 1.30 + --disable-debug-runtime \ 1.31 + --disable-expensive-checks \ 1.32 + $CONFIGURE_ARGS && 1.33 + make && make DESTDIR=$DESTDIR install 1.34 +} 1.35 + 1.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 +genpkg_rules() 1.38 +{ 1.39 + mkdir -p $fs/usr 1.40 + cp -a $install/usr/bin $fs/usr 1.41 + cp -a $install/usr/lib $fs/usr 1.42 + cp -a $install/usr/include $fs/usr 1.43 +}