]> Cypherpunks repositories - bass.git/commitdiff
Build SoX with libao
authorSergey Matveev <stargrave@stargrave.org>
Fri, 21 Jun 2024 12:24:09 +0000 (15:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 21 Jun 2024 12:24:09 +0000 (15:24 +0300)
build/distfiles/.gitignore
build/distfiles/libao-1.2.0.tar.gz.meta4 [new file with mode: 0644]
build/skel/audio/libao-1.2.0.do [new file with mode: 0644]
build/skel/audio/sox-14.4.2.do

index ac21aa9d09079448ac0a74beafdd4bea8f869d5dd8356989c73d7981524a3eda..e13de9fb927a797976b26c71c040fc61b5de80e2f8510cca3f80c321926cf3d5 100644 (file)
@@ -82,6 +82,7 @@
 /lame-3.100.tar.gz
 /less-643.tar.gz
 /lftp-4.9.2.tar.xz
+/libao-1.2.0.tar.gz
 /libassuan-2.5.7.tar.bz2
 /libavif-v1.0.0-535-g7fbc20c.tar.zst
 /libavif.git/
diff --git a/build/distfiles/libao-1.2.0.tar.gz.meta4 b/build/distfiles/libao-1.2.0.tar.gz.meta4
new file mode 100644 (file)
index 0000000..58891ec
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metalink xmlns="urn:ietf:params:xml:ns:metalink">
+  <file name="libao-1.2.0.tar.gz">
+    <hash type="blake3-256">592618475bd544b870ee6df3ad25715634cbe4495de8b28cec50bcc8d4a9c4d6</hash>
+    <hash type="blake2b-512">6f6c09b5236711fccc1000292338fdebf24262b12f8d97394cdc4b66ba4a56ad4e794c107137e79ed2ec603fed506896f1ba1c4444923e566fdeed311bb5b75a</hash>
+    <hash type="blake2b-256">74529e7f40641052c66af50c0df6f9090fa598678d7899a8d738dcb169d488bf</hash>
+    <hash type="skein-512">76a4ceeda0931b9e6dd572b91dfc36ac2d86efb95a4ede722efb6b032b92065ef698257221f7f5afe47f6b985d5b2bfef14deadc7e9c9f83711e00fed3a0d02c</hash>
+    <hash type="shake128">8ab29e80aeb4a2aa61743fea9540e43eb8d3e3e9df861211be1153106affccbb</hash>
+    <hash type="shake256">4c16bbe16613f9a897a3be346348b94f56b0bcff16a28e9c500c380f79b428b68833c74b0fb029794cdabd84286df9f4a4f0360b448c602ed03c06983421d3bd</hash>
+    <hash type="sha-512">9456953826c188d67129ad78366bb86d6243499f2cd340d20d61366f7e40a33f3f8ab601c7f18ce9e24aa22f898093b482b2415b7e428c1486ef7e5ac27b3ee4</hash>
+    <hash type="sha-256">03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf</hash>
+    <hash type="streebog-512">acd60d5a0a185f556150dc716be3528cb8907617f6350827b2491e703a43546d0c16ead0dc15e72bc1b5a96e270e0b272006c3c166e6395183d2f8fe450bc8fa</hash>
+    <hash type="streebog-256">5a239c3ad8f460e456d66156fc2568901df934d476f968fd839df183e8498bfc</hash>
+    <hash type="xxh3-128">b34eabe9deae88ca5cf67fa525c39ebf</hash>
+    <size>464596</size>
+    <url>http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz</url>
+  </file>
+</metalink>
diff --git a/build/skel/audio/libao-1.2.0.do b/build/skel/audio/libao-1.2.0.do
new file mode 100644 (file)
index 0000000..da861c3
--- /dev/null
@@ -0,0 +1,20 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../../../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+. "$BASS_ROOT"/build/skel/common.rc
+
+bdeps="rc-paths stow archivers/zstd devel/pkgconf-2.1.1"
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.gz
+hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
+. "$BASS_ROOT"/build/lib/create-tmp-for-build.rc
+"$BASS_ROOT"/build/bin/pkg-inst $bdeps
+. ./rc
+$TAR xf "$DISTFILES"/$NAME.tar.gz
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd $NAME
+./configure --prefix="$SKELBINS"/$ARCH/$NAME-$hsh --enable-static >&2
+make -j$MAKE_JOBS >&2
+make install >&2
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh
index bfa6087c214e0aaa09fb5592e1bc669861820fff374e99d38c16a57b2bc546b2..210673ea86d924142e783222ac1d746467e6a4f8592508beaabff5ecad60c639 100644 (file)
@@ -3,7 +3,7 @@ sname=$1.do . "$BASS_ROOT"/lib/rc
 . "$BASS_ROOT"/build/skel/common.rc
 
 bdeps="rc-paths stow archivers/zstd devel/pkgconf-2.1.1"
-rdeps="audio/libsndfile-1.0.31 graphics/libpng-1.6.43"
+rdeps="audio/libsndfile-1.0.31 graphics/libpng-1.6.43 audio/libao-1.2.0"
 redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.bz2 $rdeps
 hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
 . "$BASS_ROOT"/build/lib/create-tmp-for-build.rc