Skip to contentSkip to conversation

tvheadend: update to 3.9

PATCH In review Koen Kooi 3 participants 6 messages Dec 3, 2014 – Dec 23, 2014

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/1 tvheadend: update to 3.9

Fetch dvbcan tables using bitbake and reenable the config option.

The license file was renamed and now lists the CLA requirement as well.

---
 ...end-specific-LD-CFLAGS-into-a-helper-vari.patch | 115 ++++++++++++++-------
 .../recipes-dvb/tvheadend/tvheadend_git.bb         |  18 ++--
 2 files changed, 92 insertions(+), 41 deletions(-)
meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch +80 -35
index 9dfcce0..cac2b90 100644
@@ -1,4 +1,4 @@
-From 2ee64b359464b48f751683faa5ded3ee8200fe90 Mon Sep 17 00:00:00 2001
+From e56e244f901ae04e8c681c848d06c1b96b67ca58 Mon Sep 17 00:00:00 2001
 From: Koen Kooi <[email protected]>
 Date: Fri, 21 Dec 2012 10:15:42 +0100
 Subject: [PATCH] Move tvheadend specific LD/CFLAGS into a helper variable to
@@ -8,64 +8,109 @@ Signed-off-by: Koen Kooi <[email protected]>
 
 Upstream-Status: Inappropriate [OE specific]
 ---
- Makefile              |   20 ++++++++++----------
- support/configure.inc |    8 ++++----
- 2 files changed, 14 insertions(+), 14 deletions(-)
+ Makefile              | 44 ++++++++++++++++++++++----------------------
+ support/configure.inc |  8 ++++----
+ 2 files changed, 26 insertions(+), 26 deletions(-)
 
 diff --git a/Makefile b/Makefile
-index 8c6b293..daf5f14 100644
+index 9931635..5e4aebf 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -27,12 +27,12 @@ PROG = ${BUILDDIR}/tvheadend
+@@ -27,45 +27,45 @@ PROG    := $(BUILDDIR)/tvheadend
  # Common compiler flags
  #
  
+-CFLAGS  += -g -O2 -Wunused-result
 -CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
--CFLAGS  += -Wmissing-prototypes -fms-extensions
--CFLAGS  += -g -funsigned-char -O2 
+-CFLAGS  += -Wmissing-prototypes
+-CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
 -CFLAGS  += -D_FILE_OFFSET_BITS=64
--CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
--LDFLAGS += -lrt -ldl -lpthread -lm
+-CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
++TVH_CFLAGS  += -g -O2 -Wunused-result
 +TVH_CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
-+TVH_CFLAGS  += -Wmissing-prototypes -fms-extensions
-+TVH_CFLAGS  += -g -funsigned-char -O2 
++TVH_CFLAGS  += -Wmissing-prototypes
++TVH_CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
 +TVH_CFLAGS  += -D_FILE_OFFSET_BITS=64
-+TVH_CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
-+TVH_LDFLAGS += -lrt -ldl -lpthread -lm
++TVH_CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
+ ifeq ($(CONFIG_ANDROID),yes)
+-LDFLAGS += -ldl -lm
++TVH_LDFLAGS += -ldl -lm
+ else
+-LDFLAGS += -ldl -lpthread -lm
++TVH_LDFLAGS += -ldl -lpthread -lm
+ endif
+ ifeq ($(CONFIG_LIBICONV),yes)
+-LDFLAGS += -liconv
++TVH_LDFLAGS += -liconv
+ endif
+ ifeq ($(PLATFORM), darwin)
+-LDFLAGS += -framework CoreServices
++TVH_LDFLAGS += -framework CoreServices
+ else
+ ifeq ($(CONFIG_ANDROID),no)
+-LDFLAGS += -lrt
++TVH_LDFLAGS += -lrt
+ endif
+ endif
  
- #
- # Other config
-@@ -179,8 +179,8 @@ SRCS-${CONFIG_CWC}  += src/ffdecsa/ffdecsa_interface.c \
- 	src/ffdecsa/ffdecsa_int.c
- SRCS-${CONFIG_MMX}  += src/ffdecsa/ffdecsa_mmx.c
- SRCS-${CONFIG_SSE2} += src/ffdecsa/ffdecsa_sse2.c
--${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
--${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
-+${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : TVH_CFLAGS += -mmmx
-+${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : TVH_CFLAGS += -msse2
+ ifeq ($(COMPILER), clang)
+-CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
+-CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
+-CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
++TVH_CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
++TVH_CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
++TVH_CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
+ endif
+ 
+ ifeq ($(CONFIG_LIBFFMPEG_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
+-LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
++TVH_CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
++TVH_LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
+            -lavresample -lswresample -lswscale \
+            -lavutil -lavformat -lavcodec -lavutil \
+            -lvorbisenc -lvorbis -logg -lx264 -lvpx \
+            -Wl,-Bdynamic
+ endif
+ ifeq ($(CONFIG_HDHOMERUN_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
+-LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
++TVH_CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
++TVH_LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
+            -Wl,-Bstatic -lhdhomerun -Wl,-Bdynamic
+ endif
+ 
+@@ -340,8 +340,8 @@ SRCS-yes += src/descrambler/ffdecsa/ffdecsa_interface.c \
+ 	    src/descrambler/ffdecsa/ffdecsa_int.c
+ SRCS-${CONFIG_MMX}  += src/descrambler/ffdecsa/ffdecsa_mmx.c
+ SRCS-${CONFIG_SSE2} += src/descrambler/ffdecsa/ffdecsa_sse2.c
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : TVH_TVH_CFLAGS += -mmmx
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : TVH_TVH_CFLAGS += -msse2
  endif
  
- # File bundles
-@@ -217,12 +217,12 @@ all: ${PROG}
+ # libaesdec
+@@ -402,12 +402,12 @@ reconfigure:
  
  # Binary
- ${PROG}: $(OBJS) $(ALLDEPS)
+ ${PROG}: check_config $(OBJS) $(ALLDEPS)
 -	$(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)
-+	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
++	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
  
  # Object
  ${BUILDDIR}/%.o: %.c
  	@mkdir -p $(dir $@)
--	$(CC) -MD -MP $(CFLAGS) -c -o $@ $(CURDIR)/$<
-+	$(CC) -MD -MP $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $(CURDIR)/$<
+-	$(CC) -MD -MP $(CFLAGS) -c -o $@ $<
++	$(CC) -MD -MP $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $<
  
  # Add-on
  ${BUILDDIR}/%.so: ${SRCS_EXTRA}
 diff --git a/support/configure.inc b/support/configure.inc
-index 0130880..332511e 100644
+index f7cfcd3..e3a2dd7 100755
 --- a/support/configure.inc
 +++ b/support/configure.inc
-@@ -464,8 +464,8 @@ ifeq (\$(origin CC),default)
+@@ -455,8 +455,8 @@ ifeq (\$(origin CC),default)
  CC        = ${CC}
  endif
  PYTHON   ?= ${PYTHON}
@@ -76,10 +121,10 @@ index 0130880..332511e 100644
  prefix    = ${prefix}
  bindir    = ${bindir}
  mandir    = ${mandir}
-@@ -482,8 +482,8 @@ EOF
+@@ -478,8 +478,8 @@ EOF
    # Add package config
    for pkg in ${PACKAGES[*]}; do
-     cat >>${CONFIG_MK} <<EOF
+     cat >>"${CONFIG_MK}" <<EOF
 -LDFLAGS += $(pkg-config --libs $pkg)
 -CFLAGS  += $(pkg-config --cflags $pkg)
 +TVH_LDFLAGS += $(pkg-config --libs $pkg)
@@ -88,5 +133,5 @@ index 0130880..332511e 100644
    done
  
 -- 
-1.7.7.6
+1.9.0
 
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +12 -6
index 65d43c6..8539927 100644
@@ -1,26 +1,32 @@
 SUMMARY = "Tvheadend TV streaming server"
 HOMEPAGE = "https://www.lonelycoder.com/redmine/projects/tvheadend"
 
-DEPENDS = "avahi zlib openssl python-native"
+DEPENDS = "avahi zlib openssl python-native libav"
 
 LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=9eef91148a9b14ec7f9df333daebc746"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"
 
-SRC_URI = "git://github.com/tvheadend/tvheadend.git \
+SRC_URI = "git://github.com/tvheadend/tvheadend.git;name=tvh \
+           git://linuxtv.org/dtv-scan-tables.git;name=dvb;destsuffix=git/data/dvb-scan \
            file://0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch \
 "
-SRCREV = "a420c83a0e0d2c31c2c15d0fec6fedc3f5a36dfe"
-PV = "3.3"
+SRCREV_tvh = "a95ef0b237a01e6fe6a29c0cd76f98a3a216c1ce"
+SRCREV_dvb = "82115b4a1f1039d5a2f93f2b7ddc4b2d2713b7ae"
+SRCREV_FORMAT = "tvh"
+
+PV = "3.9+git${SRCPV}"
 
 S = "${WORKDIR}/git"
 
 do_configure() {
+    # The fetcher ensures the mux list is up to date
+    sed -i -e 's:exit 1:exit 0:g' ${S}/support/getmuxlist
+
     ./configure --prefix=${prefix} \
                 --libdir=${libdir} \
                 --bindir=${bindir} \
                 --datadir=${datadir} \
                 --arch=${TARGET_ARCH} \
-                --disable-dvbscan \
                 --disable-bundle
 }
 
Signature · 1 line
1.9.0
#1 lore raw
Quoted 205 lines · Koen Kooi

Fetch dvbcan tables using bitbake and reenable the config option.

The license file was renamed and now lists the CLA requirement as well.

---
  ...end-specific-LD-CFLAGS-into-a-helper-vari.patch | 115 ++++++++++++++-------
  .../recipes-dvb/tvheadend/tvheadend_git.bb         |  18 ++--
  2 files changed, 92 insertions(+), 41 deletions(-)
meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch +80 -35
index 9dfcce0..cac2b90 100644
@@ -1,4 +1,4 @@
-From 2ee64b359464b48f751683faa5ded3ee8200fe90 Mon Sep 17 00:00:00 2001
+From e56e244f901ae04e8c681c848d06c1b96b67ca58 Mon Sep 17 00:00:00 2001
  From: Koen Kooi <[email protected]>
  Date: Fri, 21 Dec 2012 10:15:42 +0100
  Subject: [PATCH] Move tvheadend specific LD/CFLAGS into a helper variable to
@@ -8,64 +8,109 @@ Signed-off-by: Koen Kooi <[email protected]>
 
  Upstream-Status: Inappropriate [OE specific]
  ---
- Makefile              |   20 ++++++++++----------
- support/configure.inc |    8 ++++----
- 2 files changed, 14 insertions(+), 14 deletions(-)
+ Makefile              | 44 ++++++++++++++++++++++----------------------
+ support/configure.inc |  8 ++++----
+ 2 files changed, 26 insertions(+), 26 deletions(-)
 
  diff --git a/Makefile b/Makefile
-index 8c6b293..daf5f14 100644
+index 9931635..5e4aebf 100644
  --- a/Makefile
  +++ b/Makefile
-@@ -27,12 +27,12 @@ PROG = ${BUILDDIR}/tvheadend
+@@ -27,45 +27,45 @@ PROG    := $(BUILDDIR)/tvheadend
   # Common compiler flags
   #
 
+-CFLAGS  += -g -O2 -Wunused-result
  -CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
--CFLAGS  += -Wmissing-prototypes -fms-extensions
--CFLAGS  += -g -funsigned-char -O2
+-CFLAGS  += -Wmissing-prototypes
+-CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
  -CFLAGS  += -D_FILE_OFFSET_BITS=64
--CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
--LDFLAGS += -lrt -ldl -lpthread -lm
+-CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
++TVH_CFLAGS  += -g -O2 -Wunused-result
  +TVH_CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
-+TVH_CFLAGS  += -Wmissing-prototypes -fms-extensions
-+TVH_CFLAGS  += -g -funsigned-char -O2
++TVH_CFLAGS  += -Wmissing-prototypes
++TVH_CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
  +TVH_CFLAGS  += -D_FILE_OFFSET_BITS=64
-+TVH_CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
-+TVH_LDFLAGS += -lrt -ldl -lpthread -lm
++TVH_CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
+ ifeq ($(CONFIG_ANDROID),yes)
+-LDFLAGS += -ldl -lm
++TVH_LDFLAGS += -ldl -lm
+ else
+-LDFLAGS += -ldl -lpthread -lm
++TVH_LDFLAGS += -ldl -lpthread -lm
+ endif
+ ifeq ($(CONFIG_LIBICONV),yes)
+-LDFLAGS += -liconv
++TVH_LDFLAGS += -liconv
+ endif
+ ifeq ($(PLATFORM), darwin)
+-LDFLAGS += -framework CoreServices
++TVH_LDFLAGS += -framework CoreServices
+ else
+ ifeq ($(CONFIG_ANDROID),no)
+-LDFLAGS += -lrt
++TVH_LDFLAGS += -lrt
+ endif
+ endif
 
- #
- # Other config
-@@ -179,8 +179,8 @@ SRCS-${CONFIG_CWC}  += src/ffdecsa/ffdecsa_interface.c \
- 	src/ffdecsa/ffdecsa_int.c
- SRCS-${CONFIG_MMX}  += src/ffdecsa/ffdecsa_mmx.c
- SRCS-${CONFIG_SSE2} += src/ffdecsa/ffdecsa_sse2.c
--${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
--${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
-+${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : TVH_CFLAGS += -mmmx
-+${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : TVH_CFLAGS += -msse2
+ ifeq ($(COMPILER), clang)
+-CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
+-CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
+-CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
++TVH_CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
++TVH_CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
++TVH_CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
+ endif
+
+ ifeq ($(CONFIG_LIBFFMPEG_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
+-LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
++TVH_CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
++TVH_LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
+            -lavresample -lswresample -lswscale \
+            -lavutil -lavformat -lavcodec -lavutil \
+            -lvorbisenc -lvorbis -logg -lx264 -lvpx \
+            -Wl,-Bdynamic
+ endif
+ ifeq ($(CONFIG_HDHOMERUN_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
+-LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
++TVH_CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
++TVH_LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
+            -Wl,-Bstatic -lhdhomerun -Wl,-Bdynamic
+ endif
+
+@@ -340,8 +340,8 @@ SRCS-yes += src/descrambler/ffdecsa/ffdecsa_interface.c \
+ 	    src/descrambler/ffdecsa/ffdecsa_int.c
+ SRCS-${CONFIG_MMX}  += src/descrambler/ffdecsa/ffdecsa_mmx.c
+ SRCS-${CONFIG_SSE2} += src/descrambler/ffdecsa/ffdecsa_sse2.c
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : TVH_TVH_CFLAGS += -mmmx
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : TVH_TVH_CFLAGS += -msse2
   endif
 
- # File bundles
-@@ -217,12 +217,12 @@ all: ${PROG}
+ # libaesdec
+@@ -402,12 +402,12 @@ reconfigure:
 
   # Binary
- ${PROG}: $(OBJS) $(ALLDEPS)
+ ${PROG}: check_config $(OBJS) $(ALLDEPS)
  -	$(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)
-+	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
++	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
 
   # Object
   ${BUILDDIR}/%.o: %.c
   	@mkdir -p $(dir $@)
--	$(CC) -MD -MP $(CFLAGS) -c -o $@ $(CURDIR)/$<
-+	$(CC) -MD -MP $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $(CURDIR)/$<
+-	$(CC) -MD -MP $(CFLAGS) -c -o $@ $<
++	$(CC) -MD -MP $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $<
 
   # Add-on
   ${BUILDDIR}/%.so: ${SRCS_EXTRA}
  diff --git a/support/configure.inc b/support/configure.inc
-index 0130880..332511e 100644
+index f7cfcd3..e3a2dd7 100755
  --- a/support/configure.inc
  +++ b/support/configure.inc
-@@ -464,8 +464,8 @@ ifeq (\$(origin CC),default)
+@@ -455,8 +455,8 @@ ifeq (\$(origin CC),default)
   CC        = ${CC}
   endif
   PYTHON   ?= ${PYTHON}
@@ -76,10 +121,10 @@ index 0130880..332511e 100644
   prefix    = ${prefix}
   bindir    = ${bindir}
   mandir    = ${mandir}
-@@ -482,8 +482,8 @@ EOF
+@@ -478,8 +478,8 @@ EOF
     # Add package config
     for pkg in ${PACKAGES[*]}; do
-     cat >>${CONFIG_MK} <<EOF
+     cat >>"${CONFIG_MK}" <<EOF
  -LDFLAGS += $(pkg-config --libs $pkg)
  -CFLAGS  += $(pkg-config --cflags $pkg)
  +TVH_LDFLAGS += $(pkg-config --libs $pkg)
@@ -88,5 +133,5 @@ index 0130880..332511e 100644
     done
 
  --
-1.7.7.6
+1.9.0
 
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +6 -5
index 65d43c6..8539927 100644
@@ -1,26 +1,32 @@
  SUMMARY = "Tvheadend TV streaming server"
  HOMEPAGE = "https://www.lonelycoder.com/redmine/projects/tvheadend"
 
-DEPENDS = "avahi zlib openssl python-native"
+DEPENDS = "avahi zlib openssl python-native libav"
 
  LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=9eef91148a9b14ec7f9df333daebc746"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"
 
-SRC_URI = "git://github.com/tvheadend/tvheadend.git \
+SRC_URI = "git://github.com/tvheadend/tvheadend.git;name=tvh \
+           git://linuxtv.org/dtv-scan-tables.git;name=dvb;destsuffix=git/data/dvb-scan \
             file://0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch \
  "
-SRCREV = "a420c83a0e0d2c31c2c15d0fec6fedc3f5a36dfe"
-PV = "3.3"
+SRCREV_tvh = "a95ef0b237a01e6fe6a29c0cd76f98a3a216c1ce"
+SRCREV_dvb = "82115b4a1f1039d5a2f93f2b7ddc4b2d2713b7ae"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb line 24

Quoted 10 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +6 -0
+SRCREV_FORMAT = "tvh"
+
+PV = "3.9+git${SRCPV}"
 
  S = "${WORKDIR}/git"
 
  do_configure() {
+    # The fetcher ensures the mux list is up to date
+    sed -i -e 's:exit 1:exit 0:g' ${S}/support/getmuxlist
+

Why not add a patch to do the modification?

//Hongxu

Quoted 9 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +0 -1
      ./configure --prefix=${prefix} \
                  --libdir=${libdir} \
                  --bindir=${bindir} \
                  --datadir=${datadir} \
                  --arch=${TARGET_ARCH} \
-                --disable-dvbscan \
                  --disable-bundle
  }
 
author
#2 lore raw
Quoted 198 lines

Op 4 dec. 2014, om 02:40 heeft Hongxu Jia <[email protected]> het volgende geschreven:

Quoted 194 lines · Koen Kooi

Fetch dvbcan tables using bitbake and reenable the config option.

The license file was renamed and now lists the CLA requirement as well.

---
 ...end-specific-LD-CFLAGS-into-a-helper-vari.patch | 115 ++++++++++++++-------
 .../recipes-dvb/tvheadend/tvheadend_git.bb         |  18 ++--
 2 files changed, 92 insertions(+), 41 deletions(-)
meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch +79 -33
index 9dfcce0..cac2b90 100644
@@ -1,4 +1,4 @@
-From 2ee64b359464b48f751683faa5ded3ee8200fe90 Mon Sep 17 00:00:00 2001
+From e56e244f901ae04e8c681c848d06c1b96b67ca58 Mon Sep 17 00:00:00 2001
 From: Koen Kooi <[email protected]>
 Date: Fri, 21 Dec 2012 10:15:42 +0100
 Subject: [PATCH] Move tvheadend specific LD/CFLAGS into a helper variable to
@@ -8,64 +8,109 @@ Signed-off-by: Koen Kooi <[email protected]>
   Upstream-Status: Inappropriate [OE specific]
 ---
- Makefile              |   20 ++++++++++----------
- support/configure.inc |    8 ++++----
- 2 files changed, 14 insertions(+), 14 deletions(-)
+ Makefile              | 44 ++++++++++++++++++++++----------------------
+ support/configure.inc |  8 ++++----
+ 2 files changed, 26 insertions(+), 26 deletions(-)
   diff --git a/Makefile b/Makefile
-index 8c6b293..daf5f14 100644
+index 9931635..5e4aebf 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -27,12 +27,12 @@ PROG = ${BUILDDIR}/tvheadend
+@@ -27,45 +27,45 @@ PROG    := $(BUILDDIR)/tvheadend
  # Common compiler flags
  #
  +-CFLAGS  += -g -O2 -Wunused-result
 -CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
--CFLAGS  += -Wmissing-prototypes -fms-extensions
--CFLAGS  += -g -funsigned-char -O2
+-CFLAGS  += -Wmissing-prototypes
+-CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
 -CFLAGS  += -D_FILE_OFFSET_BITS=64
--CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
--LDFLAGS += -lrt -ldl -lpthread -lm
+-CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
++TVH_CFLAGS  += -g -O2 -Wunused-result
 +TVH_CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
-+TVH_CFLAGS  += -Wmissing-prototypes -fms-extensions
-+TVH_CFLAGS  += -g -funsigned-char -O2
++TVH_CFLAGS  += -Wmissing-prototypes
++TVH_CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
 +TVH_CFLAGS  += -D_FILE_OFFSET_BITS=64
-+TVH_CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
-+TVH_LDFLAGS += -lrt -ldl -lpthread -lm
++TVH_CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
+ ifeq ($(CONFIG_ANDROID),yes)
+-LDFLAGS += -ldl -lm
++TVH_LDFLAGS += -ldl -lm
+ else
+-LDFLAGS += -ldl -lpthread -lm
++TVH_LDFLAGS += -ldl -lpthread -lm
+ endif
+ ifeq ($(CONFIG_LIBICONV),yes)
+-LDFLAGS += -liconv
++TVH_LDFLAGS += -liconv
+ endif
+ ifeq ($(PLATFORM), darwin)
+-LDFLAGS += -framework CoreServices
++TVH_LDFLAGS += -framework CoreServices
+ else
+ ifeq ($(CONFIG_ANDROID),no)
+-LDFLAGS += -lrt
++TVH_LDFLAGS += -lrt
+ endif
+ endif
  - #
- # Other config
-@@ -179,8 +179,8 @@ SRCS-${CONFIG_CWC}  += src/ffdecsa/ffdecsa_interface.c \
- 	src/ffdecsa/ffdecsa_int.c
- SRCS-${CONFIG_MMX}  += src/ffdecsa/ffdecsa_mmx.c
- SRCS-${CONFIG_SSE2} += src/ffdecsa/ffdecsa_sse2.c
--${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
--${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
-+${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : TVH_CFLAGS += -mmmx
-+${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : TVH_CFLAGS += -msse2
+ ifeq ($(COMPILER), clang)
+-CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
+-CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
+-CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
++TVH_CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
++TVH_CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
++TVH_CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
+ endif
+
+ ifeq ($(CONFIG_LIBFFMPEG_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
+-LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
++TVH_CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
++TVH_LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
+            -lavresample -lswresample -lswscale \
+            -lavutil -lavformat -lavcodec -lavutil \
+            -lvorbisenc -lvorbis -logg -lx264 -lvpx \
+            -Wl,-Bdynamic
+ endif
+ ifeq ($(CONFIG_HDHOMERUN_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
+-LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
++TVH_CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
++TVH_LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
+            -Wl,-Bstatic -lhdhomerun -Wl,-Bdynamic
+ endif
+
+@@ -340,8 +340,8 @@ SRCS-yes += src/descrambler/ffdecsa/ffdecsa_interface.c \
+ 	    src/descrambler/ffdecsa/ffdecsa_int.c
+ SRCS-${CONFIG_MMX}  += src/descrambler/ffdecsa/ffdecsa_mmx.c
+ SRCS-${CONFIG_SSE2} += src/descrambler/ffdecsa/ffdecsa_sse2.c
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : TVH_TVH_CFLAGS += -mmmx
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : TVH_TVH_CFLAGS += -msse2
  endif
  - # File bundles
-@@ -217,12 +217,12 @@ all: ${PROG}
+ # libaesdec
+@@ -402,12 +402,12 @@ reconfigure:
     # Binary
- ${PROG}: $(OBJS) $(ALLDEPS)
+ ${PROG}: check_config $(OBJS) $(ALLDEPS)
 -	$(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)
-+	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
++	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
     # Object
  ${BUILDDIR}/%.o: %.c
  	@mkdir -p $(dir $@)
--	$(CC) -MD -MP $(CFLAGS) -c -o $@ $(CURDIR)/$<
-+	$(CC) -MD -MP $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $(CURDIR)/$<
+-	$(CC) -MD -MP $(CFLAGS) -c -o $@ $<
++	$(CC) -MD -MP $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $<
     # Add-on
  ${BUILDDIR}/%.so: ${SRCS_EXTRA}
 diff --git a/support/configure.inc b/support/configure.inc
-index 0130880..332511e 100644
+index f7cfcd3..e3a2dd7 100755
 --- a/support/configure.inc
 +++ b/support/configure.inc
-@@ -464,8 +464,8 @@ ifeq (\$(origin CC),default)
+@@ -455,8 +455,8 @@ ifeq (\$(origin CC),default)
  CC        = ${CC}
  endif
  PYTHON   ?= ${PYTHON}
@@ -76,10 +121,10 @@ index 0130880..332511e 100644
  prefix    = ${prefix}
  bindir    = ${bindir}
  mandir    = ${mandir}
-@@ -482,8 +482,8 @@ EOF
+@@ -478,8 +478,8 @@ EOF
    # Add package config
    for pkg in ${PACKAGES[*]}; do
-     cat >>${CONFIG_MK} <<EOF
+     cat >>"${CONFIG_MK}" <<EOF
 -LDFLAGS += $(pkg-config --libs $pkg)
 -CFLAGS  += $(pkg-config --cflags $pkg)
 +TVH_LDFLAGS += $(pkg-config --libs $pkg)
@@ -88,5 +133,5 @@ index 0130880..332511e 100644
    done
    --
-1.7.7.6
+1.9.0
 diff --git a/meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb b/meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb

index 65d43c6..8539927 100644

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +8 -3
@@ -1,26 +1,32 @@
 SUMMARY = "Tvheadend TV streaming server"
 HOMEPAGE = "https://www.lonelycoder.com/redmine/projects/tvheadend"
 -DEPENDS = "avahi zlib openssl python-native"
+DEPENDS = "avahi zlib openssl python-native libav"
   LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=9eef91148a9b14ec7f9df333daebc746"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"
 -SRC_URI = "git://github.com/tvheadend/tvheadend.git \
+SRC_URI = "git://github.com/tvheadend/tvheadend.git;name=tvh \
+           git://linuxtv.org/dtv-scan-tables.git;name=dvb;destsuffix=git/data/dvb-scan \
            file://0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch \
 "
-SRCREV = "a420c83a0e0d2c31c2c15d0fec6fedc3f5a36dfe"
-PV = "3.3"
+SRCREV_tvh = "a95ef0b237a01e6fe6a29c0cd76f98a3a216c1ce"
+SRCREV_dvb = "82115b4a1f1039d5a2f93f2b7ddc4b2d2713b7ae"
+SRCREV_FORMAT = "tvh"
+
Quoted 8 lines

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb line 24

Quoted 6 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +4 -0
+PV = "3.9+git${SRCPV}"
   S = "${WORKDIR}/git"
   do_configure() {
+    # The fetcher ensures the mux list is up to date
+    sed -i -e 's:exit 1:exit 0:g' ${S}/support/getmuxlist
+

Why not add a patch to do the modification?

Less churn when updating the recipe.

Quoted 11 lines

//Hongxu

Quoted 8 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +0 -1
     ./configure --prefix=${prefix} \
                 --libdir=${libdir} \
                 --bindir=${bindir} \
                 --datadir=${datadir} \
                 --arch=${TARGET_ARCH} \
-                --disable-dvbscan \
                 --disable-bundle
 }
#3 lore raw
In reply to Koen Kooi
Quoted 3 lines · Koen Kooi

Fetch dvbcan tables using bitbake and reenable the config option.

The license file was renamed and now lists the CLA requirement as well.

Fails to build for qemux86, check last world build logs.

Quoted 228 lines
---
 ...end-specific-LD-CFLAGS-into-a-helper-vari.patch | 115 ++++++++++++++-------
 .../recipes-dvb/tvheadend/tvheadend_git.bb         |  18 ++--
 2 files changed, 92 insertions(+), 41 deletions(-)
meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch +80 -35
index 9dfcce0..cac2b90 100644
@@ -1,4 +1,4 @@
-From 2ee64b359464b48f751683faa5ded3ee8200fe90 Mon Sep 17 00:00:00 2001
+From e56e244f901ae04e8c681c848d06c1b96b67ca58 Mon Sep 17 00:00:00 2001
 From: Koen Kooi <[email protected]>
 Date: Fri, 21 Dec 2012 10:15:42 +0100
 Subject: [PATCH] Move tvheadend specific LD/CFLAGS into a helper variable to
@@ -8,64 +8,109 @@ Signed-off-by: Koen Kooi <[email protected]>
 
 Upstream-Status: Inappropriate [OE specific]
 ---
- Makefile              |   20 ++++++++++----------
- support/configure.inc |    8 ++++----
- 2 files changed, 14 insertions(+), 14 deletions(-)
+ Makefile              | 44 ++++++++++++++++++++++----------------------
+ support/configure.inc |  8 ++++----
+ 2 files changed, 26 insertions(+), 26 deletions(-)
 
 diff --git a/Makefile b/Makefile
-index 8c6b293..daf5f14 100644
+index 9931635..5e4aebf 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -27,12 +27,12 @@ PROG = ${BUILDDIR}/tvheadend
+@@ -27,45 +27,45 @@ PROG    := $(BUILDDIR)/tvheadend
  # Common compiler flags
  #
 
+-CFLAGS  += -g -O2 -Wunused-result
 -CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
--CFLAGS  += -Wmissing-prototypes -fms-extensions
--CFLAGS  += -g -funsigned-char -O2 
+-CFLAGS  += -Wmissing-prototypes
+-CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
 -CFLAGS  += -D_FILE_OFFSET_BITS=64
--CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
--LDFLAGS += -lrt -ldl -lpthread -lm
+-CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
++TVH_CFLAGS  += -g -O2 -Wunused-result
 +TVH_CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
-+TVH_CFLAGS  += -Wmissing-prototypes -fms-extensions
-+TVH_CFLAGS  += -g -funsigned-char -O2 
++TVH_CFLAGS  += -Wmissing-prototypes
++TVH_CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
 +TVH_CFLAGS  += -D_FILE_OFFSET_BITS=64
-+TVH_CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
-+TVH_LDFLAGS += -lrt -ldl -lpthread -lm
++TVH_CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
+ ifeq ($(CONFIG_ANDROID),yes)
+-LDFLAGS += -ldl -lm
++TVH_LDFLAGS += -ldl -lm
+ else
+-LDFLAGS += -ldl -lpthread -lm
++TVH_LDFLAGS += -ldl -lpthread -lm
+ endif
+ ifeq ($(CONFIG_LIBICONV),yes)
+-LDFLAGS += -liconv
++TVH_LDFLAGS += -liconv
+ endif
+ ifeq ($(PLATFORM), darwin)
+-LDFLAGS += -framework CoreServices
++TVH_LDFLAGS += -framework CoreServices
+ else
+ ifeq ($(CONFIG_ANDROID),no)
+-LDFLAGS += -lrt
++TVH_LDFLAGS += -lrt
+ endif
+ endif
 
- #
- # Other config
-@@ -179,8 +179,8 @@ SRCS-${CONFIG_CWC}  += src/ffdecsa/ffdecsa_interface.c \
- 	src/ffdecsa/ffdecsa_int.c
- SRCS-${CONFIG_MMX}  += src/ffdecsa/ffdecsa_mmx.c
- SRCS-${CONFIG_SSE2} += src/ffdecsa/ffdecsa_sse2.c
--${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
--${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
-+${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : TVH_CFLAGS += -mmmx
-+${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : TVH_CFLAGS += -msse2
+ ifeq ($(COMPILER), clang)
+-CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
+-CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
+-CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
++TVH_CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
++TVH_CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
++TVH_CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
+ endif
+ 
+ ifeq ($(CONFIG_LIBFFMPEG_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
+-LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
++TVH_CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
++TVH_LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
+            -lavresample -lswresample -lswscale \
+            -lavutil -lavformat -lavcodec -lavutil \
+            -lvorbisenc -lvorbis -logg -lx264 -lvpx \
+            -Wl,-Bdynamic
+ endif
+ ifeq ($(CONFIG_HDHOMERUN_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
+-LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
++TVH_CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
++TVH_LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
+            -Wl,-Bstatic -lhdhomerun -Wl,-Bdynamic
+ endif
+ 
+@@ -340,8 +340,8 @@ SRCS-yes += src/descrambler/ffdecsa/ffdecsa_interface.c \
+ 	    src/descrambler/ffdecsa/ffdecsa_int.c
+ SRCS-${CONFIG_MMX}  += src/descrambler/ffdecsa/ffdecsa_mmx.c
+ SRCS-${CONFIG_SSE2} += src/descrambler/ffdecsa/ffdecsa_sse2.c
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : TVH_TVH_CFLAGS += -mmmx
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : TVH_TVH_CFLAGS += -msse2
  endif
 
- # File bundles
-@@ -217,12 +217,12 @@ all: ${PROG}
+ # libaesdec
+@@ -402,12 +402,12 @@ reconfigure:
 
  # Binary
- ${PROG}: $(OBJS) $(ALLDEPS)
+ ${PROG}: check_config $(OBJS) $(ALLDEPS)
 -	$(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)
-+	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
++	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
 
  # Object
  ${BUILDDIR}/%.o: %.c
  	@mkdir -p $(dir $@)
--	$(CC) -MD -MP $(CFLAGS) -c -o $@ $(CURDIR)/$<
-+	$(CC) -MD -MP $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $(CURDIR)/$<
+-	$(CC) -MD -MP $(CFLAGS) -c -o $@ $<
++	$(CC) -MD -MP $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $<
 
  # Add-on
  ${BUILDDIR}/%.so: ${SRCS_EXTRA}
 diff --git a/support/configure.inc b/support/configure.inc
-index 0130880..332511e 100644
+index f7cfcd3..e3a2dd7 100755
 --- a/support/configure.inc
 +++ b/support/configure.inc
-@@ -464,8 +464,8 @@ ifeq (\$(origin CC),default)
+@@ -455,8 +455,8 @@ ifeq (\$(origin CC),default)
  CC        = ${CC}
  endif
  PYTHON   ?= ${PYTHON}
@@ -76,10 +121,10 @@ index 0130880..332511e 100644
  prefix    = ${prefix}
  bindir    = ${bindir}
  mandir    = ${mandir}
-@@ -482,8 +482,8 @@ EOF
+@@ -478,8 +478,8 @@ EOF
    # Add package config
    for pkg in ${PACKAGES[*]}; do
-     cat >>${CONFIG_MK} <<EOF
+     cat >>"${CONFIG_MK}" <<EOF
 -LDFLAGS += $(pkg-config --libs $pkg)
 -CFLAGS  += $(pkg-config --cflags $pkg)
 +TVH_LDFLAGS += $(pkg-config --libs $pkg)
@@ -88,5 +133,5 @@ index 0130880..332511e 100644
    done
 
 -- 
-1.7.7.6
+1.9.0
 
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +12 -6
index 65d43c6..8539927 100644
@@ -1,26 +1,32 @@
 SUMMARY = "Tvheadend TV streaming server"
 HOMEPAGE = "https://www.lonelycoder.com/redmine/projects/tvheadend"
 
-DEPENDS = "avahi zlib openssl python-native"
+DEPENDS = "avahi zlib openssl python-native libav"
 
 LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=9eef91148a9b14ec7f9df333daebc746"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"
 
-SRC_URI = "git://github.com/tvheadend/tvheadend.git \
+SRC_URI = "git://github.com/tvheadend/tvheadend.git;name=tvh \
+           git://linuxtv.org/dtv-scan-tables.git;name=dvb;destsuffix=git/data/dvb-scan \
            file://0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch \
 "
-SRCREV = "a420c83a0e0d2c31c2c15d0fec6fedc3f5a36dfe"
-PV = "3.3"
+SRCREV_tvh = "a95ef0b237a01e6fe6a29c0cd76f98a3a216c1ce"
+SRCREV_dvb = "82115b4a1f1039d5a2f93f2b7ddc4b2d2713b7ae"
+SRCREV_FORMAT = "tvh"
+
+PV = "3.9+git${SRCPV}"
 
 S = "${WORKDIR}/git"
 
 do_configure() {
+    # The fetcher ensures the mux list is up to date
+    sed -i -e 's:exit 1:exit 0:g' ${S}/support/getmuxlist
+
     ./configure --prefix=${prefix} \
                 --libdir=${libdir} \
                 --bindir=${bindir} \
                 --datadir=${datadir} \
                 --arch=${TARGET_ARCH} \
-                --disable-dvbscan \
                 --disable-bundle
 }
 
Signature · 7 lines
1.9.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#4 lore raw
Quoted 9 lines

Op 9 dec. 2014, om 11:30 heeft Martin Jansa <[email protected]> het volgende geschreven:

Quoted 3 lines · Koen Kooi

Fetch dvbcan tables using bitbake and reenable the config option.

The license file was renamed and now lists the CLA requirement as well.

Fails to build for qemux86, check last world build logs.

I'll see if I can reproduce.

Quoted 232 lines
Quoted 229 lines

---
...end-specific-LD-CFLAGS-into-a-helper-vari.patch | 115 ++++++++++++++-------
.../recipes-dvb/tvheadend/tvheadend_git.bb | 18 ++--

2 files changed, 92 insertions(+), 41 deletions(-)
meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch +1 -1
index 9dfcce0..cac2b90 100644
@@ -1,4 +1,4 @@
-From 2ee64b359464b48f751683faa5ded3ee8200fe90 Mon Sep 17 00:00:00 2001
+From e56e244f901ae04e8c681c848d06c1b96b67ca58 Mon Sep 17 00:00:00 2001

From: Koen Kooi <[email protected]>
Date: Fri, 21 Dec 2012 10:15:42 +0100
Subject: [PATCH] Move tvheadend specific LD/CFLAGS into a helper variable to

meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch +0 -0
@@ -8,64 +8,109 @@ Signed-off-by: Koen Kooi <[email protected]>
 

Upstream-Status: Inappropriate [OE specific]
---
- Makefile | 20 ++++++++++----------
- support/configure.inc | 8 ++++----
- 2 files changed, 14 insertions(+), 14 deletions(-)
+ Makefile | 44 ++++++++++++++++++++++----------------------
+ support/configure.inc | 8 ++++----
+ 2 files changed, 26 insertions(+), 26 deletions(-)

Makefile +1 -1
-index 8c6b293..daf5f14 100644
+index 9931635..5e4aebf 100644
Makefile +72 -28
-@@ -27,12 +27,12 @@ PROG = ${BUILDDIR}/tvheadend
+@@ -27,45 +27,45 @@ PROG    := $(BUILDDIR)/tvheadend
 # Common compiler flags
 #
 
+-CFLAGS  += -g -O2 -Wunused-result
-CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
--CFLAGS  += -Wmissing-prototypes -fms-extensions
--CFLAGS  += -g -funsigned-char -O2 
+-CFLAGS  += -Wmissing-prototypes
+-CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
-CFLAGS  += -D_FILE_OFFSET_BITS=64
--CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
--LDFLAGS += -lrt -ldl -lpthread -lm
+-CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
++TVH_CFLAGS  += -g -O2 -Wunused-result
+TVH_CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
-+TVH_CFLAGS  += -Wmissing-prototypes -fms-extensions
-+TVH_CFLAGS  += -g -funsigned-char -O2 
++TVH_CFLAGS  += -Wmissing-prototypes
++TVH_CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
+TVH_CFLAGS  += -D_FILE_OFFSET_BITS=64
-+TVH_CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
-+TVH_LDFLAGS += -lrt -ldl -lpthread -lm
++TVH_CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
+ ifeq ($(CONFIG_ANDROID),yes)
+-LDFLAGS += -ldl -lm
++TVH_LDFLAGS += -ldl -lm
+ else
+-LDFLAGS += -ldl -lpthread -lm
++TVH_LDFLAGS += -ldl -lpthread -lm
+ endif
+ ifeq ($(CONFIG_LIBICONV),yes)
+-LDFLAGS += -liconv
++TVH_LDFLAGS += -liconv
+ endif
+ ifeq ($(PLATFORM), darwin)
+-LDFLAGS += -framework CoreServices
++TVH_LDFLAGS += -framework CoreServices
+ else
+ ifeq ($(CONFIG_ANDROID),no)
+-LDFLAGS += -lrt
++TVH_LDFLAGS += -lrt
+ endif
+ endif
 
- #
- # Other config
-@@ -179,8 +179,8 @@ SRCS-${CONFIG_CWC}  += src/ffdecsa/ffdecsa_interface.c \
- 	src/ffdecsa/ffdecsa_int.c
- SRCS-${CONFIG_MMX}  += src/ffdecsa/ffdecsa_mmx.c
- SRCS-${CONFIG_SSE2} += src/ffdecsa/ffdecsa_sse2.c
--${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
--${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
-+${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : TVH_CFLAGS += -mmmx
-+${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : TVH_CFLAGS += -msse2
+ ifeq ($(COMPILER), clang)
+-CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
+-CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
+-CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
++TVH_CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
++TVH_CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
++TVH_CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
+ endif
+ 
+ ifeq ($(CONFIG_LIBFFMPEG_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
+-LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
++TVH_CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
++TVH_LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
+            -lavresample -lswresample -lswscale \
+            -lavutil -lavformat -lavcodec -lavutil \
+            -lvorbisenc -lvorbis -logg -lx264 -lvpx \
+            -Wl,-Bdynamic
+ endif
+ ifeq ($(CONFIG_HDHOMERUN_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
+-LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
++TVH_CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
++TVH_LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
+            -Wl,-Bstatic -lhdhomerun -Wl,-Bdynamic
+ endif
+ 
+@@ -340,8 +340,8 @@ SRCS-yes += src/descrambler/ffdecsa/ffdecsa_interface.c \
+ 	    src/descrambler/ffdecsa/ffdecsa_int.c
+ SRCS-${CONFIG_MMX}  += src/descrambler/ffdecsa/ffdecsa_mmx.c
+ SRCS-${CONFIG_SSE2} += src/descrambler/ffdecsa/ffdecsa_sse2.c
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : TVH_TVH_CFLAGS += -mmmx
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : TVH_TVH_CFLAGS += -msse2
 endif
 
- # File bundles
-@@ -217,12 +217,12 @@ all: ${PROG}
+ # libaesdec
+@@ -402,12 +402,12 @@ reconfigure:
 
 # Binary
- ${PROG}: $(OBJS) $(ALLDEPS)
+ ${PROG}: check_config $(OBJS) $(ALLDEPS)
-	$(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)
-+	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
++	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
 
 # Object
 ${BUILDDIR}/%.o: %.c
 	@mkdir -p $(dir $@)
--	$(CC) -MD -MP $(CFLAGS) -c -o $@ $(CURDIR)/$<
-+	$(CC) -MD -MP $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $(CURDIR)/$<
+-	$(CC) -MD -MP $(CFLAGS) -c -o $@ $<
++	$(CC) -MD -MP $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $<
 
 # Add-on
 ${BUILDDIR}/%.so: ${SRCS_EXTRA}
support/configure.inc +1 -1
-index 0130880..332511e 100644
+index f7cfcd3..e3a2dd7 100755
support/configure.inc +5 -7
-@@ -464,8 +464,8 @@ ifeq (\$(origin CC),default)
+@@ -455,8 +455,8 @@ ifeq (\$(origin CC),default)
 CC        = ${CC}
 endif
 PYTHON   ?= ${PYTHON}
@@ -76,10 +121,10 @@ index 0130880..332511e 100644
 prefix    = ${prefix}
 bindir    = ${bindir}
 mandir    = ${mandir}
-@@ -482,8 +482,8 @@ EOF
+@@ -478,8 +478,8 @@ EOF
   # Add package config
   for pkg in ${PACKAGES[*]}; do
-     cat >>${CONFIG_MK} <<EOF
+     cat >>"${CONFIG_MK}" <<EOF
-LDFLAGS += $(pkg-config --libs $pkg)
-CFLAGS  += $(pkg-config --cflags $pkg)
+TVH_LDFLAGS += $(pkg-config --libs $pkg)
@@ -88,5 +133,5 @@ index 0130880..332511e 100644
   done
 
-- 
-1.7.7.6
+1.9.0
 
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +0 -0
index 65d43c6..8539927 100644
@@ -1,26 +1,32 @@

SUMMARY = "Tvheadend TV streaming server"
HOMEPAGE = "https://www.lonelycoder.com/redmine/projects/tvheadend"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +1 -1
-DEPENDS = "avahi zlib openssl python-native"
+DEPENDS = "avahi zlib openssl python-native libav"

LICENSE = "GPLv3+"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +3 -2
-LIC_FILES_CHKSUM = "file://LICENSE;md5=9eef91148a9b14ec7f9df333daebc746"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"
 
-SRC_URI = "git://github.com/tvheadend/tvheadend.git \
+SRC_URI = "git://github.com/tvheadend/tvheadend.git;name=tvh \
+           git://linuxtv.org/dtv-scan-tables.git;name=dvb;destsuffix=git/data/dvb-scan \
           file://0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch \

"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +5 -2
-SRCREV = "a420c83a0e0d2c31c2c15d0fec6fedc3f5a36dfe"
-PV = "3.3"
+SRCREV_tvh = "a95ef0b237a01e6fe6a29c0cd76f98a3a216c1ce"
+SRCREV_dvb = "82115b4a1f1039d5a2f93f2b7ddc4b2d2713b7ae"
+SRCREV_FORMAT = "tvh"
+
+PV = "3.9+git${SRCPV}"

S = "${WORKDIR}/git"

do_configure() {

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +3 -1
+    # The fetcher ensures the mux list is up to date
+    sed -i -e 's:exit 1:exit 0:g' ${S}/support/getmuxlist
+
    ./configure --prefix=${prefix} \
                --libdir=${libdir} \
                --bindir=${bindir} \
                --datadir=${datadir} \
                --arch=${TARGET_ARCH} \
-                --disable-dvbscan \
                --disable-bundle

}

Signature · 7 lines
1.9.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#5 lore raw
Quoted 6 lines

Op 10 dec. 2014, om 16:22 heeft Koen Kooi <[email protected]> het volgende geschreven:

Quoted 2 lines

Op 9 dec. 2014, om 11:30 heeft Martin Jansa <[email protected]> het volgende geschreven:

Quoted 8 lines
Quoted 6 lines · Koen Kooi
Quoted 3 lines

Fetch dvbcan tables using bitbake and reenable the config option.

The license file was renamed and now lists the CLA requirement as well.

Fails to build for qemux86, check last world build logs.

I'll see if I can reproduce.

I reproduced it, let's see if I can fix it over the holidays

Quoted 234 lines
Quoted 233 lines
Quoted 230 lines

---
...end-specific-LD-CFLAGS-into-a-helper-vari.patch | 115 ++++++++++++++-------
.../recipes-dvb/tvheadend/tvheadend_git.bb | 18 ++--

2 files changed, 92 insertions(+), 41 deletions(-)
meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch +1 -1
index 9dfcce0..cac2b90 100644
@@ -1,4 +1,4 @@
-From 2ee64b359464b48f751683faa5ded3ee8200fe90 Mon Sep 17 00:00:00 2001
+From e56e244f901ae04e8c681c848d06c1b96b67ca58 Mon Sep 17 00:00:00 2001

From: Koen Kooi <[email protected]>
Date: Fri, 21 Dec 2012 10:15:42 +0100
Subject: [PATCH] Move tvheadend specific LD/CFLAGS into a helper variable to

meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch +0 -0
@@ -8,64 +8,109 @@ Signed-off-by: Koen Kooi <[email protected]>
 

Upstream-Status: Inappropriate [OE specific]
---
- Makefile | 20 ++++++++++----------
- support/configure.inc | 8 ++++----
- 2 files changed, 14 insertions(+), 14 deletions(-)
+ Makefile | 44 ++++++++++++++++++++++----------------------
+ support/configure.inc | 8 ++++----
+ 2 files changed, 26 insertions(+), 26 deletions(-)

Makefile +1 -1
-index 8c6b293..daf5f14 100644
+index 9931635..5e4aebf 100644
Makefile +1 -1
-@@ -27,12 +27,12 @@ PROG = ${BUILDDIR}/tvheadend
+@@ -27,45 +27,45 @@ PROG    := $(BUILDDIR)/tvheadend

# Common compiler flags
#

+-CFLAGS += -g -O2 -Wunused-result

Makefile +64 -20
-CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
--CFLAGS  += -Wmissing-prototypes -fms-extensions
--CFLAGS  += -g -funsigned-char -O2 
+-CFLAGS  += -Wmissing-prototypes
+-CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
-CFLAGS  += -D_FILE_OFFSET_BITS=64
--CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
--LDFLAGS += -lrt -ldl -lpthread -lm
+-CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
++TVH_CFLAGS  += -g -O2 -Wunused-result
+TVH_CFLAGS  += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
-+TVH_CFLAGS  += -Wmissing-prototypes -fms-extensions
-+TVH_CFLAGS  += -g -funsigned-char -O2 
++TVH_CFLAGS  += -Wmissing-prototypes
++TVH_CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
+TVH_CFLAGS  += -D_FILE_OFFSET_BITS=64
-+TVH_CFLAGS  += -I${BUILDDIR} -I${CURDIR}/src -I${CURDIR}
-+TVH_LDFLAGS += -lrt -ldl -lpthread -lm
++TVH_CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
+ ifeq ($(CONFIG_ANDROID),yes)
+-LDFLAGS += -ldl -lm
++TVH_LDFLAGS += -ldl -lm
+ else
+-LDFLAGS += -ldl -lpthread -lm
++TVH_LDFLAGS += -ldl -lpthread -lm
+ endif
+ ifeq ($(CONFIG_LIBICONV),yes)
+-LDFLAGS += -liconv
++TVH_LDFLAGS += -liconv
+ endif
+ ifeq ($(PLATFORM), darwin)
+-LDFLAGS += -framework CoreServices
++TVH_LDFLAGS += -framework CoreServices
+ else
+ ifeq ($(CONFIG_ANDROID),no)
+-LDFLAGS += -lrt
++TVH_LDFLAGS += -lrt
+ endif
+ endif
 
- #
- # Other config
-@@ -179,8 +179,8 @@ SRCS-${CONFIG_CWC}  += src/ffdecsa/ffdecsa_interface.c \
- 	src/ffdecsa/ffdecsa_int.c
- SRCS-${CONFIG_MMX}  += src/ffdecsa/ffdecsa_mmx.c
- SRCS-${CONFIG_SSE2} += src/ffdecsa/ffdecsa_sse2.c
--${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
--${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
-+${BUILDDIR}/src/ffdecsa/ffdecsa_mmx.o  : TVH_CFLAGS += -mmmx
-+${BUILDDIR}/src/ffdecsa/ffdecsa_sse2.o : TVH_CFLAGS += -msse2
+ ifeq ($(COMPILER), clang)
+-CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
+-CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
+-CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
++TVH_CFLAGS  += -Wno-microsoft -Qunused-arguments -Wno-unused-function
++TVH_CFLAGS  += -Wno-unused-value -Wno-tautological-constant-out-of-range-compare
++TVH_CFLAGS  += -Wno-parentheses-equality -Wno-incompatible-pointer-types
+ endif
+ 
+ ifeq ($(CONFIG_LIBFFMPEG_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
+-LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
++TVH_CFLAGS  += -I${ROOTDIR}/libav_static/build/ffmpeg/include
++TVH_LDFLAGS += -L${ROOTDIR}/libav_static/build/ffmpeg/lib -Wl,-Bstatic \
+            -lavresample -lswresample -lswscale \
+            -lavutil -lavformat -lavcodec -lavutil \
+            -lvorbisenc -lvorbis -logg -lx264 -lvpx \
+            -Wl,-Bdynamic
+ endif
+ ifeq ($(CONFIG_HDHOMERUN_STATIC),yes)
+-CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
+-LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
++TVH_CFLAGS  += -I${ROOTDIR}/libhdhomerun_static
++TVH_LDFLAGS += -L${ROOTDIR}/libhdhomerun_static/libhdhomerun \
+            -Wl,-Bstatic -lhdhomerun -Wl,-Bdynamic
+ endif
+ 
+@@ -340,8 +340,8 @@ SRCS-yes += src/descrambler/ffdecsa/ffdecsa_interface.c \
+ 	    src/descrambler/ffdecsa/ffdecsa_int.c
+ SRCS-${CONFIG_MMX}  += src/descrambler/ffdecsa/ffdecsa_mmx.c
+ SRCS-${CONFIG_SSE2} += src/descrambler/ffdecsa/ffdecsa_sse2.c
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : CFLAGS += -mmmx
+-${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : CFLAGS += -msse2
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_mmx.o  : TVH_TVH_CFLAGS += -mmmx
++${BUILDDIR}/src/descrambler/ffdecsa/ffdecsa_sse2.o : TVH_TVH_CFLAGS += -msse2

endif

- # File bundles
-@@ -217,12 +217,12 @@ all: ${PROG}
+ # libaesdec
+@@ -402,12 +402,12 @@ reconfigure:

# Binary
- ${PROG}: $(OBJS) $(ALLDEPS)
+ ${PROG}: check_config $(OBJS) $(ALLDEPS)

Makefile +1 -2
-	$(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)
-+	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)
++	$(CC) -o $@ $(OBJS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(TVH_CFLAGS) $(TVH_LDFLAGS) $(CFLAGS) $(LDFLAGS)

# Object
${BUILDDIR}/%.o: %.c

	@mkdir -p $(dir $@)

-- $(CC) -MD -MP $(CFLAGS) -c -o $@ $(CURDIR)/$<
-+ $(CC) -MD -MP $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $(CURDIR)/$<
+- $(CC) -MD -MP $(CFLAGS) -c -o $@ $<
++ $(CC) -MD -MP $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(TVH_CFLAGS) $(CFLAGS) -c -o $@ $<

# Add-on
${BUILDDIR}/%.so: ${SRCS_EXTRA}

support/configure.inc +1 -1
-index 0130880..332511e 100644
+index f7cfcd3..e3a2dd7 100755
support/configure.inc +1 -1
-@@ -464,8 +464,8 @@ ifeq (\$(origin CC),default)
+@@ -455,8 +455,8 @@ ifeq (\$(origin CC),default)

CC = ${CC}
endif
PYTHON ?= ${PYTHON}

support/configure.inc +4 -6
@@ -76,10 +121,10 @@ index 0130880..332511e 100644
 prefix    = ${prefix}
 bindir    = ${bindir}
 mandir    = ${mandir}
-@@ -482,8 +482,8 @@ EOF
+@@ -478,8 +478,8 @@ EOF
  # Add package config
  for pkg in ${PACKAGES[*]}; do
-     cat >>${CONFIG_MK} <<EOF
+     cat >>"${CONFIG_MK}" <<EOF
-LDFLAGS += $(pkg-config --libs $pkg)
-CFLAGS  += $(pkg-config --cflags $pkg)
+TVH_LDFLAGS += $(pkg-config --libs $pkg)
@@ -88,5 +133,5 @@ index 0130880..332511e 100644
  done
 
-- 
-1.7.7.6
+1.9.0
 
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +0 -0
index 65d43c6..8539927 100644
@@ -1,26 +1,32 @@

SUMMARY = "Tvheadend TV streaming server"
HOMEPAGE = "https://www.lonelycoder.com/redmine/projects/tvheadend"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +1 -1
-DEPENDS = "avahi zlib openssl python-native"
+DEPENDS = "avahi zlib openssl python-native libav"

LICENSE = "GPLv3+"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +3 -2
-LIC_FILES_CHKSUM = "file://LICENSE;md5=9eef91148a9b14ec7f9df333daebc746"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"
 
-SRC_URI = "git://github.com/tvheadend/tvheadend.git \
+SRC_URI = "git://github.com/tvheadend/tvheadend.git;name=tvh \
+           git://linuxtv.org/dtv-scan-tables.git;name=dvb;destsuffix=git/data/dvb-scan \
          file://0001-Move-tvheadend-specific-LD-CFLAGS-into-a-helper-vari.patch \

"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +5 -2
-SRCREV = "a420c83a0e0d2c31c2c15d0fec6fedc3f5a36dfe"
-PV = "3.3"
+SRCREV_tvh = "a95ef0b237a01e6fe6a29c0cd76f98a3a216c1ce"
+SRCREV_dvb = "82115b4a1f1039d5a2f93f2b7ddc4b2d2713b7ae"
+SRCREV_FORMAT = "tvh"
+
+PV = "3.9+git${SRCPV}"

S = "${WORKDIR}/git"

do_configure() {

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +3 -1
+    # The fetcher ensures the mux list is up to date
+    sed -i -e 's:exit 1:exit 0:g' ${S}/support/getmuxlist
+
   ./configure --prefix=${prefix} \
               --libdir=${libdir} \
               --bindir=${bindir} \
               --datadir=${datadir} \
               --arch=${TARGET_ARCH} \
-                --disable-dvbscan \
               --disable-bundle

}

Signature · 7 lines
1.9.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]