mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
Ports: Add libsndfile
This commit is contained in:
parent
7d0d44216e
commit
98fd21bf15
2 changed files with 38 additions and 0 deletions
|
@ -170,6 +170,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
|
||||||
| [`libsamplerate`](libsamplerate/) | libsamplerate | 0.2.2 | https://libsndfile.github.io/libsamplerate/ |
|
| [`libsamplerate`](libsamplerate/) | libsamplerate | 0.2.2 | https://libsndfile.github.io/libsamplerate/ |
|
||||||
| [`libsixel`](libsixel/) | libsixel | 1.8.6 | https://github.com/saitoha/libsixel |
|
| [`libsixel`](libsixel/) | libsixel | 1.8.6 | https://github.com/saitoha/libsixel |
|
||||||
| [`libslirp`](libslirp/) | libslirp | 4.7.0 | https://gitlab.freedesktop.org/slirp/libslirp |
|
| [`libslirp`](libslirp/) | libslirp | 4.7.0 | https://gitlab.freedesktop.org/slirp/libslirp |
|
||||||
|
| [`libsndfile`](libsndfile/) | libsndfile | 1.2.2 | https://libsndfile.github.io/libsndfile/ |
|
||||||
| [`libsodium`](libsodium/) | libsodium | 1.0.18 | https://doc.libsodium.org/ |
|
| [`libsodium`](libsodium/) | libsodium | 1.0.18 | https://doc.libsodium.org/ |
|
||||||
| [`libssh2`](libssh2/) | libssh2 | 1.10.0 | https://www.libssh2.org/ |
|
| [`libssh2`](libssh2/) | libssh2 | 1.10.0 | https://www.libssh2.org/ |
|
||||||
| [`libtheora`](libtheora/) | libtheora | 1.1.1 | https://www.theora.org/ |
|
| [`libtheora`](libtheora/) | libtheora | 1.1.1 | https://www.theora.org/ |
|
||||||
|
|
37
Ports/libsndfile/package.sh
Executable file
37
Ports/libsndfile/package.sh
Executable file
|
@ -0,0 +1,37 @@
|
||||||
|
#!/usr/bin/env -S bash ../.port_include.sh
|
||||||
|
port='libsndfile'
|
||||||
|
version='1.2.2'
|
||||||
|
depends=(
|
||||||
|
'flac'
|
||||||
|
'lame'
|
||||||
|
'libmpg123'
|
||||||
|
'libogg'
|
||||||
|
'libopus'
|
||||||
|
'libvorbis'
|
||||||
|
'sqlite'
|
||||||
|
)
|
||||||
|
useconfigure='true'
|
||||||
|
configopts=(
|
||||||
|
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
||||||
|
'-DCMAKE_BUILD_TYPE=Release'
|
||||||
|
'-DBUILD_TESTING=OFF'
|
||||||
|
'-DBUILD_EXAMPLES=OFF'
|
||||||
|
'-DENABLE_CPACK=OFF'
|
||||||
|
'-DENABLE_STATIC_RUNTIME=OFF'
|
||||||
|
'-DBUILD_SHARED_LIBS=ON'
|
||||||
|
)
|
||||||
|
files=(
|
||||||
|
"https://github.com/libsndfile/libsndfile/archive/refs/tags/${version}.tar.gz#ffe12ef8add3eaca876f04087734e6e8e029350082f3251f565fa9da55b52121"
|
||||||
|
)
|
||||||
|
|
||||||
|
configure() {
|
||||||
|
run cmake -G Ninja -B build -S . "${configopts[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
run cmake --build build
|
||||||
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
run cmake --install build
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue