ref: 204f2bbcf45dfda4cdfda322153b7b31ea63f167
parent: db8bb1cf65a89e025244786c70ba5fc76d9e3fc3
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Wed Nov 4 10:39:14 EST 2020
provide an easier to use install script
--- a/README.md
+++ b/README.md
@@ -23,18 +23,9 @@
Install [git9](https://github.com/oridb/git9), then:
cd /tmp
- git/clone https://git.sr.ht/~ft/dav1d
- git/clone https://git.sr.ht/~ft/faad2
- git/clone https://git.sr.ht/~ft/h264bsd
- git/clone https://git.sr.ht/~ft/libvpx
- git/clone https://git.sr.ht/~ft/mcfs
git/clone https://git.sr.ht/~ft/treason
- cd libvpx && mk
- cd ../dav1d/src && mk
- cd ../../h264bsd/src && mk install
- cd ../../treason && mk install
- cd ../mcfs && mk install
- cd ../faad2/libfaad && mk install && cd ../frontend && mk install
+ cd treason
+ ./install.rc
For opus decoding see [adding opus support to 9front](http://nopenopenope.net/posts/audcomp)
(scroll down on the post).
--- /dev/null
+++ b/install.rc
@@ -1,0 +1,70 @@
+#!/bin/rc
+rfork ne
+flag e +
+
+cd ..
+
+test -d dav1d || { hget https://git.sr.ht/~ft/dav1d/archive/master.tar.gz | tar xz && \
+ mv dav1d-master dav1d && \
+ cd dav1d/src && \
+ mk && \
+ cd ../../
+}
+
+test -d faad2-master || { hget https://git.sr.ht/~ft/faad2/archive/master.tar.gz | tar xz && \
+ cd faad2-master/libfaad && \
+ mk install && \
+ cd ../frontend && \
+ mk install && \
+ cd ../..
+}
+
+test -d h264bsd || { hget https://git.sr.ht/~ft/h264bsd/archive/master.tar.gz | tar xz && \
+ mv h264bsd-master h264bsd && \
+ cd h264bsd/src && \
+ mk && \
+ cd ../..
+}
+
+test -d libvpx || { hget https://git.sr.ht/~ft/libvpx/archive/master.tar.gz | tar xz && \
+ mv libvpx-master libvpx && \
+ cd libvpx && \
+ mk && \
+ cd ..
+}
+
+test -d mcfs-master || { hget https://git.sr.ht/~ft/mcfs/archive/master.tar.gz | tar xz && \
+ cd mcfs-master && \
+ mk install && \
+ cd ..
+}
+
+test -d opus || { hget https://github.com/xiph/opus/archive/master.tar.gz | tar xz && \
+ mv opus-master opus
+}
+
+test -d libopusenc || { hget https://github.com/xiph/libopusenc/archive/master.tar.gz | tar xz && \
+ mv libopusenc-master libopusenc
+}
+
+test -d opusfile || { hget https://github.com/xiph/opusfile/archive/master.tar.gz | tar xz && \
+ mv opusfile-master opusfile
+}
+
+test -d opus-tools || { hget https://github.com/xiph/opus-tools/archive/master.tar.gz | tar xz && \
+ mv opus-tools-master opus-tools
+}
+
+test -d alienpatch || { hget https://github.com/qwx9/alienpatch/archive/master.tar.gz | tar xz && \
+ mv alienpatch-master alienpatch && \
+ for(i in opus libopusenc opusfile opus-tools) { \
+ cd $i; \
+ ape/patch -p0 <../alienpatch/$i || echo failed; \
+ mk install; \
+ cd ..; \
+ }
+}
+
+cd treason && \
+ mk install && \
+ rm -rf ../^(dav1d faad2-master h264bsd libvpx mcfs-master opus libopusenc opusfile opus-tools alienpatch)