wok-next annotate rtaudio/receipt @ rev 20496
Packages with tag "Xfce": fix (b)deps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 14 17:14:32 2018 +0200 (2018-03-14) |
parents | fb478984fbc8 |
children | d5aab818505e |
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)" |
pankso@13565 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15593 | 8 LICENSE="MIT" |
al@20463 | 9 WEB_SITE="http://www.music.mcgill.ca/~gary/rtaudio/" |
al@20463 | 10 |
pankso@13565 | 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@20463 | 15 SPLIT="rtaudio-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 && |
pascal@18424 | 23 make -j 1 |
pankso@13565 | 24 # Python bindings --> rtaudio-python ?? |
pankso@13565 | 25 #cd $src/contrib/python/pyrtaudio |
pankso@13565 | 26 #CFLAGS="$CFLAGS -I../../../include" \ |
pankso@13565 | 27 #python setup.py build |
pankso@13565 | 28 #python setup.py install --root="$DESTDIR" |
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 } |