From: virtualdj Date: Sat, 9 Mar 2019 12:15:45 +0000 (+0100) Subject: Added patch to HDHomerun library to allow cross-compilation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a059579ec18132ebf2950ee6c14c098400c0ff8;p=thirdparty%2Ftvheadend.git Added patch to HDHomerun library to allow cross-compilation --- diff --git a/Makefile.hdhomerun b/Makefile.hdhomerun index 47ac98afc..ec4712833 100644 --- a/Makefile.hdhomerun +++ b/Makefile.hdhomerun @@ -48,6 +48,7 @@ LIB_FILES := \ $(LIB_ROOT)/$(LIBHDHR)/.tvh_build \ $(LIB_ROOT)/libhdhomerun/libhdhomerun.a \ $(LIB_ROOT)/libhdhomerun/*.h +LIB_DIFFS := hdhomerun.diff include $(DIR)/Makefile.static @@ -79,6 +80,7 @@ $(LIB_ROOT)/$(LIBHDHR)/.tvh_download: $(call DOWNLOAD,$(LIBHDHR_URL),$(LIB_ROOT)/$(LIBHDHR_TB),$(LIBHDHR_SHA1)) $(call UNTAR,$(LIBHDHR_TB),z) ln -sf libhdhomerun $(LIB_ROOT)/$(LIBHDHR) + $(call PATCH,$(LIBHDHR),$(LIB_DIFFS)) @touch $@ $(LIB_ROOT)/$(LIBHDHR)/.tvh_build: \ diff --git a/support/patches/hdhomerun.diff b/support/patches/hdhomerun.diff new file mode 100644 index 000000000..f4733d0b2 --- /dev/null +++ b/support/patches/hdhomerun.diff @@ -0,0 +1,14 @@ +diff -urN ./Makefile.original ./Makefile +--- ./Makefile.original 2019-03-09 12:11:36.506168804 +0100 ++++ ./Makefile 2019-03-09 12:11:44.490392155 +0100 +@@ -11,8 +11,8 @@ + LIBSRCS += hdhomerun_sock_posix.c + LIBSRCS += hdhomerun_video.c + ++#CC := $(CROSS_COMPILE)gcc ++#STRIP := $(CROSS_COMPILE)strip +-CC := $(CROSS_COMPILE)gcc +-STRIP := $(CROSS_COMPILE)strip + + CFLAGS += -O2 -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter + LDFLAGS += -lpthread