blob: f20b927fe26a7e2e27a933fca9c4ddfc85c3a53e (
plain)
1 # Description: High quality, one-dimensional sample-rate conversion library
2 # URL: https://sourceforge.net/p/soxr/wiki/Home/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: cmake ffmpeg
5
6 name=libsoxr
7 version=0.1.3
8 release=1
9 source=(https://downloads.sourceforge.net/soxr/soxr-$version-Source.tar.xz)
10
11 build() {
12 [[ -e /usr/bin/ninja ]] && PKGMK_SOXR_OPTIONS=' -GNinja'
13 cmake -Hsoxr-$version-Source -Bbuild $PKGMK_SOXR_OPTIONS \
14 -DCMAKE_INSTALL_PREFIX=/usr \
15 -DCMAKE_BUILD_TYPE=Release \
16 -DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
17 -DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
18 -Wno-dev \
19 -DBUILD_EXAMPLES='OFF' \
20 -DBUILD_SHARED_LIBS='ON' \
21 -DWITH_AVFFT='ON' \
22 -DWITH_LSR_BINDINGS='ON' \
23 -DWITH_OPENMP='ON' \
24 -DWITH_PFFFT='ON'
25
26 cmake --build build
27 DESTDIR=$PKG cmake --install build
28
29 rm -r $PKG/usr/share/doc
30 }
|