4 VPX_URL
:= http
://storage.googleapis.com
/downloads.webmproject.org
/releases
/webm
/libvpx-
$(VPX_VERSION
).
tar.bz2
6 $(TARBALLS
)/libvpx-
$(VPX_VERSION
).
tar.bz2
:
7 $(call download
,$(VPX_URL
))
9 .sum-vpx
: libvpx-
$(VPX_VERSION
).
tar.bz2
11 libvpx
: libvpx-
$(VPX_VERSION
).
tar.bz2 .sum-vpx
13 $(APPLY
) $(SRC
)/vpx
/libvpx-sysroot.patch
14 $(APPLY
) $(SRC
)/vpx
/libvpx-no-cross.patch
15 $(APPLY
) $(SRC
)/vpx
/libvpx-mac.patch
16 $(APPLY
) $(SRC
)/vpx
/libvpx-ios.patch
21 ifdef HAVE_CROSS_COMPILE
27 VPX_LDFLAGS
:= $(LDFLAGS
)
31 else ifeq ($(ARCH
),i386
)
33 else ifeq ($(ARCH
),mips
)
35 else ifeq ($(ARCH
),ppc
)
37 else ifeq ($(ARCH
),ppc64
)
39 else ifeq ($(ARCH
),sparc
)
41 else ifeq ($(ARCH
),x86_64
)
49 else ifdef HAVE_MACOSX
50 ifeq ($(OSX_VERSION
),10.5)
57 else ifdef HAVE_SOLARIS
59 else ifdef HAVE_WIN64
# must be before WIN32
67 VPX_TARGET
:= generic-gnu
70 VPX_TARGET
:= $(VPX_ARCH
)-$(VPX_OS
)-gcc
75 --enable-runtime-cpu-detect \
78 --disable-unit-tests \
79 --disable-install-bins \
80 --disable-install-docs
83 VPX_CONF
+= --disable-vp8-encoder
--disable-vp9-encoder
87 VPX_CONF
+= --enable-pic
90 VPX_CONF
+= --sdk-path
=$(MACOSX_SDK
)
93 VPX_CONF
+= --sdk-path
=$(IOS_SDK
) --enable-vp8-decoder
--disable-vp8-encoder
--disable-vp9-encoder
95 VPX_LDFLAGS
:= -L
$(IOS_SDK
)/usr
/lib
-isysroot
$(IOS_SDK
) -mtvos-version-min
=9.0
97 VPX_LDFLAGS
:= -L
$(IOS_SDK
)/usr
/lib
-isysroot
$(IOS_SDK
) -miphoneos-version-min
=6.1
99 ifeq ($(ARCH
),aarch64
)
100 VPX_LDFLAGS
+= -arch arm64
102 VPX_LDFLAGS
+= -arch
$(ARCH
)
106 # vpx configure.sh overrides our sysroot and it looks for it itself, and
107 # uses that path to look for the compiler (which we already know)
108 VPX_CONF
+= --sdk-path
=$(shell dirname
$(shell which
$(HOST
)-gcc
))
109 # needed for cpu-features.h
110 VPX_CONF
+= --extra-cflags
="-I $(ANDROID_NDK)/sources/cpufeatures/"
114 cd
$< && LDFLAGS
="$(VPX_LDFLAGS)" CROSS
=$(VPX_CROSS
) .
/configure
--target
=$(VPX_TARGET
) \
115 $(VPX_CONF
) --prefix=$(PREFIX
)
117 cd
$< && ..
/..
/..
/contrib
/src
/pkg-static.sh vpx.
pc
118 cd
$< && $(MAKE
) install