]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Added patch to HDHomerun library to allow cross-compilation
authorvirtualdj <virtualdj@users.noreply.github.com>
Sat, 9 Mar 2019 12:15:45 +0000 (13:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 15 Oct 2019 07:07:23 +0000 (09:07 +0200)
Makefile.hdhomerun
support/patches/hdhomerun.diff [new file with mode: 0644]

index 47ac98afcc2d13fded56d55da5921e0c15c60e4c..ec4712833849452774989a6f2e325f525d90d4e7 100644 (file)
@@ -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 (file)
index 0000000..f4733d0
--- /dev/null
@@ -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