2007-10-24 16:30:03 +10:00
|
|
|
# Description: Sound sample rate conversion library.
|
2021-01-31 20:35:47 +11:00
|
|
|
# URL: https://libsndfile.github.io/libsamplerate/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-09-09 12:39:57 +02:00
|
|
|
# Depends on: cmake libsndfile
|
|
|
|
# Optional: fftw ninja
|
2007-10-24 16:30:03 +10:00
|
|
|
|
|
|
|
name=libsamplerate
|
2021-09-09 12:39:57 +02:00
|
|
|
version=0.2.2
|
2007-10-24 16:30:03 +10:00
|
|
|
release=1
|
2021-09-09 12:39:57 +02:00
|
|
|
source=(https://github.com/libsndfile/libsamplerate/releases/download/$version/$name-$version.tar.xz)
|
2007-10-24 16:30:03 +10:00
|
|
|
|
|
|
|
build() {
|
2021-09-09 12:39:57 +02:00
|
|
|
prt-get isinst ninja && PKGMK_LSR+=' -G Ninja'
|
2007-10-24 16:30:03 +10:00
|
|
|
|
2021-09-09 12:39:57 +02:00
|
|
|
cmake -S $name-$version -B build $PKGMK_LSR \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D BUILD_SHARED_LIBS=ON \
|
|
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2011-10-29 02:17:12 +11:00
|
|
|
|
2021-09-09 12:39:57 +02:00
|
|
|
rm -r $PKG/usr/share
|
2007-10-24 16:30:03 +10:00
|
|
|
}
|