wok-6.x view openal/receipt @ rev 23653

updated snapper and snapper-dev (0.8.6 -> 0.8.7)
author Hans-G?nter Theisgen
date Mon Apr 20 17:10:16 2020 +0100 (2020-04-20)
parents 8efe024dc99f
children 2a0479881723
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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 export CC=gcc-83
23 export CXX=g++-83
24 export LDFLAGS="$LDFLAGS -latomic"
26 cmake -DCMAKE_INSTALL_PREFIX=/usr &&
27 make &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 [ -s $1/etc/rcS.conf ] &&
44 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
45 *\ snd-pcm-oss\ *) ;;
46 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf ;;
47 esac
48 [ "$1" ] || modprobe snd-pcm-oss 2> /dev/null || true
49 }