DIR := $(dir $(lastword $(MAKEFILE_LIST)))
include $(DIR)/.config.mk
+ifneq (,$(filter i386 i486 i586 i686 pentium,$(ARCH)))
+FFMPEG_TARGET := $(ARCH)-linux-gnu
+endif
+
unexport CFLAGS
unexport LDFLAGS
endif
ifeq (,$(LIBX264_HOST))
-ifneq (,$(filter i386 i486 i586 i686 pentium,$(ARCH)))
-LIBX264_HOST := --host=$(ARCH)-linux-gnu
+ifneq (,$(FFMPEG_TARGET))
+LIBX264_HOST := --host=$(FFMPEG_TARGET)
endif
endif
ifeq (yes,$(CONFIG_LIBVPX_STATIC))
+ifneq (,$(FFMPEG_TARGET))
+LIBVPX_TARGET := --target=$(FFMPEG_TARGET)
+endif
+
$(LIB_ROOT)/$(LIBVPX)/.tvh_download:
$(call DOWNLOAD,$(LIBVPX_URL),$(LIB_ROOT)/$(LIBVPX_TB),$(LIBVPX_SHA1))
$(call UNTAR,$(LIBVPX_TB),j)
cd $(LIB_ROOT)/$(LIBVPX) && $(CONFIGURE) \
--disable-examples \
--disable-docs \
- --disable-unit-tests
+ --disable-unit-tests \
+ $(LIBVPX_TARGET)
DIST_DIR=$(EPREFIX) \
$(MAKE) -C $(LIB_ROOT)/$(LIBVPX) install
@touch $@