1 |
commit: 2b8297d91439c9eebacef0ed85eaa45908b29464 |
2 |
Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 25 18:25:29 2019 +0000 |
4 |
Commit: Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 25 18:25:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b8297d9 |
7 |
|
8 |
media-video/vdr: version bump to vdr-2.4.1 |
9 |
|
10 |
this version is a major update to |
11 |
vdr-2.4.1 |
12 |
|
13 |
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> |
14 |
Package-Manager: Portage-2.3.82, Repoman-2.3.18 |
15 |
Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org> |
16 |
|
17 |
media-video/vdr/Manifest | 6 + |
18 |
media-video/vdr/files/vdr-2.2.0-jpeg-9c.patch | 2 + |
19 |
media-video/vdr/files/vdr-2.4.1_gentoo.patch | 66 +++++++ |
20 |
.../vdr/files/vdr-2.4.1_makefile-variables.patch | 40 ++++ |
21 |
media-video/vdr/files/vdr-2.4_remove_plugins.patch | 25 +++ |
22 |
media-video/vdr/metadata.xml | 2 + |
23 |
media-video/vdr/vdr-2.4.1.ebuild | 201 +++++++++++++++++++++ |
24 |
7 files changed, 342 insertions(+) |
25 |
|
26 |
diff --git a/media-video/vdr/Manifest b/media-video/vdr/Manifest |
27 |
index dac0f69a4e8..645fd58bd16 100644 |
28 |
--- a/media-video/vdr/Manifest |
29 |
+++ b/media-video/vdr/Manifest |
30 |
@@ -1,2 +1,8 @@ |
31 |
DIST extpng-vdr-2.2.0-gentoo-edition-v1.patch.bz2 34664 BLAKE2B 81b68ebe0ef4588c3676f0b7a2c766d8d4d4f754a987b3be5868f3c6eff9158d4cea8e492ca81df535e637dbdc5baff638d1fafb4163e9d9a2d0125aba17e2e1 SHA512 16d6fbb8201f003dfe653b6a49424b794d7e697e27ad6f2383dbe17b76712ea5a3da88a676900b84d75ff7425bf3eb9084d60a89a4598758f482dc1f013f7b3e |
32 |
+DIST vdr-2.1.5-naludump-0.1.diff 21548 BLAKE2B f193d982d072bbba2261d7dabd82e27795b2e4d8d18ae4486d8c559e7325b87f5902def7bb313e98585331144af62597f6f025f44ca142187e724516bc32c175 SHA512 d9188d5bfcf0588c22dc526fc1082253a1b505b322ccfbe676b8b2c12d4471af7b605924bcea85e879c9606d5e2cecdf6a6e8819cd9b8d877e5bb9f62b91251f |
33 |
DIST vdr-2.2.0.tar.bz2 922708 BLAKE2B 975e07d6d4c5bd13ee92be5d6a1826d6404b0c59e20fa2e30689b185a61e02d54782ad528e6a4f15e0d36806b30bcf48aa336d63adb3604e78056ff318e0fd2c SHA512 183f58133915c6c0fe8ec2b88becbcb2a36418210e6dcf7931053d3771d727c3581593f9eb5c9693abf39e22e728f7b41c42079cd704610c3636ec05134ea93d |
34 |
+DIST vdr-2.4.0-ttxtsubs.patch.bz2 16721 BLAKE2B d5c3da713cd82ed8c3baccd1336d283404ebf1099116e76776c26a41ac193aa88bcb5bc2aaa8409a6d40e61c122bbc8ac0d67cb6ff8f83b0dbaea392101643b9 SHA512 99f2cab268d3f6af11607333a35583e5802f90636712e0429eb89eb66ccea7b1fb16a0d3ed2ff266e6f87c338bf77f97028a372eef5e6116b27220a5670a6d31 |
35 |
+DIST vdr-2.4.1.tar.bz2 940623 BLAKE2B 6fa7858e1c0fc25d3332d20347b30515276fc2b54905f32109dfa7f59e4e0c8a83687be405fac063a673c89d77e191f62162b1bd0ed6ee179d32a27f73076fb3 SHA512 b851ebf626de1a6aea11ee9c0cd87d78ebebdc34128925d2027a7030db1262064edb8818566a87ce22d37a9bd2b4f0b4ff1aad8dd251061d9ff972ffe0cf022d |
36 |
+DIST vdr-2.4.1_mainmenuhook-1.0.1.patch.bz2 1463 BLAKE2B 2be3597a273a92d02be0d072e3d74b39275cbbe17d22e570f416d42c46b53f43209498e569142a2cc357e5f7176d2454cb2a86d0822b29cca913eab2ae9cc27f SHA512 9d3eb501fa06ff5b03361ef65c8ddeeba5f37493cc0edc2d4f54e200e48e17607957fa95bd1540f028bc9a98ad6f42b4d38cf79e9ce971de36bed30def108759 |
37 |
+DIST vdr-2.4.1_pinplugin.patch.bz2 8641 BLAKE2B 339bb23ed0f505087bdbbefb192824d5def37bb00c4d5dc300f545c7951f11504115d058c157d1964f5f32e483e668675e13254465b5acce76cfdcf07faae216 SHA512 f402fa51314ad6c34439f71b7cb81e1ca51e0fa3b120a1fdaee119c2dd1b13174db2e666bf5e6204aa28e4acef8f6bd6e3ab8324793c3484eafb16dc8cf808d5 |
38 |
+DIST vdr-menuorg-2.3.x.diff 8852 BLAKE2B 19b98d51a69f52ecda5500f51ef1741a8397953b20c490055eab0393da5f56ff9598c3e1e8ed8b915f5877e08deeb9ba7a9ef8d9356ad3a1fa12e3778869174a SHA512 7b41c3a529858a4953a57f21619ea01864e140cc1755ee0b03caf1c4de41e80c3f805653502bc8d39d02a4dfcddf720acd4a8c8bd91f4871eef31d86e8e915c0 |
39 |
|
40 |
diff --git a/media-video/vdr/files/vdr-2.2.0-jpeg-9c.patch b/media-video/vdr/files/vdr-2.2.0-jpeg-9c.patch |
41 |
index b67c94d7c57..8ae498a28fd 100644 |
42 |
--- a/media-video/vdr/files/vdr-2.2.0-jpeg-9c.patch |
43 |
+++ b/media-video/vdr/files/vdr-2.2.0-jpeg-9c.patch |
44 |
@@ -1,5 +1,7 @@ |
45 |
https://bugs.gentoo.org/667934 |
46 |
|
47 |
+Signed-off-by: Martin Dummer <martin.dummer@×××.net> |
48 |
+Reviewed-by: Joerg Bornkessel <hd_brummy@g.o> |
49 |
--- a/tools.c |
50 |
+++ b/tools.c |
51 |
@@ -1221,15 +1221,15 @@ |
52 |
|
53 |
diff --git a/media-video/vdr/files/vdr-2.4.1_gentoo.patch b/media-video/vdr/files/vdr-2.4.1_gentoo.patch |
54 |
new file mode 100644 |
55 |
index 00000000000..71aca7f5f96 |
56 |
--- /dev/null |
57 |
+++ b/media-video/vdr/files/vdr-2.4.1_gentoo.patch |
58 |
@@ -0,0 +1,66 @@ |
59 |
+this patch will disable some handling in the core Makefile |
60 |
+as we use for Linux FHS a different handling in gentoo |
61 |
+demoplugins from core vdr install disabled |
62 |
+support from Linguas variable |
63 |
+ |
64 |
+Signed-off-by: Martin Dummer <martin.dummer@×××.net> |
65 |
+Reviewed-by: Joerg Bornkessel <hd_brummy@g.o> |
66 |
+--- a/Makefile |
67 |
++++ b/Makefile |
68 |
+@@ -182,7 +182,7 @@ |
69 |
+ |
70 |
+ PODIR = po |
71 |
+ LOCALEDIR = locale |
72 |
+-I18Npo = $(wildcard $(PODIR)/*.po) |
73 |
++I18Npo = $(foreach dir,$(LINGUAS),$(wildcard $(PODIR)/$(dir)*.po)) |
74 |
+ I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) |
75 |
+ I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr.mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) |
76 |
+ I18Npot = $(PODIR)/vdr.pot |
77 |
+@@ -209,7 +209,7 @@ |
78 |
+ |
79 |
+ install-i18n: i18n |
80 |
+ @mkdir -p $(DESTDIR)$(LOCDIR) |
81 |
+- cp -r $(LOCALEDIR)/* $(DESTDIR)$(LOCDIR) |
82 |
++ @(cd $(LOCALEDIR); for linguas in $(LINGUAS); do [ "$$linguas" = "en" ] && continue; cp -r --parents $$linguas* $(DESTDIR)$(LOCDIR); done) |
83 |
+ |
84 |
+ # The 'include' directory (for plugins): |
85 |
+ |
86 |
+@@ -283,12 +283,11 @@ |
87 |
+ |
88 |
+ install-dirs: |
89 |
+ @mkdir -p $(DESTDIR)$(VIDEODIR) |
90 |
+- @mkdir -p $(DESTDIR)$(CONFDIR) |
91 |
+ @mkdir -p $(DESTDIR)$(ARGSDIR) |
92 |
+- @mkdir -p $(DESTDIR)$(CACHEDIR) |
93 |
+ @mkdir -p $(DESTDIR)$(RESDIR) |
94 |
+ |
95 |
+ install-conf: install-dirs |
96 |
++ @mkdir -p $(DESTDIR)$(CONFDIR) |
97 |
+ @cp -pn *.conf $(DESTDIR)$(CONFDIR) |
98 |
+ |
99 |
+ # Documentation: |
100 |
+@@ -296,9 +295,9 @@ |
101 |
+ install-doc: |
102 |
+ @mkdir -p $(DESTDIR)$(MANDIR)/man1 |
103 |
+ @mkdir -p $(DESTDIR)$(MANDIR)/man5 |
104 |
+- @gzip -c vdr.1 > $(DESTDIR)$(MANDIR)/man1/vdr.1.gz |
105 |
+- @gzip -c vdr.5 > $(DESTDIR)$(MANDIR)/man5/vdr.5.gz |
106 |
+- @gzip -c svdrpsend.1 > $(DESTDIR)$(MANDIR)/man1/svdrpsend.1.gz |
107 |
++ @cp vdr.1 $(DESTDIR)$(MANDIR)/man1/ |
108 |
++ @cp vdr.5 $(DESTDIR)$(MANDIR)/man5/ |
109 |
++ @cp svdrpsend.1 $(DESTDIR)$(MANDIR)/man1/ |
110 |
+ |
111 |
+ # Plugins: |
112 |
+ |
113 |
+@@ -315,8 +314,9 @@ |
114 |
+ # Includes: |
115 |
+ |
116 |
+ install-includes: include-dir |
117 |
+- @mkdir -p $(DESTDIR)$(INCDIR) |
118 |
+- @cp -pLR include/vdr include/libsi $(DESTDIR)$(INCDIR) |
119 |
++ @mkdir -p $(DESTDIR)$(INCDIR)/vdr $(DESTDIR)$(INCDIR)/vdr/libsi |
120 |
++ @cp -pLR include/vdr $(DESTDIR)$(INCDIR) |
121 |
++ @cp -pLR include/libsi Make.config $(DESTDIR)$(INCDIR)/vdr |
122 |
+ |
123 |
+ # pkg-config file: |
124 |
+ |
125 |
|
126 |
diff --git a/media-video/vdr/files/vdr-2.4.1_makefile-variables.patch b/media-video/vdr/files/vdr-2.4.1_makefile-variables.patch |
127 |
new file mode 100644 |
128 |
index 00000000000..30cd39528f9 |
129 |
--- /dev/null |
130 |
+++ b/media-video/vdr/files/vdr-2.4.1_makefile-variables.patch |
131 |
@@ -0,0 +1,40 @@ |
132 |
+we change some variables in the Makefile |
133 |
+for a better handling in gentoo ebuild |
134 |
+ |
135 |
+Signed-off-by: Joerg Bornkessel <hd_brummy@g.o> ( 22 Dec 2019 ) |
136 |
+diff -Naur vdr-2.4.1.orig/Makefile vdr-2.4.1/Makefile |
137 |
+--- vdr-2.4.1.orig/Makefile 2019-12-22 00:51:31.000000000 +0100 |
138 |
++++ vdr-2.4.1/Makefile 2019-12-22 00:53:34.000000000 +0100 |
139 |
+@@ -54,7 +54,7 @@ |
140 |
+ |
141 |
+ # Output control |
142 |
+ |
143 |
+-ifdef VERBOSE |
144 |
++ifeq ($(VERBOSE),1) |
145 |
+ Q = |
146 |
+ else |
147 |
+ Q = @ |
148 |
+@@ -89,7 +89,7 @@ |
149 |
+ ifdef HDRDIR |
150 |
+ HDRDIR := -I$(HDRDIR) |
151 |
+ endif |
152 |
+-ifndef NO_KBD |
153 |
++ifeq ($(USE_KBD),1) |
154 |
+ DEFINES += -DREMOTE_KBD |
155 |
+ endif |
156 |
+ ifdef REMOTE |
157 |
+@@ -98,12 +98,12 @@ |
158 |
+ ifdef VDR_USER |
159 |
+ DEFINES += -DVDR_USER=\"$(VDR_USER)\" |
160 |
+ endif |
161 |
+-ifdef BIDI |
162 |
++ifeq ($(BIDI),1) |
163 |
+ INCLUDES += $(shell pkg-config --cflags fribidi) |
164 |
+ DEFINES += -DBIDI |
165 |
+ LIBS += $(shell pkg-config --libs fribidi) |
166 |
+ endif |
167 |
+-ifdef SDNOTIFY |
168 |
++ifeq ($(SDNOTIFY),1) |
169 |
+ INCLUDES += $(shell pkg-config --silence-errors --cflags libsystemd-daemon || pkg-config --cflags libsystemd) |
170 |
+ DEFINES += -DSDNOTIFY |
171 |
+ LIBS += $(shell pkg-config --silence-errors --libs libsystemd-daemon || pkg-config --libs libsystemd) |
172 |
|
173 |
diff --git a/media-video/vdr/files/vdr-2.4_remove_plugins.patch b/media-video/vdr/files/vdr-2.4_remove_plugins.patch |
174 |
new file mode 100644 |
175 |
index 00000000000..56997968d60 |
176 |
--- /dev/null |
177 |
+++ b/media-video/vdr/files/vdr-2.4_remove_plugins.patch |
178 |
@@ -0,0 +1,25 @@ |
179 |
+we do not install any plugins from core vdr |
180 |
+ |
181 |
+Signed-off-by: Martin Dummer <martin.dummer@×××.net> |
182 |
+Reviewed-by: Joerg Bornkessel <hd_brummy@g.o> |
183 |
+diff -Naur vdr-2.4.0.orig/Makefile vdr-2.4.0/Makefile |
184 |
+--- vdr-2.4.0.orig/Makefile 2017-05-29 10:48:42.000000000 +0200 |
185 |
++++ vdr-2.4.0/Makefile 2019-03-14 12:08:56.857495048 +0100 |
186 |
+@@ -125,7 +125,7 @@ |
187 |
+ VDRVERSION = $(shell sed -ne '/define VDRVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h) |
188 |
+ APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h) |
189 |
+ |
190 |
+-all: vdr i18n plugins |
191 |
++all: vdr i18n |
192 |
+ |
193 |
+ # Implicit rules: |
194 |
+ |
195 |
+@@ -271,7 +271,7 @@ |
196 |
+ |
197 |
+ # Install the files (note that 'install-pc' must be first!): |
198 |
+ |
199 |
+-install: install-pc install-bin install-conf install-doc install-plugins install-i18n install-includes |
200 |
++install: install-pc install-bin install-conf install-doc install-i18n install-includes |
201 |
+ |
202 |
+ # VDR binary: |
203 |
+ |
204 |
|
205 |
diff --git a/media-video/vdr/metadata.xml b/media-video/vdr/metadata.xml |
206 |
index acf02374158..eea6df4fdb2 100644 |
207 |
--- a/media-video/vdr/metadata.xml |
208 |
+++ b/media-video/vdr/metadata.xml |
209 |
@@ -20,6 +20,7 @@ |
210 |
<use> |
211 |
<flag name="alternatechannel">Use alternate channel on record</flag> |
212 |
<flag name="bidi">fribidi support, for languages, written from right to left</flag> |
213 |
+ <flag name="demoplugins">Install demo and example plugins coming with vanilla vdr</flag> |
214 |
<flag name="graphtft">support for vdr-graphtft plugin up from version 0.1.7</flag> |
215 |
<flag name="html">Install HTML documentation</flag> |
216 |
<flag name="keyboard">enable keyboard support as remote device</flag> |
217 |
@@ -31,5 +32,6 @@ |
218 |
<flag name="pinplugin">Support for <pkg>media-plugins/vdr-pin</pkg></flag> |
219 |
<flag name="resumereset">rreset resume of EOF</flag> |
220 |
<flag name="ttxtsubs">support for <pkg>media-plugins/vdr-ttxtsubs</pkg></flag> |
221 |
+ <flag name="verbose">enable full output on compile</flag> |
222 |
</use> |
223 |
</pkgmetadata> |
224 |
|
225 |
diff --git a/media-video/vdr/vdr-2.4.1.ebuild b/media-video/vdr/vdr-2.4.1.ebuild |
226 |
new file mode 100644 |
227 |
index 00000000000..d2f923913af |
228 |
--- /dev/null |
229 |
+++ b/media-video/vdr/vdr-2.4.1.ebuild |
230 |
@@ -0,0 +1,201 @@ |
231 |
+# Copyright 2019 Gentoo Authors |
232 |
+# Distributed under the terms of the GNU General Public License v2 |
233 |
+ |
234 |
+EAPI=7 |
235 |
+ |
236 |
+inherit flag-o-matic multilib toolchain-funcs |
237 |
+ |
238 |
+DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
239 |
+HOMEPAGE="http://www.tvdr.de/" |
240 |
+SRC_URI="ftp://ftp.tvdr.de/vdr/${P}.tar.bz2 |
241 |
+ mainmenuhooks? ( http://vdr.websitec.de/download/${PN}/${P}/${P}_mainmenuhook-1.0.1.patch.bz2 ) |
242 |
+ menuorg? ( https://projects.vdr-developer.org/projects/plg-menuorg/repository/revisions/master/raw/vdr-patch/vdr-menuorg-2.3.x.diff ) |
243 |
+ naludump? ( http://www.udo-richter.de/vdr/files/vdr-2.1.5-naludump-0.1.diff ) |
244 |
+ pinplugin? ( http://vdr.websitec.de/download/${PN}/${P}/${P}_pinplugin.patch.bz2 ) |
245 |
+ ttxtsubs? ( http://vdr.websitec.de/download/${PN}/${P}/${PN}-2.4.0-ttxtsubs.patch.bz2 )" |
246 |
+ |
247 |
+LICENSE="GPL-2+" |
248 |
+SLOT="0" |
249 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
250 |
+IUSE="bidi debug demoplugins html keyboard mainmenuhooks menuorg naludump pinplugin systemd ttxtsubs verbose" |
251 |
+ |
252 |
+COMMON_DEPEND=" |
253 |
+ virtual/jpeg:* |
254 |
+ sys-libs/libcap |
255 |
+ >=media-libs/fontconfig-2.4.2 |
256 |
+ >=media-libs/freetype-2" |
257 |
+DEPEND="${COMMON_DEPEND} |
258 |
+ >=virtual/linuxtv-dvb-headers-5.3" |
259 |
+RDEPEND="${COMMON_DEPEND} |
260 |
+ dev-lang/perl |
261 |
+ media-tv/gentoo-vdr-scripts |
262 |
+ media-fonts/corefonts |
263 |
+ bidi? ( dev-libs/fribidi ) |
264 |
+ systemd? ( sys-apps/systemd )" |
265 |
+BDEPEND="sys-devel/gettext" |
266 |
+ |
267 |
+REQUIRED_USE="pinplugin? ( !mainmenuhooks )" |
268 |
+ |
269 |
+CONF_DIR="/etc/vdr" |
270 |
+CAP_FILE="${S}/capabilities.sh" |
271 |
+CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
272 |
+ |
273 |
+pkg_setup() { |
274 |
+ use debug && append-flags -g |
275 |
+ |
276 |
+ PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
277 |
+ |
278 |
+ tc-export CC CXX AR |
279 |
+} |
280 |
+ |
281 |
+add_cap() { |
282 |
+ local arg |
283 |
+ for arg; do |
284 |
+ CAPS="${CAPS}\n${arg}=1" |
285 |
+ done |
286 |
+} |
287 |
+ |
288 |
+lang_po() { |
289 |
+ LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) |
290 |
+} |
291 |
+ |
292 |
+src_configure() { |
293 |
+ # support languages, written from right to left |
294 |
+ export "BIDI=$(usex bidi 1 0)" |
295 |
+ # systemd notification support |
296 |
+ export "SDNOTIFY=$(usex systemd 1 0)" |
297 |
+ # with/without keyboard |
298 |
+ export "USE_KBD=$(usex keyboard 1 0)" |
299 |
+ # detailed compile output for debug |
300 |
+ export "VERBOSE=$(usex verbose 1 0)" |
301 |
+} |
302 |
+ |
303 |
+src_prepare() { |
304 |
+ # apply maintenance-patches |
305 |
+ ebegin "Changing paths for gentoo" |
306 |
+ |
307 |
+ local DVBDIR=/usr/include |
308 |
+ local i |
309 |
+ for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do |
310 |
+ [[ -d ${i} ]] || continue |
311 |
+ if [[ -f ${i}/linux/dvb/dmx.h ]]; then |
312 |
+ einfo "Found DVB header files in ${i}" |
313 |
+ DVBDIR=${i} |
314 |
+ break |
315 |
+ fi |
316 |
+ done |
317 |
+ |
318 |
+ # checking for s2api headers |
319 |
+ local api_version |
320 |
+ api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
321 |
+ api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
322 |
+ |
323 |
+ if [[ ${api_version:-0} -lt 5*3 ]]; then |
324 |
+ eerror "DVB header files do not contain s2api support or too old for ${P}" |
325 |
+ eerror "You cannot compile VDR against old dvb-header" |
326 |
+ die "DVB headers too old" |
327 |
+ fi |
328 |
+ |
329 |
+ cat > Make.config <<-EOT || die "cannot write to Make.config" |
330 |
+ # |
331 |
+ # Generated by ebuild ${PF} |
332 |
+ # |
333 |
+ PREFIX = /usr |
334 |
+ DVBDIR = ${DVBDIR} |
335 |
+ PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
336 |
+ CONFDIR = ${CONF_DIR} |
337 |
+ ARGSDIR = \$(CONFDIR)/conf.d |
338 |
+ VIDEODIR = /var/vdr/video |
339 |
+ LOCDIR = \$(PREFIX)/share/locale |
340 |
+ INCDIR = \$(PREFIX)/include |
341 |
+ |
342 |
+ DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
343 |
+ INCLUDES += -I\$(DVBDIR) |
344 |
+ |
345 |
+ # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr |
346 |
+ # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) |
347 |
+ LIBDIR = ${PLUGIN_LIBDIR} |
348 |
+ PCDIR = /usr/$(get_libdir)/pkgconfig |
349 |
+ |
350 |
+ EOT |
351 |
+ eend 0 |
352 |
+ |
353 |
+ eapply "${FILESDIR}/${P}_gentoo.patch" |
354 |
+ eapply "${FILESDIR}/vdr-2.2.0-jpeg-9c.patch" |
355 |
+ use demoplugins || eapply "${FILESDIR}/vdr-2.4_remove_plugins.patch" |
356 |
+ eapply "${FILESDIR}/${P}_makefile-variables.patch" |
357 |
+ |
358 |
+ # works |
359 |
+ use naludump && eapply "${DISTDIR}/${PN}-2.1.5-naludump-0.1.diff" |
360 |
+# # request to upstream for new patch |
361 |
+# use permashift && eapply "${DISTDIR}/vdr-2.3-patch-for-permashift.diff" |
362 |
+ #pinplugin works |
363 |
+ use pinplugin && eapply "${WORKDIR}/${P}_pinplugin.patch" |
364 |
+ # ttxtsubs works |
365 |
+ use ttxtsubs && eapply "${WORKDIR}/${PN}-2.4.0-ttxtsubs.patch" |
366 |
+ # menuorg works |
367 |
+ use menuorg && eapply "${DISTDIR}/vdr-menuorg-2.3.x.diff" |
368 |
+ # mainmenuhooks, works |
369 |
+ use mainmenuhooks && eapply "${WORKDIR}/${P}_mainmenuhook-1.0.1.patch" |
370 |
+ |
371 |
+ add_cap CAP_UTF8 \ |
372 |
+ CAP_IRCTRL_RUNTIME_PARAM \ |
373 |
+ CAP_VFAT_RUNTIME_PARAM \ |
374 |
+ CAP_CHUID \ |
375 |
+ CAP_SHUTDOWN_AUTO_RETRY |
376 |
+ |
377 |
+ echo -e ${CAPS} > "${CAP_FILE}" || die "cannot write to CAP_FILE" |
378 |
+ |
379 |
+ # LINGUAS support |
380 |
+ einfo "\n \t VDR supports the LINGUAS values" |
381 |
+ |
382 |
+ lang_po |
383 |
+ |
384 |
+ einfo "\t Please set one of this values in your sytem make.conf" |
385 |
+ einfo "\t LINGUAS=\"${LING_PO}\"\n" |
386 |
+ |
387 |
+ if [[ -z ${LINGUAS} ]]; then |
388 |
+ einfo "\n \t No values in LINGUAS=" |
389 |
+ einfo "\t You will get only english text on OSD \n" |
390 |
+ fi |
391 |
+ |
392 |
+ strip-linguas ${LING_PO} en |
393 |
+ |
394 |
+ default |
395 |
+} |
396 |
+ |
397 |
+src_install() { |
398 |
+ # trick the makefile to not create a VIDEODIR by supplying it with an |
399 |
+ # existing directory |
400 |
+ emake VIDEODIR="/" DESTDIR="${ED}" install |
401 |
+ |
402 |
+ keepdir "${PLUGIN_LIBDIR}" |
403 |
+ |
404 |
+ # backup for plugins they don't be able to create this dir |
405 |
+ keepdir "${CONF_DIR}/plugins" |
406 |
+ |
407 |
+ if use html; then |
408 |
+ local HTML_DOCS=( *.html ) |
409 |
+ fi |
410 |
+ local DOCS=( MANUAL INSTALL README* HISTORY CONTRIBUTORS UPDATE-2* ) |
411 |
+ einstalldocs |
412 |
+ |
413 |
+ insinto /usr/share/vdr |
414 |
+ doins "${CAP_FILE}" |
415 |
+ |
416 |
+ fowners vdr:vdr "${CONF_DIR}" -R |
417 |
+} |
418 |
+ |
419 |
+pkg_postinst() { |
420 |
+ elog "Please read the /usr/share/doc/${PF}/UPDATE-2.4" |
421 |
+ elog "for major changes in this version\n" |
422 |
+ |
423 |
+ elog "It is a good idea to run vdrplugin-rebuild now.\n" |
424 |
+ |
425 |
+ elog "To get nice symbols in OSD we recommend to install" |
426 |
+ elog "\t1. emerge media-fonts/vdrsymbols-ttf" |
427 |
+ elog "\t2. select font VDRSymbolsSans in Setup\n" |
428 |
+ |
429 |
+ elog "To get an idea how to proceed now, have a look at our vdr-guide:" |
430 |
+ elog "\thttps://wiki.gentoo.org/wiki/VDR" |
431 |
+} |