forked from ports/compat-32
27 lines
764 B
Plaintext
27 lines
764 B
Plaintext
# Description: Sound sample rate conversion library.
|
|
# URL: https://libsndfile.github.io/libsamplerate/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: cmake libsndfile-32
|
|
|
|
name=libsamplerate-32
|
|
version=0.2.2
|
|
release=1
|
|
source=(https://github.com/libsndfile/libsamplerate/releases/download/$version/libsamplerate-$version.tar.xz)
|
|
|
|
build() {
|
|
prt-get isinst ninja && PKGMK_LSR+=' -G Ninja'
|
|
|
|
cmake -S libsamplerate-$version -B build $PKGMK_LSR \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib32 \
|
|
-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
|
|
|
|
rm -r $PKG/usr/share/doc $PKG/usr/include
|
|
rmdir $PKG/usr/share
|
|
}
|