wok annotate rtaudio/receipt @ rev 25687
updated sc-im (0.8.2 -> 0.8.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 11 14:51:51 2024 +0100 (7 months ago) |
parents | 453c249b6219 |
children | 661d5b83f2a3 |
rev | line source |
---|---|
pankso@13565 | 1 # SliTaz package receipt. |
pankso@13565 | 2 |
pankso@13565 | 3 PACKAGE="rtaudio" |
Hans-G?nter@25290 | 4 VERSION="5.2.0" |
pankso@13565 | 5 CATEGORY="multimedia" |
Hans-G?nter@23620 | 6 SHORT_DESC="Common API for realtime audio input and output (C++ classes)." |
pankso@13565 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15593 | 8 LICENSE="MIT" |
Hans-G?nter@23620 | 9 WEB_SITE="https://www.music.mcgill.ca/~gary/rtaudio/" |
Hans-G?nter@23620 | 10 |
pankso@13565 | 11 TARBALL="${PACKAGE}-${VERSION}.tar.gz" |
Hans-G?nter@23620 | 12 WGET_URL="${WEB_SITE}release/$TARBALL" |
pankso@13565 | 13 |
Hans-G?nter@25290 | 14 DEPENDS="alsa-lib gcc83-lib-base jack-audio-connection-kit" |
Hans-G?nter@25290 | 15 BUILD_DEPENDS="alsa-lib-dev gcc83 jack-audio-connection-kit-dev" |
pankso@13565 | 16 |
pascal@24425 | 17 # What is the latest version available today? |
pascal@24425 | 18 current_version() |
pascal@24425 | 19 { |
pascal@24425 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 21 sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24425 | 22 } |
pascal@24425 | 23 |
pankso@13565 | 24 # Rules to configure and make the package. |
pankso@13565 | 25 compile_rules() |
pankso@13565 | 26 { |
Hans-G?nter@23620 | 27 ./configure \ |
Hans-G?nter@25290 | 28 CC=gcc-83 \ |
Hans-G?nter@25290 | 29 CXX=g++-83 \ |
Hans-G?nter@23620 | 30 --prefix=/usr \ |
Hans-G?nter@23620 | 31 --with-alsa \ |
Hans-G?nter@23620 | 32 --with-jack \ |
pankso@13565 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@25290 | 34 make |
Hans-G?nter@23620 | 35 |
pankso@13565 | 36 # Python bindings --> rtaudio-python ?? |
pankso@13565 | 37 #cd $src/contrib/python/pyrtaudio |
pankso@13565 | 38 #CFLAGS="$CFLAGS -I../../../include" \ |
pankso@13565 | 39 #python setup.py build |
pankso@13565 | 40 #python setup.py install --root="$DESTDIR" |
pankso@13565 | 41 echo "Continuing, any error will remine in pkg build..." |
pankso@13565 | 42 } |
pankso@13565 | 43 |
pankso@13565 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13565 | 45 genpkg_rules() |
pankso@13565 | 46 { |
pankso@13565 | 47 mkdir -p $fs/usr/lib |
Hans-G?nter@23620 | 48 |
Hans-G?nter@23620 | 49 cp -a $src/.libs/librtaudio.so* $fs/usr/lib |
Hans-G?nter@23620 | 50 cd $fs/usr/lib |
Hans-G?nter@25290 | 51 ln -s librtaudio.so.$VERSION librtaudio.so.4 |
pankso@13565 | 52 } |