summaryrefslogtreecommitdiff
path: root/data/vpx/make.sh
blob: 4a90b84fd1e69bad5e224517bc8c2cacc1fe6eb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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