Skip to contentSkip to conversation

Add a working tvheadend recipe

PATCH Superseded Peter Bašista 3 participants 6 messages Nov 18, 2018 – Nov 23, 2018

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add a working tvheadend recipe

The original one was previously removed
by commit ec9e5ed06256ad92c818474cdb490dc0d3a0d0a3 as part of a clean-up of blacklisted recipes.

---
 .../recipes-dvb/tvheadend/tvheadend_git.bb    | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +37 -0
new file mode 100644
index 000000000..2a76d5d34
@@ -0,0 +1,37 @@
+SUMMARY = "Tvheadend: TV streaming server and recorder"
+HOMEPAGE = "https://tvheadend.org/"
+
+DEPENDS = "avahi cmake-native gettext-native libpcre2 libdvbcsa openssl zlib python-native"
+
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"
+
+SRC_URI = "git://github.com/tvheadend/tvheadend.git"
+
+inherit gitpkgv
+SRCREV = "${AUTOREV}"
+PV = "4.3+git${SRCPV}"
+PKGV = "4.3+git${GITPKGV}"
+
+S = "${WORKDIR}/git"
+
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[uriparser] = "--enable-uriparser,--disable-uriparser,uriparser"
+
+do_configure() {
+    ./configure ${PACKAGECONFIG_CONFARGS} \
+                --prefix=${prefix} \
+                --libdir=${libdir} \
+                --bindir=${bindir} \
+                --datadir=${datadir} \
+                --arch=${TARGET_ARCH} \
+                --disable-libav \
+                --disable-ffmpeg_static \
+                --disable-hdhomerun_static
+}
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+FILES_${PN} += "${datadir}/${BPN}"
Signature · 1 line
2.19.1
#1 lore raw
Quoted 17 lines · Peter Bašista

The original one was previously removed
by commit ec9e5ed06256ad92c818474cdb490dc0d3a0d0a3 as part of a clean-up of blacklisted recipes.

---
 .../recipes-dvb/tvheadend/tvheadend_git.bb    | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +0 -0
new file mode 100644
index 000000000..2a76d5d34

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

Quoted 4 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +4 -0
@@ -0,0 +1,37 @@
+SUMMARY = "Tvheadend: TV streaming server and recorder"
+HOMEPAGE = "https://tvheadend.org/"
+
+DEPENDS = "avahi cmake-native gettext-native libpcre2 libdvbcsa openssl zlib python-native"

perhaps inheriting cmake, gettext and pythonnative classes is appropriate here instead of adding
them to depends

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

Quoted 6 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +6 -0
+
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"
+
+SRC_URI = "git://github.com/tvheadend/tvheadend.git"
+

missing SRCREV, we need a locked down SHA

Quoted 35 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +27 -1
+inherit gitpkgv
+SRCREV = "${AUTOREV}"
+PV = "4.3+git${SRCPV}"
+PKGV = "4.3+git${GITPKGV}"
+
+S = "${WORKDIR}/git"
+
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[uriparser] = "--enable-uriparser,--disable-uriparser,uriparser"
+
+do_configure() {
+    ./configure ${PACKAGECONFIG_CONFARGS} \
+                --prefix=${prefix} \
+                --libdir=${libdir} \
+                --bindir=${bindir} \
+                --datadir=${datadir} \
+                --arch=${TARGET_ARCH} \
+                --disable-libav \
+                --disable-ffmpeg_static \
+                --disable-hdhomerun_static
+}
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+FILES_${PN} += "${datadir}/${BPN}"
--

2.19.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 3 lines · Khem Raj

perhaps inheriting cmake, gettext and pythonnative classes is appropriate here instead of adding
them to depends

Thank you. I have tried doing that but I was not fully successful. For instance, inheriting cmake is probably not going to work well, because the compilation uses standard make, which then calls cmake. I am not sure whether there is a scenario for such a case within the cmake bbclass.

So, I have only added inheritance from gettext and pkgconfig.

I have also removed pythonnative, because apparently it is not needed and the recipe seems to be working well without it.

Finally, I have cleaned-up other parts which seemed unused or unnecessary.

Quoted 1 line

missing SRCREV, we need a locked down SHA

Oh, I was not aware of that. Added.

I will send the v2 of the patch shortly.

Regards
Peter Bašista

#3 lore raw
In reply to Peter Bašista
Quoted 41 lines · Peter Bašista

The original one was previously removed
by commit ec9e5ed06256ad92c818474cdb490dc0d3a0d0a3 as part of a clean-up of blacklisted recipes.

---
  .../recipes-dvb/tvheadend/tvheadend_git.bb    | 37 +++++++++++++++++++
  1 file changed, 37 insertions(+)

create mode 100644 meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +25 -0
new file mode 100644
index 000000000..2a76d5d34
@@ -0,0 +1,37 @@
+SUMMARY = "Tvheadend: TV streaming server and recorder"
+HOMEPAGE = "https://tvheadend.org/"
+
+DEPENDS = "avahi cmake-native gettext-native libpcre2 libdvbcsa openssl zlib python-native"
+
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"
+
+SRC_URI = "git://github.com/tvheadend/tvheadend.git"
+
+inherit gitpkgv
+SRCREV = "${AUTOREV}"
+PV = "4.3+git${SRCPV}"
+PKGV = "4.3+git${GITPKGV}"
+
+S = "${WORKDIR}/git"
+
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[uriparser] = "--enable-uriparser,--disable-uriparser,uriparser"
+
+do_configure() {
+    ./configure ${PACKAGECONFIG_CONFARGS} \
+                --prefix=${prefix} \
+                --libdir=${libdir} \
+                --bindir=${bindir} \

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

Quoted 10 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +10 -0
+                --datadir=${datadir} \
+                --arch=${TARGET_ARCH} \
+                --disable-libav \
+                --disable-ffmpeg_static \
+                --disable-hdhomerun_static
+}
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}

do_configure() and do_install() look pretty much like the ones from autotools.bbclass. Wouldn't it be prettier to do:

inherit autotools

EXTRA_OECONF = "--disable-libav --disable-ffmpeg_static --disable-hdhomerun_static"

do_compile[noexec] = "1"

?

// Martin

Quoted 3 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +2 -0
+
+FILES_${PN} += "${datadir}/${BPN}"
Signature · 10 lines
Kind regards,
Martin Hundebøll
Embedded Linux Consultant

+45 61 65 54 61
[email protected]

Geanix IVS
https://geanix.com
DK39600706
#4 lore raw

Sorry, I hadn't noticed PATCHv3 on the list when I wrote this.

// Martin

Quoted 75 lines · Martin Hundebøll
Quoted 44 lines · Peter Bašista

The original one was previously removed
by commit ec9e5ed06256ad92c818474cdb490dc0d3a0d0a3 as part of a clean-up of blacklisted recipes.

---
  .../recipes-dvb/tvheadend/tvheadend_git.bb    | 37 +++++++++++++++++++

  1 file changed, 37 insertions(+)

  create mode 100644 meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +4 -0
new file mode 100644
index 000000000..2a76d5d34
@@ -0,0 +1,37 @@
+SUMMARY = "Tvheadend: TV streaming server and recorder"
+HOMEPAGE = "https://tvheadend.org/"
+
+DEPENDS = "avahi cmake-native gettext-native libpcre2 libdvbcsa 

openssl zlib python-native"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +3 -0
+
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = 

"file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +12 -0
+
+SRC_URI = "git://github.com/tvheadend/tvheadend.git"
+
+inherit gitpkgv
+SRCREV = "${AUTOREV}"
+PV = "4.3+git${SRCPV}"
+PKGV = "4.3+git${GITPKGV}"
+
+S = "${WORKDIR}/git"
+
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[uriparser] = 

"--enable-uriparser,--disable-uriparser,uriparser"

meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +6 -0
+
+do_configure() {
+    ./configure ${PACKAGECONFIG_CONFARGS} \
+                --prefix=${prefix} \
+                --libdir=${libdir} \
+                --bindir=${bindir} \

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

Quoted 10 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +10 -0
+                --datadir=${datadir} \
+                --arch=${TARGET_ARCH} \
+                --disable-libav \
+                --disable-ffmpeg_static \
+                --disable-hdhomerun_static
+}
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}

do_configure() and do_install() look pretty much like the ones from autotools.bbclass. Wouldn't it be prettier to do:

inherit autotools

EXTRA_OECONF = "--disable-libav --disable-ffmpeg_static --disable-hdhomerun_static"

do_compile[noexec] = "1"

?

// Martin

Quoted 3 lines
meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb new file +2 -0
+
+FILES_${PN} += "${datadir}/${BPN}"
Signature · 10 lines
Kind regards,
Martin Hundebøll
Embedded Linux Consultant

+45 61 65 54 61
[email protected]

Geanix IVS
https://geanix.com
DK39600706
#5 lore raw
Quoted 1 line · Martin Hundebøll

Sorry, I hadn't noticed PATCHv3 on the list when I wrote this.

No worries. Your suggestion about autotools:

Quoted 2 lines
Quoted 2 lines

do_configure() and do_install() look pretty much like the ones from autotools.bbclass. Wouldn't it be prettier to do:

seems useful. I did not realize that such a recipe would be usable in this case.

So, thank you, I have used something like that in PATCH v4.

Regards
Peter Bašista