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