wok-6.x annotate openal/receipt @ rev 23564
updated python-sphinx (0.6.3 -> 1.8.5)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 07 08:16:27 2020 +0100 (2020-04-07) |
parents | f59250a6e10d |
children | 8efe024dc99f |
rev | line source |
---|---|
pascal@3904 | 1 # SliTaz package receipt. |
pascal@3904 | 2 |
pascal@3904 | 3 PACKAGE="openal" |
Hans-G?nter@23259 | 4 VERSION="1.20.1" |
pascal@3904 | 5 CATEGORY="multimedia" |
Hans-G?nter@23259 | 6 TAGS="multimedia audio sound 3D" |
pascal@3904 | 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@23259 | 11 |
Hans-G?nter@23259 | 12 SOURCE="openal-soft" |
slaxemulator@5409 | 13 TARBALL="$SOURCE-$VERSION.tar.bz2" |
Hans-G?nter@23259 | 14 WGET_URL="${WEB_SITE}$PACKAGE-releases/$TARBALL" |
Hans-G?nter@23259 | 15 |
Hans-G?nter@23259 | 16 DEPENDS="gcc83-lib-base" |
Hans-G?nter@23259 | 17 BUILD_DEPENDS="cmake gcc83" |
pascal@3904 | 18 |
pascal@3904 | 19 # Rules to configure and make the package. |
pascal@3904 | 20 compile_rules() |
pascal@3904 | 21 { |
Hans-G?nter@23259 | 22 export CC=gcc-83 |
Hans-G?nter@23259 | 23 export CXX=g++-83 |
Hans-G?nter@23259 | 24 |
Hans-G?nter@23259 | 25 cmake -DCMAKE_INSTALL_PREFIX=/usr && |
pascal@3904 | 26 make && |
gokhlayeh@8774 | 27 make install |
pascal@3904 | 28 } |
pascal@3904 | 29 |
pascal@3904 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3904 | 31 genpkg_rules() |
pascal@3904 | 32 { |
pascal@3904 | 33 mkdir -p $fs/usr/lib |
Hans-G?nter@23259 | 34 |
Hans-G?nter@23259 | 35 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23259 | 36 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@3904 | 37 } |
pascal@21785 | 38 |
pascal@21785 | 39 # Pre and post install commands for Tazpkg. |
pascal@21785 | 40 post_install() |
pascal@21785 | 41 { |
pascal@21789 | 42 [ -s $1/etc/rcS.conf ] && |
pascal@21785 | 43 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in |
Hans-G?nter@23259 | 44 *\ snd-pcm-oss\ *) ;; |
Hans-G?nter@23259 | 45 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf ;; |
pascal@21785 | 46 esac |
pascal@21789 | 47 [ "$1" ] || modprobe snd-pcm-oss 2> /dev/null || true |
pascal@21785 | 48 } |