# SliTaz package receipt. PACKAGE="llvm" VERSION="3.2" CATEGORY="development" SHORT_DESC="Modular compiler toolchain collection." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" WEB_SITE="https://llvm.org/" TARBALL="$PACKAGE-$VERSION.src.tar.gz" WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL" DEPENDS="libffi gcc-lib-base" BUILD_DEPENDS="libffi-dev libffi perl gcc" # What is the latest version available today? current_version() { wget -O - https://github.com/llvm/llvm-project/releases 2>/dev/null | \ sed '/-rc/d;/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./configure CC=gcc CXX=g++ \ --prefix=/usr --sysconfdir=/etc \ --enable-libffi \ --enable-optimized \ --enable-shared \ --enable-targets=all \ --disable-assertions \ --disable-debug-runtime \ --disable-expensive-checks \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/usr/include $fs/usr }