# SliTaz package receipt. PACKAGE="rtaudio" VERSION="5.2.0" CATEGORY="multimedia" SHORT_DESC="Common API for realtime audio input and output (C++ classes)." MAINTAINER="pankso@slitaz.org" LICENSE="MIT" WEB_SITE="https://www.music.mcgill.ca/~gary/rtaudio/" TARBALL="${PACKAGE}-${VERSION}.tar.gz" WGET_URL="${WEB_SITE}release/$TARBALL" DEPENDS="alsa-lib gcc83-lib-base jack-audio-connection-kit" BUILD_DEPENDS="alsa-lib-dev gcc83 jack-audio-connection-kit-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ CC=gcc-83 \ CXX=g++-83 \ --prefix=/usr \ --with-alsa \ --with-jack \ $CONFIGURE_ARGS && make # Python bindings --> rtaudio-python ?? #cd $src/contrib/python/pyrtaudio #CFLAGS="$CFLAGS -I../../../include" \ #python setup.py build #python setup.py install --root="$DESTDIR" echo "Continuing, any error will remine in pkg build..." } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $src/.libs/librtaudio.so* $fs/usr/lib cd $fs/usr/lib ln -s librtaudio.so.$VERSION librtaudio.so.4 }