wok-current annotate openal/receipt @ rev 23644
openal: added LDFLAGS
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 20 13:36:35 2020 +0100 (2020-04-20) |
parents | 45041bf06ff9 |
children | 1d73c3f56c7b |
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@23644 | 24 export LDFLAGS="$LDFLAGS -latomic" |
Hans-G?nter@23259 | 25 |
Hans-G?nter@23259 | 26 cmake -DCMAKE_INSTALL_PREFIX=/usr && |
pascal@3904 | 27 make && |
gokhlayeh@8774 | 28 make install |
pascal@3904 | 29 } |
pascal@3904 | 30 |
pascal@3904 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3904 | 32 genpkg_rules() |
pascal@3904 | 33 { |
pascal@3904 | 34 mkdir -p $fs/usr/lib |
Hans-G?nter@23259 | 35 |
Hans-G?nter@23259 | 36 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23259 | 37 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@3904 | 38 } |
pascal@21785 | 39 |
pascal@21785 | 40 # Pre and post install commands for Tazpkg. |
pascal@21785 | 41 post_install() |
pascal@21785 | 42 { |
pascal@21789 | 43 [ -s $1/etc/rcS.conf ] && |
pascal@21785 | 44 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in |
Hans-G?nter@23259 | 45 *\ snd-pcm-oss\ *) ;; |
Hans-G?nter@23259 | 46 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf ;; |
pascal@21785 | 47 esac |
pascal@21789 | 48 [ "$1" ] || modprobe snd-pcm-oss 2> /dev/null || true |
pascal@21785 | 49 } |