summaryrefslogtreecommitdiff
path: root/libsoxr/Pkgfile
blob: 00b6f296319698415607929debe8076c7f0e905c (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+=' -G Ninja'
   13 	cmake -S soxr-$version-Source -B build $PKGMK_SOXR \
   14 		-D CMAKE_INSTALL_PREFIX=/usr \
   15 		-D CMAKE_BUILD_TYPE=Release \
   16 		-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   17 		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   18 		-D BUILD_EXAMPLES=OFF \
   19 		-D BUILD_SHARED_LIBS=ON \
   20 		-D WITH_AVFFT=ON \
   21 		-D WITH_LSR_BINDINGS=ON \
   22 		-D WITH_OPENMP=ON \
   23 		-D WITH_PFFFT=ON \
   24 		-Wno-dev
   25 
   26 	cmake --build build
   27 	DESTDIR=$PKG cmake --install build
   28 
   29 	rm -r $PKG/usr/share/doc
   30 }

Generated by cgit