wok-current view openal/receipt @ rev 21785
minetest, openal: add post_install (thanks Rene Rivero)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 21 11:32:27 2019 +0200 (2019-07-21) |
parents | a3886193b324 |
children | 3be8209f2bdf |
line source
1 # SliTaz package receipt.
3 PACKAGE="openal"
4 SOURCE="openal-soft"
5 VERSION="1.16.0"
6 CATEGORY="multimedia"
7 SHORT_DESC="cross-platform 3D audio API."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="LGPL2"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.openal.org/"
12 WGET_URL="http://www.openal-soft.org/openal-releases/$TARBALL"
13 BUILD_DEPENDS="cmake"
14 TAGS="multimedia audio sound 3D"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cmake -DCMAKE_INSTALL_PREFIX=/usr
20 make &&
21 make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/lib
28 cp -a $install/usr/bin $fs/usr
29 cp -a $install/usr/lib/*.so* $fs/usr/lib
30 }
32 # Pre and post install commands for Tazpkg.
33 post_install()
34 {
35 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
36 *\ snd-pcm-oss\ *) ;;
37 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss ' $1/etc/rcS.conf
38 modprobe snd-pcm-oss;;
39 esac
40 }