forked from ports/contrib
libsoxr: adopted, cleaned up Pkgfile
This commit is contained in:
parent
674a1a4286
commit
1e78660c7f
@ -12,4 +12,3 @@ lrwxrwxrwx root/root usr/lib/libsoxr.so.0 -> libsoxr.so.0.1.2
|
|||||||
drwxr-xr-x root/root usr/lib/pkgconfig/
|
drwxr-xr-x root/root usr/lib/pkgconfig/
|
||||||
-rw-r--r-- root/root usr/lib/pkgconfig/soxr-lsr.pc
|
-rw-r--r-- root/root usr/lib/pkgconfig/soxr-lsr.pc
|
||||||
-rw-r--r-- root/root usr/lib/pkgconfig/soxr.pc
|
-rw-r--r-- root/root usr/lib/pkgconfig/soxr.pc
|
||||||
drwxr-xr-x root/root usr/share/
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
untrusted comment: verify with /etc/ports/contrib.pub
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
RWSagIOpLGJF36tGq9F//kbgp+Rdq7r3mUwdNZV9EoDbmd796RRjrl4GGsiCOnGdYhJzn3sMWZpK6q84kjFueOdSFGVC2vC0tAQ=
|
RWSagIOpLGJF377t+441ZeU4mO+dogp1fmX/Viy+WVXRDf42J5RC5opKxP5npMp3KZaiwiwhvHZcz7fhyNLF8SWwG5aJCoDA6Q8=
|
||||||
SHA256 (Pkgfile) = 28dbe5fa34c1803dd50498198190d0b60b8762a98d9acdc63b5866a1000b1c01
|
SHA256 (Pkgfile) = c673fb7ae6ea9654ead3d3bde6e1ff70db95afa6fe8db71426554970259c75c8
|
||||||
SHA256 (.footprint) = e3df6a7a6c7e67eda43a1601493e29d219747e75b60864d8d2d5910c92a6e128
|
SHA256 (.footprint) = 108ce942e2b00da2271bd8df3c352c4d2ede9e46a0b2c8392702b99d8a8953bb
|
||||||
SHA256 (soxr-0.1.3-Source.tar.xz) = b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889
|
SHA256 (soxr-0.1.3-Source.tar.xz) = b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
# Description: High quality, one-dimensional sample-rate conversion library
|
# Description: High quality, one-dimensional sample-rate conversion library
|
||||||
# URL: https://sourceforge.net/p/soxr/wiki/Home/
|
# URL: https://sourceforge.net/p/soxr/wiki/Home/
|
||||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
||||||
# Depends on: cmake ffmpeg
|
# Depends on: ffmpeg
|
||||||
|
|
||||||
name=libsoxr
|
name=libsoxr
|
||||||
version=0.1.3
|
version=0.1.3
|
||||||
release=1
|
release=2
|
||||||
source=(https://downloads.sourceforge.net/soxr/soxr-$version-Source.tar.xz)
|
source=(https://downloads.sourceforge.net/soxr/soxr-$version-Source.tar.xz)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
[[ -e /usr/bin/ninja ]] && PKGMK_SOXR+=' -G Ninja'
|
cmake -S soxr-$version-Source -B build -G Ninja \
|
||||||
cmake -S soxr-$version-Source -B build $PKGMK_SOXR \
|
|
||||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
-D CMAKE_BUILD_TYPE=Release \
|
-D CMAKE_BUILD_TYPE=Release \
|
||||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||||
@ -23,8 +22,8 @@ build() {
|
|||||||
-D WITH_PFFFT=ON \
|
-D WITH_PFFFT=ON \
|
||||||
-Wno-dev
|
-Wno-dev
|
||||||
|
|
||||||
cmake --build build
|
ninja -C build -j ${JOBS:-1}
|
||||||
DESTDIR=$PKG cmake --install build
|
DESTDIR=$PKG ninja -C build install
|
||||||
|
|
||||||
rm -r $PKG/usr/share/doc
|
rm -r $PKG/usr/share
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user