wok view openal/receipt @ rev 24703

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