diff options
author | Tim Biermann <tbier@posteo.de> | 2021-09-09 12:39:57 +0200 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2021-09-09 12:52:48 +0200 |
commit | 377e19540a6644abc60e19d2283c60f4f1f383ca (patch) | |
tree | 4046e430343c2a5496e745e8aee5ec52aadaf4a3 /libsamplerate/Pkgfile | |
parent | 737baa7f197b15765ff8b7859e1d4e8387cc07f3 (diff) | |
download | contrib-377e19540a6644abc60e19d2283c60f4f1f383ca.tar.gz contrib-377e19540a6644abc60e19d2283c60f4f1f383ca.tar.xz |
[notify] libsamplerate: 0.2.1 -> 0.2.2; new dependency: cmake; check revdep afterwards to be safe
Diffstat (limited to 'libsamplerate/Pkgfile')
-rw-r--r-- | libsamplerate/Pkgfile | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/libsamplerate/Pkgfile b/libsamplerate/Pkgfile index 18e89c9fd..0abc8cee1 100644 --- a/libsamplerate/Pkgfile +++ b/libsamplerate/Pkgfile @@ -1,21 +1,26 @@ # Description: Sound sample rate conversion library. # URL: https://libsndfile.github.io/libsamplerate/ # Maintainer: Danny Rawlins, crux at romster dot me -# Depends on: libsndfile -# Optional: fftw +# Depends on: cmake libsndfile +# Optional: fftw ninja name=libsamplerate -version=0.2.1 +version=0.2.2 release=1 -source=(https://github.com/libsndfile/libsamplerate/releases/download/$version/$name-$version.tar.bz2) +source=(https://github.com/libsndfile/libsamplerate/releases/download/$version/$name-$version.tar.xz) build() { - cd $name-$version + prt-get isinst ninja && PKGMK_LSR+=' -G Ninja' - ./configure --prefix=/usr - make - make DESTDIR=$PKG install + 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 - rm -r $PKG/usr/share/doc - rmdir $PKG/usr/share + rm -r $PKG/usr/share } |