wok-next annotate rtaudio/receipt @ rev 21695
updated gob2 (2.0.17 -> 2.0.20)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 30 15:37:32 2020 +0100 (2020-06-30) |
parents | e323d0535e2c |
children |
rev | line source |
---|---|
al@20463 | 1 # SliTaz package receipt v2. |
pankso@13565 | 2 |
pankso@13565 | 3 PACKAGE="rtaudio" |
pankso@13565 | 4 VERSION="4.0.11" |
pankso@13565 | 5 CATEGORY="multimedia" |
al@20463 | 6 SHORT_DESC="Common API for realtime audio input/output (C++ classes)" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15593 | 8 LICENSE="MIT" |
al@20463 | 9 WEB_SITE="http://www.music.mcgill.ca/~gary/rtaudio/" |
al@20463 | 10 |
al@21020 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@13565 | 12 WGET_URL="http://www.music.mcgill.ca/~gary/rtaudio/release/$TARBALL" |
pankso@13565 | 13 |
al@19829 | 14 BUILD_DEPENDS="alsa-lib-dev jack-dev" |
al@21020 | 15 SPLIT="$PACKAGE-dev" |
pankso@13565 | 16 |
al@20463 | 17 compile_rules() { |
pankso@13565 | 18 ./configure \ |
pankso@13565 | 19 --prefix=/usr \ |
pankso@13565 | 20 --with-alsa \ |
pankso@13565 | 21 --with-jack \ |
pankso@13565 | 22 $CONFIGURE_ARGS && |
al@21020 | 23 make -j1 |
pankso@13565 | 24 # Python bindings --> rtaudio-python ?? |
pankso@13565 | 25 #cd $src/contrib/python/pyrtaudio |
pankso@13565 | 26 #CFLAGS="$CFLAGS -I../../../include" \ |
al@21020 | 27 #python -B setup.py build |
al@21020 | 28 #python -B setup.py install --root="$install" |
pankso@13565 | 29 echo "Continuing, any error will remine in pkg build..." |
al@20463 | 30 |
al@20463 | 31 mkdir -p $install/usr/lib |
al@20463 | 32 cp -a $src/librtaudio.so* $install/usr/lib |
al@20463 | 33 ln -s librtaudio.so.$VERSION $install/usr/lib/librtaudio.so.4 |
al@20463 | 34 |
al@20463 | 35 mkdir -p $install/usr/bin $install/usr/include/rtaudio |
al@20463 | 36 cp -a $src/rtaudio-config $install/usr/bin |
al@20463 | 37 cp -a $src/*.h $install/usr/include/rtaudio |
al@20463 | 38 cp -a $src/include/*.h $install/usr/include/rtaudio |
al@20463 | 39 # GCC fix |
al@20463 | 40 sed -i '/inline/ s|;$||' $install/usr/include/rtaudio/RtAudio.h |
pankso@13565 | 41 } |
pankso@13565 | 42 |
al@20463 | 43 genpkg_rules() { |
al@20463 | 44 case $PACKAGE in |
al@20463 | 45 rtaudio) |
al@20463 | 46 copy @std |
al@20463 | 47 DEPENDS="alsa-lib jack" |
al@20463 | 48 ;; |
al@20463 | 49 *-dev) |
al@20463 | 50 copy @dev |
al@20463 | 51 ;; |
al@20463 | 52 esac |
pankso@13565 | 53 } |