package/vdr: new package
PATCH 1/2 package/vdr: new package
--- package/Config.in | 1 + package/vdr/0001-getloadavg.patch | 55 +++++++++++++++++++++++++++++++ package/vdr/0002-libjpeg.patch | 40 +++++++++++++++++++++++ package/vdr/Config.in | 25 ++++++++++++++ package/vdr/vdr.hash | 4 +++ package/vdr/vdr.mk | 68 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 193 insertions(+) create mode 100644 package/vdr/0001-getloadavg.patch create mode 100644 package/vdr/0002-libjpeg.patch create mode 100644 package/vdr/Config.in create mode 100644 package/vdr/vdr.hash create mode 100644 package/vdr/vdr.mk
package/Config.in +1 -0
@@ -1597,6 +1597,7 @@ endif source "package/ushare/Config.in" source "package/ussp-push/Config.in" source "package/vde2/Config.in" + source "package/vdr/Config.in" source "package/vnstat/Config.in" source "package/vpnc/Config.in" source "package/vsftpd/Config.in"
package/vdr/0001-getloadavg.patch new file +55 -0
55 lines not on this page · raw message
package/vdr/0002-libjpeg.patch new file +40 -0
@@ -0,0 +1,40 @@ +Fix compilation with libjpeg + +Patch inspired by upstream board: +http://www.vdr-portal.de/board16-video-disk-recorder/board4-vdr-installation/p1189959-vdr-2-05-mit-libjpeg-9a-kommt-nicht-aus/#post1189959 + +Signed-off-by: Bernd Kuhls <[email protected]> + +diff -uNr vdr-2.3.1.org/tools.c vdr-2.3.1/tools.c +--- vdr-2.3.1.org/tools.c 2015-09-10 15:17:55.000000000 +0200 ++++ vdr-2.3.1/tools.c 2016-08-01 06:37:44.000000000 +0200 +@@ -1254,15 +1254,15 @@ + } + else { + esyslog("ERROR: out of memory"); +- return false; ++ return FALSE; + } + if (jcd->mem) { + cinfo->dest->next_output_byte = jcd->mem + Used; + cinfo->dest->free_in_buffer = jcd->size - Used; +- return true; ++ return TRUE; + } + } +- return false; ++ return FALSE; + } + + static void JpegCompressTermDestination(j_compress_ptr cinfo) +@@ -1307,8 +1307,8 @@ + cinfo.in_color_space = JCS_RGB; + + jpeg_set_defaults(&cinfo); +- jpeg_set_quality(&cinfo, Quality, true); +- jpeg_start_compress(&cinfo, true); ++ jpeg_set_quality(&cinfo, Quality, TRUE); ++ jpeg_start_compress(&cinfo, TRUE); + + int rs = Width * 3; + JSAMPROW rp[Height];
package/vdr/Config.in new file +25 -0
@@ -0,0 +1,25 @@ +config BR2_PACKAGE_VDR + bool "vdr" + depends on BR2_INSTALL_LIBSTDCPP + depends on !BR2_STATIC_LIBS + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on !BR2_TOOLCHAIN_USES_MUSL # _nl_msg_cat_cntr + depends on BR2_USE_MMU # fork() + depends on BR2_USE_WCHAR + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT + select BR2_PACKAGE_FONTCONFIG + select BR2_PACKAGE_FREETYPE + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBCAP + select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE + help + This project describes how to build your own digital satellite + receiver and Video Disk Recorder. + + http://www.tvdr.de + +comment "vdr needs a glibc or uClibc toolchain w/ C++, dynamic library, NPTL, wchar" + depends on BR2_USE_MMU + depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \ + !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \ + BR2_TOOLCHAIN_USES_MUSL || !BR2_USE_WCHAR
package/vdr/vdr.hash new file +4 -0
@@ -0,0 +1,4 @@ +# From https://www.linuxtv.org/pipermail/vdr/2015-September/028872.html +md5 391c2ed60e2f7d24563fe3ed5854bc4f vdr-2.3.1.tar.bz2 +# Locally computed +sha256 456d3f0ceb699b92ebeaf9ff4c0c68979724d10b01a89d5250133e6f4c262fa7 vdr-2.3.1.tar.bz2
package/vdr/vdr.mk new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.8.1
PATCH 2/2 package/vdr-plugin-vnsiserver: new package
--- package/Config.in | 1 + package/vdr-plugin-vnsiserver/Config.in | 9 ++++++++ .../vdr-plugin-vnsiserver.hash | 2 ++ .../vdr-plugin-vnsiserver/vdr-plugin-vnsiserver.mk | 25 ++++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 package/vdr-plugin-vnsiserver/Config.in create mode 100644 package/vdr-plugin-vnsiserver/vdr-plugin-vnsiserver.hash create mode 100644 package/vdr-plugin-vnsiserver/vdr-plugin-vnsiserver.mk
package/Config.in +1 -0
@@ -1598,6 +1598,7 @@ endif source "package/ussp-push/Config.in" source "package/vde2/Config.in" source "package/vdr/Config.in" + source "package/vdr-plugin-vnsiserver/Config.in" source "package/vnstat/Config.in" source "package/vpnc/Config.in" source "package/vsftpd/Config.in"
package/vdr-plugin-vnsiserver/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_VDR_PLUGIN_VNSISERVER + bool "vdr-plugin-vnsiserver" + depends on BR2_PACKAGE_VDR + help + VDR plugin to handle KODI clients. + The vdr-plugin-vnsiserver is able to handle serveral KODI + clients connecting via the VNSI addon. + + https://github.com/FernetMenta/vdr-plugin-vnsiserver
package/vdr-plugin-vnsiserver/vdr-plugin-vnsiserver.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed +sha256 fd00fb6d833cad6a32a0d8259bb125abdf1716680650ba24b34bca2201745877 vdr-plugin-vnsiserver-v1.5.0.tar.gz
package/vdr-plugin-vnsiserver/vdr-plugin-vnsiserver.mk new file +25 -0
@@ -0,0 +1,25 @@ +################################################################################ +# +# vdr-plugin-vnsiserver +# +################################################################################ + +VDR_PLUGIN_VNSISERVER_VERSION = v1.5.0 +VDR_PLUGIN_VNSISERVER_SITE = $(call github,FernetMenta,vdr-plugin-vnsiserver,$(VDR_PLUGIN_VNSISERVER_VERSION)) +VDR_PLUGIN_VNSISERVER_LICENSE = GPLv2+ +VDR_PLUGIN_VNSISERVER_LICENSE_FILES = COPYING +VDR_PLUGIN_VNSISERVER_DEPENDENCIES = vdr + +VDR_PLUGIN_VNSISERVER_CXXFLAGS = CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11 -fPIC" + +define VDR_PLUGIN_VNSISERVER_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ + $(VDR_PLUGIN_VNSISERVER_CXXFLAGS) +endef + +define VDR_PLUGIN_VNSISERVER_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ + install DESTDIR=$(TARGET_DIR) LIBDIR=/usr/lib/vdr +endef + +$(eval $(generic-package))
Signature · 1 line
2.8.1
PATCH 1/2 package/vdr: new package
In reply to Bernd KuhlsHello,
Quoted 1 line · Bernd Kuhls
Signed-off-by Bernd Kuhls <[email protected]>
Thanks, I've applied after doing a few minor tweaks, see below.
package/vdr/0001-getloadavg.patch line 6
Quoted 12 lines
package/vdr/0001-getloadavg.patch new file +6
-0@@ -0,0 +1,55 @@ +Fix compilation with uClibc + +Ported from +https://github.com/stschake/buildroot-grasshopper/blob/master/package/torsmo/torsmo-0.18-uclibc-getloadavg.patch + +Signed-off-by: Bernd Kuhls <[email protected]>
Could you submit this patch upstream?
Also, notice that you could have re-used the getloadavg() implementation from musl, which is much much shorter, and does not rely on the /proc filesystem.
package/vdr/0002-libjpeg.patch line 6
Quoted 12 lines
package/vdr/0002-libjpeg.patch new file +6
-0@@ -0,0 +1,40 @@ +Fix compilation with libjpeg + +Patch inspired by upstream board: +http://www.vdr-portal.de/board16-video-disk-recorder/board4-vdr-installation/p1189959-vdr-2-05-mit-libjpeg-9a-kommt-nicht-aus/#post1189959 + +Signed-off-by: Bernd Kuhls <[email protected]>
Could you also submit upstream?
package/vdr/0002-libjpeg.patch line 9
Quoted 3 lines
package/vdr/0002-libjpeg.patch new file +3
-0+ifeq ($(BR2_NEEDS_GETTEXT),y) +VDR_DEPENDENCIES += gettext +VDR_LDFLAGS = -lintl
I've changed this = to a += since we're inside a condition. It will avoid potential mistakes in the future if someone adds another VDR_LDFLAGS += line above.
package/vdr/0002-libjpeg.patch line 14
Quoted 5 lines
package/vdr/0002-libjpeg.patch new file +5
-0+define VDR_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(VDR_MAKE_ENV) \ + vdr vdr.pc + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(VDR_MAKE_ENV) \ + include-dir
It wasn't clear why you're making a second call to $(MAKE) here for the include-dir target, so I've merged it with the previous one. I did a rebuild, and it worked fine.
Also, I committed a follow-up patch to add you as the contact for this package in the DEVELOPERS file.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com