SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "openal"

# SliTaz package receipt.

PACKAGE="openal"
VERSION="1.22.0"
CATEGORY="multimedia"
TAGS="multimedia audio sound 3D"
SHORT_DESC="Cross-platform 3D audio API."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="LGPL2"
WEB_SITE="https://www.openal-soft.org/"
REPOLOGY="openal-soft"

SOURCE="openal-soft"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WGET_URL="${WEB_SITE}$PACKAGE-releases/$TARBALL"

DEPENDS="gcc83-lib-base libatomic"
BUILD_DEPENDS="cmake gcc83 libatomic"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/OpenAL Soft [0-9]/!d;s|.*OpenAL Soft ||;s| is.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export    CC=gcc-83
    export    CXX=g++-83
    export    LDFLAGS="$LDFLAGS -latomic"

    mkdir    _build &&
    cd    _build &&
    cmake    ..                \
        -D CMAKE_INSTALL_PREFIX=/usr &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc/xdg

    cook_copy_folders    bin
    cook_copy_files        *.so*
    cp -a $src/alsoftrc.sample    $fs/etc/xdg/alsoft.conf
}

# Post install commands for Tazpkg.
post_install()
{
    [ -s $1/etc/rcS.conf ] &&
    case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
        *\ snd-pcm-oss\ *) ;;
        *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf ;;
    esac
    [ "$1" ] || modprobe snd-pcm-oss 2> /dev/null || true
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)