# SliTaz package receipt. PACKAGE="irrlicht" VERSION="1.8.5" CATEGORY="development" SHORT_DESC="High performance realtime 3D engine written in C++." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="zlib/libpng" WEB_SITE="https://sourceforge.net/projects/irrlicht/" TARBALL="$PACKAGE-$VERSION.zip" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="gcc-lib-base libxcb mesa xorg-libXfixes" BUILD_DEPENDS="mesa-dev xorg-dev" # What is the latest version available today? current_version() { wget -O - 'https://sourceforge.net/projects/irrlicht/files/Irrlicht SDK/' 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*SDK/.\../||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { cd $src/source/Irrlicht sed -i "s|^INSTALL_DIR.*|INSTALL_DIR = $DESTDIR/usr/lib|" Makefile make sharedlib && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders lib }