summaryrefslogtreecommitdiff
path: root/data/vpx/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/vpx/make.sh')
-rw-r--r--data/vpx/make.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/data/vpx/make.sh b/data/vpx/make.sh
new file mode 100644
index 000000000..4a90b84fd
--- /dev/null
+++ b/data/vpx/make.sh
@@ -0,0 +1,17 @@
+pkg:setup
+
+# Should make patches, but these are imported from my stuff. meh.
+sed -i '/die \"--enable-shared/c\true/' configure # This one skips a check
+sed -i 's/arm64-darwin-gcc/aarch64-darwin-gcc/' configure # This one bypasses xcrun usage.
+
+# Instead of using xcrun, just set env
+export CC=${PKG_TARG}-gcc
+export CXX=${PKG_TARG}-g++
+export LD=${CC}
+export AR=${PKG_TARG}-ar
+export RANLIB=${PKG_TARG}-ranlib
+
+mkdir macbuild && cd macbuild
+ ../configure --prefix=/usr --target=aarch64-darwin-gcc
+ make
+ pkg:install