]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Makefile.ffmpeg: override --host for i686
authorJaroslav Kysela <perex@perex.cz>
Sat, 26 Mar 2016 20:16:02 +0000 (21:16 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 26 Mar 2016 20:16:02 +0000 (21:16 +0100)
Makefile.ffmpeg

index 9ead3b85e759308cb9dab97197fa6f32b1610f46..cd224dfdf148d283872c26070900eb29317c4ca4 100644 (file)
@@ -324,6 +324,12 @@ endif
 
 ifeq (yes,$(CONFIG_LIBTHEORA_STATIC))
 
+ifeq (,$(LIBTHEORA_HOST))
+ifneq (,$(FFMPEG_HOST))
+LIBTHEORA_HOST := --host=$(FFMPEG_HOST)
+endif
+endif
+
 $(LIB_ROOT)/$(LIBTHEORA)/.tvh_download:
        $(call DOWNLOAD,$(LIBTHEORA_URL),$(LIB_ROOT)/$(LIBTHEORA_TB),$(LIBTHEORA_SHA1))
        $(call UNTAR,$(LIBTHEORA_TB),z)
@@ -335,7 +341,8 @@ $(LIB_ROOT)/$(LIBTHEORA)/.tvh_build: \
                $(LIB_ROOT)/$(LIBTHEORA)/.tvh_download
        cd $(LIB_ROOT)/$(LIBTHEORA) && $(CONFIGURE) \
                --with-ogg=$(EPREFIX) \
-               --disable-examples
+               --disable-examples \
+               $(LIBTHEORA_HOST)
        DESTDIR=$(EBUILDIR) \
                $(MAKE) -C $(LIB_ROOT)/$(LIBTHEORA) install
        @touch $@