SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "irrlicht"

# 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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)