wok annotate openal/receipt @ rev 24799

updated libical and libical-dev (3.0.8 -> 3.0.14)
author Hans-G?nter Theisgen
date Mon Mar 21 17:34:22 2022 +0100 (2022-03-21)
parents 1d73c3f56c7b
children fa285280cc24
rev   line source
pascal@3904 1 # SliTaz package receipt.
pascal@3904 2
pascal@3904 3 PACKAGE="openal"
Hans-G?nter@23259 4 VERSION="1.20.1"
pascal@3904 5 CATEGORY="multimedia"
Hans-G?nter@23259 6 TAGS="multimedia audio sound 3D"
pascal@3904 7 SHORT_DESC="cross-platform 3D audio API."
pascal@3904 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15004 9 LICENSE="LGPL2"
Hans-G?nter@23259 10 WEB_SITE="https://www.openal-soft.org/"
Hans-G?nter@23259 11
Hans-G?nter@23259 12 SOURCE="openal-soft"
slaxemulator@5409 13 TARBALL="$SOURCE-$VERSION.tar.bz2"
Hans-G?nter@23259 14 WGET_URL="${WEB_SITE}$PACKAGE-releases/$TARBALL"
Hans-G?nter@23259 15
Hans-G?nter@23645 16 DEPENDS="gcc83-lib-base libatomic"
Hans-G?nter@23645 17 BUILD_DEPENDS="cmake gcc83 libatomic"
pascal@3904 18
pascal@24436 19 # What is the latest version available today?
pascal@24436 20 current_version()
pascal@24436 21 {
pascal@24436 22 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24436 23 sed '/OpenAL Soft [0-9]/!d;s|.*OpenAL Soft ||;s| is.*||;q'
pascal@24436 24 }
pascal@24436 25
pascal@3904 26 # Rules to configure and make the package.
pascal@3904 27 compile_rules()
pascal@3904 28 {
Hans-G?nter@23259 29 export CC=gcc-83
Hans-G?nter@23259 30 export CXX=g++-83
Hans-G?nter@23644 31 export LDFLAGS="$LDFLAGS -latomic"
Hans-G?nter@23259 32
Hans-G?nter@23259 33 cmake -DCMAKE_INSTALL_PREFIX=/usr &&
pascal@3904 34 make &&
gokhlayeh@8774 35 make install
pascal@3904 36 }
pascal@3904 37
pascal@3904 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3904 39 genpkg_rules()
pascal@3904 40 {
pascal@3904 41 mkdir -p $fs/usr/lib
Hans-G?nter@23259 42
Hans-G?nter@23259 43 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23259 44 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@3904 45 }
pascal@21785 46
pascal@21785 47 # Pre and post install commands for Tazpkg.
pascal@21785 48 post_install()
pascal@21785 49 {
pascal@21789 50 [ -s $1/etc/rcS.conf ] &&
pascal@21785 51 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
Hans-G?nter@23259 52 *\ snd-pcm-oss\ *) ;;
Hans-G?nter@23259 53 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf ;;
pascal@21785 54 esac
pascal@21789 55 [ "$1" ] || modprobe snd-pcm-oss 2> /dev/null || true
pascal@21785 56 }