]> git.armaanb.net Git - asd-repo.git/blobdiff - junk/x264/build
mpv: move to junk
[asd-repo.git] / junk / x264 / build
diff --git a/junk/x264/build b/junk/x264/build
new file mode 100755 (executable)
index 0000000..350f644
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+export CC="${CC:-cc}"
+export CXX="${CC:-c++}"
+
+sed -i '/cltostr/d' Makefile
+patch -p1 < x264-no-bash.patch
+
+./configure \
+    --prefix=/usr \
+    --disable-swscale \
+    --enable-static \
+    --enable-pic \
+    --enable-shared \
+    --disable-opencl
+
+gmake
+gmake DESTDIR="$1" install