wok view openal/receipt @ rev 25013

updated openal and openal-dev (1.20.1 -> 1.22.0)
author Hans-G?nter Theisgen
date Tue May 17 07:38:28 2022 +0100 (23 months ago)
parents 2a0479881723
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openal"
4 VERSION="1.22.0"
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/"
11 REPOLOGY="openal-soft"
13 SOURCE="openal-soft"
14 TARBALL="$SOURCE-$VERSION.tar.bz2"
15 WGET_URL="${WEB_SITE}$PACKAGE-releases/$TARBALL"
17 DEPENDS="gcc83-lib-base libatomic"
18 BUILD_DEPENDS="cmake gcc83 libatomic"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | \
24 sed '/OpenAL Soft [0-9]/!d;s|.*OpenAL Soft ||;s| is.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export CC=gcc-83
31 export CXX=g++-83
32 export LDFLAGS="$LDFLAGS -latomic"
34 mkdir _build &&
35 cd _build &&
36 cmake .. \
37 -D CMAKE_INSTALL_PREFIX=/usr &&
38 make &&
39 make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/etc/xdg
47 cook_copy_folders bin
48 cook_copy_files *.so*
49 cp -a $src/alsoftrc.sample $fs/etc/xdg/alsoft.conf
50 }
52 # Post install commands for Tazpkg.
53 post_install()
54 {
55 [ -s $1/etc/rcS.conf ] &&
56 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
57 *\ snd-pcm-oss\ *) ;;
58 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf ;;
59 esac
60 [ "$1" ] || modprobe snd-pcm-oss 2> /dev/null || true
61 }