master chld/ports-heresy / lib / libvpx / ndmake.sh
 1#!/bin/sh -ue
 2NAME=libvpx
 3VERSION=1.15.2
 4RELEASE=1
 5SOURCE="https://github.com/webmproject/libvpx/archive/v${VERSION}.tar.gz
 6	configure-sh.patch"
 7
 8prebuild() {
 9	sed 's/perl/:/g;s/diff --version/command -v diff/g' configure > _
10	mv -f _ configure
11	chmod +x configure
12}
13
14build() {
15	./configure \
16		--prefix="$PREFIX" \
17		--disable-shared \
18		--enable-static \
19		--enable-vp8 \
20		--enable-vp9 \
21		--enable-experimental \
22		--enable-runtime-cpu-detect \
23		--disable-postproc \
24		--enable-pic \
25		--disable-tools \
26		--disable-examples \
27		--disable-docs \
28		--disable-unit-tests \
29		--disable-install-docs \
30		--disable-install-srcs \
31		--disable-install-bins \
32		--as=nasm
33	gmake -j"$NPROC"
34	gmake DESTDIR="$PKG" install
35}
36
37. ${0%/*}/../../libsh/libdmake.sh