2018-07-22 13:13:17 +02:00
|
|
|
# Description: Time-stretching and pitch-shifting audio library and utility.
|
|
|
|
# URL: https://www.breakfastquay.com/rubberband/
|
2023-07-23 17:01:44 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-04-01 14:54:23 +02:00
|
|
|
# Depends on: fftw libsamplerate vamp-plugin-sdk
|
2023-07-23 17:01:44 +02:00
|
|
|
# Optional: ladspa libogg libvorbis openjdk17-jdk opus
|
2018-07-22 13:13:17 +02:00
|
|
|
|
|
|
|
name=rubberband
|
2023-04-29 20:37:57 +02:00
|
|
|
version=3.2.1
|
2018-07-22 13:13:17 +02:00
|
|
|
release=1
|
2023-07-23 17:01:44 +02:00
|
|
|
source=(https://github.com/breakfastquay/rubberband/archive/v$version/$name-v$version.tar.gz)
|
2018-07-22 13:13:17 +02:00
|
|
|
|
|
|
|
build() {
|
2023-07-23 17:01:44 +02:00
|
|
|
if prt-get isinst openjdk17-jdk; then
|
|
|
|
export PKGMK_RUBBERBAND+=" -D extra_include_dirs=/usr/lib/java/openjdk17-jdk/include,/usr/lib/java/openjdk17-jdk/include/linux"
|
|
|
|
export JAVA_HOME=/usr/lib/java/openjdk17-jdk
|
|
|
|
export PATH+=":$JAVA_HOME/bin"
|
|
|
|
fi
|
2018-07-22 13:13:17 +02:00
|
|
|
|
2023-07-23 17:01:44 +02:00
|
|
|
meson setup build $name-$version $PKGMK_RUBBERBAND \
|
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
-D fft=fftw \
|
|
|
|
-D resampler=libsamplerate
|
2018-07-22 13:13:17 +02:00
|
|
|
|
2023-07-23 17:01:44 +02:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2018-07-22 13:13:17 +02:00
|
|
|
}
|