4 VPX_URL := http://webm.googlecode.com/files/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-no-cross.patch
14 $(APPLY) $(SRC)/vpx/libvpx-no-abi.patch
15 $(APPLY) $(SRC)/vpx/libvpx-win64.patch
20 ifdef HAVE_CROSS_COMPILE
28 else ifeq ($(ARCH),i386)
30 #DEPS_vpx += yasm $(DEPS_yasm)
31 else ifeq ($(ARCH),mips)
33 else ifeq ($(ARCH),ppc)
35 else ifeq ($(ARCH),ppc64)
37 else ifeq ($(ARCH),sparc)
39 else ifeq ($(ARCH),x86_64)
41 #DEPS_vpx += yasm $(DEPS_yasm)
46 else ifdef HAVE_MACOSX
52 else ifdef HAVE_SOLARIS
54 else ifdef HAVE_WIN64 # must be before WIN32
60 VPX_TARGET := generic-gnu
63 VPX_TARGET := $(VPX_ARCH)-$(VPX_OS)-gcc
68 --enable-runtime-cpu-detect \
69 --disable-install-bins \
70 --disable-install-srcs \
71 --disable-install-libs \
72 --disable-install-docs \
76 VPX_CONF += --enable-pic
80 cd $< && CROSS=$(VPX_CROSS) ./configure --target=$(VPX_TARGET) \
82 cd $< && $(MAKE) install
83 rm -Rf -- "$(PREFIX)/include/vpx/"
84 mkdir -p -- "$(PREFIX)/include/vpx/"
85 # Of course! Why the hell would it be listed or in make install?
86 cp $</vpx/*.h $</vpx_ports/*.h "$(PREFIX)/include/vpx/"
87 rm -f -- "$(PREFIX)/include/vpx/config.h"
89 # Of course! Why the hell would it be listed or in make install?
90 install -D -- $</libvpx.a "$(PREFIX)/lib/libvpx.a"