1 |
commit: 862ca1738ccf75e258934ba641d4bdb98f0d2a44 |
2 |
Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 2 20:32:52 2021 +0000 |
4 |
Commit: Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 2 20:33:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=862ca173 |
7 |
|
8 |
media-video/vdr: version bump |
9 |
|
10 |
in this bump is also the gcc11 compile error |
11 |
fixed by patch |
12 |
we skip here vdr-2.4.6 and go straid to vdr-2.4.7 |
13 |
|
14 |
Closes: https://bugs.gentoo.org/786882 |
15 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
16 |
Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org> |
17 |
|
18 |
media-video/vdr/Manifest | 1 + |
19 |
media-video/vdr/files/vdr-2.4.7_gcc11.patch | 292 ++++++++++++++++++++++++++++ |
20 |
media-video/vdr/vdr-2.4.7.ebuild | 209 ++++++++++++++++++++ |
21 |
3 files changed, 502 insertions(+) |
22 |
|
23 |
diff --git a/media-video/vdr/Manifest b/media-video/vdr/Manifest |
24 |
index 7611c3c1c5a..a46fe47fab9 100644 |
25 |
--- a/media-video/vdr/Manifest |
26 |
+++ b/media-video/vdr/Manifest |
27 |
@@ -10,4 +10,5 @@ DIST vdr-2.4.1_pinplugin.patch.bz2 8641 BLAKE2B 339bb23ed0f505087bdbbefb192824d5 |
28 |
DIST vdr-2.4.6.tar.bz2 951272 BLAKE2B 52e92eb7e5fdc9bb9209cbef61f8db47e2e9a4750c75bc5b4f88069f95e54faac6b1af5b4c77a6a53990d8f083b6ff8ddeb33418386081c128617217129374fd SHA512 bed8b7740a97b681cf4273c01b6ce80046c1e5914c06d12cffc46fdca615331d0e97771ec09697cf72897583fcf272d83b6bf188ef476715cd0c0c5fd4c5e9d4 |
29 |
DIST vdr-2.4.6_pinplugin.patch.bz2 5176 BLAKE2B 142ad6551b8e37d223acf86f8c2f511cf2cb3664b5ff968bac5e44420c56bf5fdb974360df574141c424cd7a4b1e1489c4a504207420af10f722a77e6d2bad2f SHA512 d5c7263b908302ebf88a5e5ddcb658f56ee92656b40797fd48af1ff9852454adc1d1672cc97411e7744cc31a56f4d0f51df5ece102c21b2aa25d87e3c3c8fe12 |
30 |
DIST vdr-2.4.6_ttxtsubs_v2.patch.bz2 51971 BLAKE2B e4915314e8f659df1c3e0ff631fd0c3dcec89053ff727fd28400dc6eecc49c1d4743a9bedaf3b11fce03fc6082309d4b4658d00a5b01aa5cbe8686e05412f882 SHA512 14c7b4397ba65e0ff9a5fb0705872f1cb6f1cdd1752b14f83f260540da25b5957632900232f83904c3d4fd6759e537c85bda2cce61455729eab3050a96441548 |
31 |
+DIST vdr-2.4.7.tbz2 919632 BLAKE2B be4e1ec365330855e4b2b26f44b1f35dc323e4783e96ef344a67b3e9fe2c0499760ab0f3d27c5e3bdddf5a65ebb65b0c81a62092301d34370aa19d0dd63bb1ab SHA512 41b8453bc6cdbb0db728b5d7d6624ab3ff9034b58ba443a8196f5fcc9fa78d18698cc91905890244e69d482ffc493374e6da2c97baed95fe742b888bdc63e42b |
32 |
DIST vdr-menuorg-2.3.x.diff 8852 BLAKE2B 19b98d51a69f52ecda5500f51ef1741a8397953b20c490055eab0393da5f56ff9598c3e1e8ed8b915f5877e08deeb9ba7a9ef8d9356ad3a1fa12e3778869174a SHA512 7b41c3a529858a4953a57f21619ea01864e140cc1755ee0b03caf1c4de41e80c3f805653502bc8d39d02a4dfcddf720acd4a8c8bd91f4871eef31d86e8e915c0 |
33 |
|
34 |
diff --git a/media-video/vdr/files/vdr-2.4.7_gcc11.patch b/media-video/vdr/files/vdr-2.4.7_gcc11.patch |
35 |
new file mode 100644 |
36 |
index 00000000000..866b018b5b7 |
37 |
--- /dev/null |
38 |
+++ b/media-video/vdr/files/vdr-2.4.7_gcc11.patch |
39 |
@@ -0,0 +1,292 @@ |
40 |
+https://bugs.gentoo.org/786882 |
41 |
+ |
42 |
+compile fix for gcc-11 |
43 |
+ |
44 |
+Signed-off-by: Joerg Bornkessel <hd_brummy@g.o> (02 May 2021) |
45 |
+diff -Naur vdr-2.4.7.orig/channels.c vdr-2.4.7/channels.c |
46 |
+--- vdr-2.4.7.orig/channels.c 2021-05-02 19:34:32.312653108 +0200 |
47 |
++++ vdr-2.4.7/channels.c 2021-05-02 19:39:19.241653108 +0200 |
48 |
+@@ -11,6 +11,7 @@ |
49 |
+ #include <ctype.h> |
50 |
+ #include "device.h" |
51 |
+ #include "libsi/si.h" |
52 |
++using namespace std; |
53 |
+ |
54 |
+ // IMPORTANT NOTE: in the 'sscanf()' calls there is a blank after the '%d' |
55 |
+ // format characters in order to allow any number of blanks after a numeric |
56 |
+diff -Naur vdr-2.4.7.orig/ci.c vdr-2.4.7/ci.c |
57 |
+--- vdr-2.4.7.orig/ci.c 2021-05-02 19:34:32.313653108 +0200 |
58 |
++++ vdr-2.4.7/ci.c 2021-05-02 19:49:53.216653108 +0200 |
59 |
+@@ -27,6 +27,8 @@ |
60 |
+ #include "skins.h" |
61 |
+ #include "tools.h" |
62 |
+ |
63 |
++using namespace std; |
64 |
++ |
65 |
+ // Set these to 'true' for debug output: |
66 |
+ static bool DumpTPDUDataTransfer = false; |
67 |
+ static bool DebugProtocol = false; |
68 |
+diff -Naur vdr-2.4.7.orig/device.c vdr-2.4.7/device.c |
69 |
+--- vdr-2.4.7.orig/device.c 2021-05-02 19:34:32.313653108 +0200 |
70 |
++++ vdr-2.4.7/device.c 2021-05-02 19:43:19.071653108 +0200 |
71 |
+@@ -20,6 +20,8 @@ |
72 |
+ #include "status.h" |
73 |
+ #include "transfer.h" |
74 |
+ |
75 |
++using namespace std; |
76 |
++ |
77 |
+ // --- cLiveSubtitle --------------------------------------------------------- |
78 |
+ |
79 |
+ class cLiveSubtitle : public cReceiver { |
80 |
+diff -Naur vdr-2.4.7.orig/diseqc.c vdr-2.4.7/diseqc.c |
81 |
+--- vdr-2.4.7.orig/diseqc.c 2021-05-02 19:34:32.314653108 +0200 |
82 |
++++ vdr-2.4.7/diseqc.c 2021-05-02 19:50:14.177653108 +0200 |
83 |
+@@ -14,6 +14,8 @@ |
84 |
+ #include "sources.h" |
85 |
+ #include "thread.h" |
86 |
+ |
87 |
++using namespace std; |
88 |
++ |
89 |
+ #define ALL_DEVICES (~0) // all bits set to '1' |
90 |
+ #define MAX_DEVICES 32 // each bit in a 32-bit integer represents one device |
91 |
+ |
92 |
+diff -Naur vdr-2.4.7.orig/dvbdevice.c vdr-2.4.7/dvbdevice.c |
93 |
+--- vdr-2.4.7.orig/dvbdevice.c 2021-05-02 19:34:32.314653108 +0200 |
94 |
++++ vdr-2.4.7/dvbdevice.c 2021-05-02 19:50:35.634653108 +0200 |
95 |
+@@ -21,6 +21,8 @@ |
96 |
+ #include "menuitems.h" |
97 |
+ #include "sourceparams.h" |
98 |
+ |
99 |
++using namespace std; |
100 |
++ |
101 |
+ static int DvbApiVersion = 0x0000; // the version of the DVB driver actually in use (will be determined by the first device created) |
102 |
+ |
103 |
+ #define DVBS_TUNE_TIMEOUT 9000 //ms |
104 |
+diff -Naur vdr-2.4.7.orig/dvbplayer.c vdr-2.4.7/dvbplayer.c |
105 |
+--- vdr-2.4.7.orig/dvbplayer.c 2021-05-02 19:34:32.314653108 +0200 |
106 |
++++ vdr-2.4.7/dvbplayer.c 2021-05-02 19:43:47.344653108 +0200 |
107 |
+@@ -15,6 +15,8 @@ |
108 |
+ #include "thread.h" |
109 |
+ #include "tools.h" |
110 |
+ |
111 |
++using namespace std; |
112 |
++ |
113 |
+ // --- cPtsIndex ------------------------------------------------------------- |
114 |
+ |
115 |
+ #define PTSINDEX_ENTRIES 1024 |
116 |
+diff -Naur vdr-2.4.7.orig/dvbspu.c vdr-2.4.7/dvbspu.c |
117 |
+--- vdr-2.4.7.orig/dvbspu.c 2021-05-02 19:34:32.314653108 +0200 |
118 |
++++ vdr-2.4.7/dvbspu.c 2021-05-02 19:44:08.952653108 +0200 |
119 |
+@@ -17,6 +17,8 @@ |
120 |
+ #include <inttypes.h> |
121 |
+ #include <math.h> |
122 |
+ |
123 |
++using namespace std; |
124 |
++ |
125 |
+ /* |
126 |
+ * cDvbSpubitmap: |
127 |
+ * |
128 |
+diff -Naur vdr-2.4.7.orig/dvbsubtitle.c vdr-2.4.7/dvbsubtitle.c |
129 |
+--- vdr-2.4.7.orig/dvbsubtitle.c 2021-05-02 19:34:32.315653108 +0200 |
130 |
++++ vdr-2.4.7/dvbsubtitle.c 2021-05-02 19:44:42.537653108 +0200 |
131 |
+@@ -16,6 +16,8 @@ |
132 |
+ #include "device.h" |
133 |
+ #include "libsi/si.h" |
134 |
+ |
135 |
++using namespace std; |
136 |
++ |
137 |
+ #define PAGE_COMPOSITION_SEGMENT 0x10 |
138 |
+ #define REGION_COMPOSITION_SEGMENT 0x11 |
139 |
+ #define CLUT_DEFINITION_SEGMENT 0x12 |
140 |
+diff -Naur vdr-2.4.7.orig/eit.c vdr-2.4.7/eit.c |
141 |
+--- vdr-2.4.7.orig/eit.c 2021-05-02 19:34:32.315653108 +0200 |
142 |
++++ vdr-2.4.7/eit.c 2021-05-02 19:45:16.962653108 +0200 |
143 |
+@@ -18,6 +18,8 @@ |
144 |
+ #include "libsi/section.h" |
145 |
+ #include "libsi/descriptor.h" |
146 |
+ |
147 |
++using namespace std; |
148 |
++ |
149 |
+ #define VALID_TIME (31536000 * 2) // two years |
150 |
+ |
151 |
+ #define DBGEIT 0 |
152 |
+diff -Naur vdr-2.4.7.orig/font.c vdr-2.4.7/font.c |
153 |
+--- vdr-2.4.7.orig/font.c 2021-05-02 19:34:32.315653108 +0200 |
154 |
++++ vdr-2.4.7/font.c 2021-05-02 19:51:53.540653108 +0200 |
155 |
+@@ -21,6 +21,8 @@ |
156 |
+ #include "osd.h" |
157 |
+ #include "tools.h" |
158 |
+ |
159 |
++using namespace std; |
160 |
++ |
161 |
+ const char *DefaultFontOsd = "Sans Serif:Bold"; |
162 |
+ const char *DefaultFontSml = "Sans Serif"; |
163 |
+ const char *DefaultFontFix = "Courier:Bold"; |
164 |
+diff -Naur vdr-2.4.7.orig/menu.c vdr-2.4.7/menu.c |
165 |
+--- vdr-2.4.7.orig/menu.c 2021-05-02 19:34:32.317653108 +0200 |
166 |
++++ vdr-2.4.7/menu.c 2021-05-02 19:45:44.891653108 +0200 |
167 |
+@@ -33,6 +33,8 @@ |
168 |
+ #include "transfer.h" |
169 |
+ #include "videodir.h" |
170 |
+ |
171 |
++using namespace std; |
172 |
++ |
173 |
+ #define MAXWAIT4EPGINFO 3 // seconds |
174 |
+ #define MODETIMEOUT 3 // seconds |
175 |
+ #define NEWTIMERLIMIT 120 // seconds until the start time of a new timer created from the Schedule menu, |
176 |
+diff -Naur vdr-2.4.7.orig/menuitems.c vdr-2.4.7/menuitems.c |
177 |
+--- vdr-2.4.7.orig/menuitems.c 2021-05-02 19:34:32.318653108 +0200 |
178 |
++++ vdr-2.4.7/menuitems.c 2021-05-02 19:46:02.483653108 +0200 |
179 |
+@@ -17,6 +17,8 @@ |
180 |
+ #include "skins.h" |
181 |
+ #include "status.h" |
182 |
+ |
183 |
++using namespace std; |
184 |
++ |
185 |
+ #define AUTO_ADVANCE_TIMEOUT 1500 // ms before auto advance when entering characters via numeric keys |
186 |
+ |
187 |
+ const char *FileNameChars = trNOOP("FileNameChars$ abcdefghijklmnopqrstuvwxyz0123456789-.,#~\\^$[]|()*+?{}/:%@&"); |
188 |
+diff -Naur vdr-2.4.7.orig/mtd.c vdr-2.4.7/mtd.c |
189 |
+--- vdr-2.4.7.orig/mtd.c 2021-05-02 19:34:32.318653108 +0200 |
190 |
++++ vdr-2.4.7/mtd.c 2021-05-02 19:46:23.355653108 +0200 |
191 |
+@@ -10,6 +10,8 @@ |
192 |
+ #include "mtd.h" |
193 |
+ #include "receiver.h" |
194 |
+ |
195 |
++using namespace std; |
196 |
++ |
197 |
+ //#define DEBUG_MTD |
198 |
+ #ifdef DEBUG_MTD |
199 |
+ #define DBGMTD(a...) dsyslog(a) |
200 |
+diff -Naur vdr-2.4.7.orig/nit.c vdr-2.4.7/nit.c |
201 |
+--- vdr-2.4.7.orig/nit.c 2021-05-02 19:34:32.318653108 +0200 |
202 |
++++ vdr-2.4.7/nit.c 2021-05-02 19:52:19.012653108 +0200 |
203 |
+@@ -16,6 +16,8 @@ |
204 |
+ #include "libsi/descriptor.h" |
205 |
+ #include "tools.h" |
206 |
+ |
207 |
++using namespace std; |
208 |
++ |
209 |
+ #define DVB_SYSTEM_1 0 // see also dvbdevice.c |
210 |
+ #define DVB_SYSTEM_2 1 |
211 |
+ |
212 |
+diff -Naur vdr-2.4.7.orig/osd.c vdr-2.4.7/osd.c |
213 |
+--- vdr-2.4.7.orig/osd.c 2021-05-02 19:34:32.318653108 +0200 |
214 |
++++ vdr-2.4.7/osd.c 2021-05-02 19:47:12.501653108 +0200 |
215 |
+@@ -16,6 +16,8 @@ |
216 |
+ #include "device.h" |
217 |
+ #include "tools.h" |
218 |
+ |
219 |
++using namespace std; |
220 |
++ |
221 |
+ tColor HsvToColor(double H, double S, double V) |
222 |
+ { |
223 |
+ if (S > 0) { |
224 |
+diff -Naur vdr-2.4.7.orig/osdbase.c vdr-2.4.7/osdbase.c |
225 |
+--- vdr-2.4.7.orig/osdbase.c 2021-05-02 19:34:32.318653108 +0200 |
226 |
++++ vdr-2.4.7/osdbase.c 2021-05-02 19:46:53.516653108 +0200 |
227 |
+@@ -15,6 +15,8 @@ |
228 |
+ #include "remote.h" |
229 |
+ #include "status.h" |
230 |
+ |
231 |
++using namespace std; |
232 |
++ |
233 |
+ // --- cOsdItem -------------------------------------------------------------- |
234 |
+ |
235 |
+ cOsdItem::cOsdItem(eOSState State) |
236 |
+diff -Naur vdr-2.4.7.orig/recording.c vdr-2.4.7/recording.c |
237 |
+--- vdr-2.4.7.orig/recording.c 2021-05-02 19:34:32.323653108 +0200 |
238 |
++++ vdr-2.4.7/recording.c 2021-05-02 19:47:45.990653108 +0200 |
239 |
+@@ -31,6 +31,8 @@ |
240 |
+ #include "tools.h" |
241 |
+ #include "videodir.h" |
242 |
+ |
243 |
++using namespace std; |
244 |
++ |
245 |
+ #define SUMMARYFALLBACK |
246 |
+ |
247 |
+ #define RECEXT ".rec" |
248 |
+diff -Naur vdr-2.4.7.orig/remux.c vdr-2.4.7/remux.c |
249 |
+--- vdr-2.4.7.orig/remux.c 2021-05-02 19:34:32.323653108 +0200 |
250 |
++++ vdr-2.4.7/remux.c 2021-05-02 19:48:03.230653108 +0200 |
251 |
+@@ -16,6 +16,8 @@ |
252 |
+ #include "shutdown.h" |
253 |
+ #include "tools.h" |
254 |
+ |
255 |
++using namespace std; |
256 |
++ |
257 |
+ // Set these to 'true' for debug output: |
258 |
+ static bool DebugPatPmt = false; |
259 |
+ static bool DebugFrames = false; |
260 |
+diff -Naur vdr-2.4.7.orig/skinclassic.c vdr-2.4.7/skinclassic.c |
261 |
+--- vdr-2.4.7.orig/skinclassic.c 2021-05-02 19:34:32.324653108 +0200 |
262 |
++++ vdr-2.4.7/skinclassic.c 2021-05-02 19:48:26.271653108 +0200 |
263 |
+@@ -14,6 +14,8 @@ |
264 |
+ #include "themes.h" |
265 |
+ #include "videodir.h" |
266 |
+ |
267 |
++using namespace std; |
268 |
++ |
269 |
+ #define ScrollWidth (Setup.FontOsdSize / 4) |
270 |
+ #define TextFrame (Setup.FontOsdSize / 10) |
271 |
+ #define TextSpacing (Setup.FontOsdSize / 4) |
272 |
+diff -Naur vdr-2.4.7.orig/skinlcars.c vdr-2.4.7/skinlcars.c |
273 |
+--- vdr-2.4.7.orig/skinlcars.c 2021-05-02 19:34:32.324653108 +0200 |
274 |
++++ vdr-2.4.7/skinlcars.c 2021-05-02 19:48:46.063653108 +0200 |
275 |
+@@ -63,6 +63,8 @@ |
276 |
+ #include "symbols/teletext.xpm" |
277 |
+ #include "symbols/volume.xpm" |
278 |
+ |
279 |
++using namespace std; |
280 |
++ |
281 |
+ #define Gap (Setup.FontOsdSize / 5 & ~1) // must be even |
282 |
+ #define TextFrame (Setup.FontOsdSize / TEXT_ALIGN_BORDER) |
283 |
+ #define TextSpacing (2 * TextFrame) |
284 |
+diff -Naur vdr-2.4.7.orig/skinsttng.c vdr-2.4.7/skinsttng.c |
285 |
+--- vdr-2.4.7.orig/skinsttng.c 2021-05-02 19:34:32.324653108 +0200 |
286 |
++++ vdr-2.4.7/skinsttng.c 2021-05-02 19:49:15.256653108 +0200 |
287 |
+@@ -50,6 +50,8 @@ |
288 |
+ #include "symbols/teletext.xpm" |
289 |
+ #include "symbols/volume.xpm" |
290 |
+ |
291 |
++using namespace std; |
292 |
++ |
293 |
+ #define Roundness (Setup.FontOsdSize / 2) |
294 |
+ #define Gap (Setup.FontOsdSize / 5) |
295 |
+ #define ScrollWidth (Setup.FontOsdSize / 4) |
296 |
+diff -Naur vdr-2.4.7.orig/thread.c vdr-2.4.7/thread.c |
297 |
+--- vdr-2.4.7.orig/thread.c 2021-05-02 19:59:16.883653108 +0200 |
298 |
++++ vdr-2.4.7/thread.c 2021-05-02 20:00:08.879653108 +0200 |
299 |
+@@ -24,6 +24,8 @@ |
300 |
+ #include <unistd.h> |
301 |
+ #include "tools.h" |
302 |
+ |
303 |
++using namespace std; |
304 |
++ |
305 |
+ #define ABORT { dsyslog("ABORT!"); cBackTrace::BackTrace(); abort(); } |
306 |
+ |
307 |
+ //#define DEBUG_LOCKING // uncomment this line to activate debug output for locking |
308 |
+diff -Naur vdr-2.4.7.orig/timers.c vdr-2.4.7/timers.c |
309 |
+--- vdr-2.4.7.orig/timers.c 2021-05-02 19:59:16.883653108 +0200 |
310 |
++++ vdr-2.4.7/timers.c 2021-05-02 19:59:52.287653108 +0200 |
311 |
+@@ -17,6 +17,8 @@ |
312 |
+ #include "status.h" |
313 |
+ #include "svdrp.h" |
314 |
+ |
315 |
++using namespace std; |
316 |
++ |
317 |
+ // IMPORTANT NOTE: in the 'sscanf()' calls there is a blank after the '%d' |
318 |
+ // format characters in order to allow any number of blanks after a numeric |
319 |
+ // value! |
320 |
+diff -Naur vdr-2.4.7.orig/tools.c vdr-2.4.7/tools.c |
321 |
+--- vdr-2.4.7.orig/tools.c 2021-05-02 20:02:40.535653108 +0200 |
322 |
++++ vdr-2.4.7/tools.c 2021-05-02 20:03:06.859653108 +0200 |
323 |
+@@ -28,6 +28,8 @@ |
324 |
+ #include "i18n.h" |
325 |
+ #include "thread.h" |
326 |
+ |
327 |
++using namespace std; |
328 |
++ |
329 |
+ int SysLogLevel = 3; |
330 |
+ |
331 |
+ #define MAXSYSLOGBUF 256 |
332 |
|
333 |
diff --git a/media-video/vdr/vdr-2.4.7.ebuild b/media-video/vdr/vdr-2.4.7.ebuild |
334 |
new file mode 100644 |
335 |
index 00000000000..c1f9413c302 |
336 |
--- /dev/null |
337 |
+++ b/media-video/vdr/vdr-2.4.7.ebuild |
338 |
@@ -0,0 +1,209 @@ |
339 |
+# Copyright 2021 Gentoo Authors |
340 |
+# Distributed under the terms of the GNU General Public License v2 |
341 |
+ |
342 |
+EAPI=7 |
343 |
+ |
344 |
+inherit flag-o-matic l10n toolchain-funcs |
345 |
+ |
346 |
+DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
347 |
+HOMEPAGE="http://www.tvdr.de/" |
348 |
+SRC_URI="http://git.tvdr.de/?p=vdr.git;a=snapshot;h=refs/tags/2.4.7;sf=tbz2 -> ${P}.tbz2 |
349 |
+ mainmenuhooks? ( http://vdr.websitec.de/download/${PN}/${PN}-2.4.1/${PN}-2.4.1_mainmenuhook-1.0.1.patch.bz2 ) |
350 |
+ menuorg? ( https://projects.vdr-developer.org/projects/plg-menuorg/repository/revisions/master/raw/vdr-patch/vdr-menuorg-2.3.x.diff ) |
351 |
+ naludump? ( http://www.udo-richter.de/vdr/files/vdr-2.1.5-naludump-0.1.diff ) |
352 |
+ pinplugin? ( http://vdr.websitec.de/download/${PN}/${P}/${PN}-2.4.6_pinplugin.patch.bz2 ) |
353 |
+ ttxtsubs? ( http://vdr.websitec.de/download/${PN}/${P}/${PN}-2.4.6_ttxtsubs_v2.patch.bz2 ) |
354 |
+ permashift? ( http://vdr.websitec.de/download/${PN}/${P}/vdr-2.4-patch-for-permashift.diff.bz2 )" |
355 |
+ |
356 |
+LICENSE="GPL-2+" |
357 |
+SLOT="0" |
358 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
359 |
+IUSE="bidi debug demoplugins html keyboard mainmenuhooks menuorg naludump permashift pinplugin systemd ttxtsubs verbose" |
360 |
+ |
361 |
+COMMON_DEPEND=" |
362 |
+ virtual/jpeg:* |
363 |
+ sys-libs/libcap |
364 |
+ >=media-libs/fontconfig-2.4.2 |
365 |
+ >=media-libs/freetype-2" |
366 |
+DEPEND="${COMMON_DEPEND} |
367 |
+ >=virtual/linuxtv-dvb-headers-5.3" |
368 |
+RDEPEND="${COMMON_DEPEND} |
369 |
+ dev-lang/perl |
370 |
+ media-tv/gentoo-vdr-scripts |
371 |
+ media-fonts/corefonts |
372 |
+ bidi? ( dev-libs/fribidi ) |
373 |
+ systemd? ( sys-apps/systemd )" |
374 |
+BDEPEND="sys-devel/gettext" |
375 |
+ |
376 |
+REQUIRED_USE="pinplugin? ( !mainmenuhooks ) |
377 |
+ permashift? ( !naludump !pinplugin )" |
378 |
+ |
379 |
+CONF_DIR="/etc/vdr" |
380 |
+CAP_FILE="${S}/capabilities.sh" |
381 |
+CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
382 |
+ |
383 |
+pkg_setup() { |
384 |
+ use debug && append-flags -g |
385 |
+ |
386 |
+ PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
387 |
+ |
388 |
+ # use the corrected DIR /var/lib/vdr/* for acct/{user,group) handling |
389 |
+ if has_version ">=media-tv/gentoo-vdr-scripts-3.0_rc1"; then |
390 |
+ VIDEO_DIR="/var/lib/vdr/video" |
391 |
+ else |
392 |
+ VIDEO_DIR="/var/vdr/video" |
393 |
+ fi |
394 |
+ |
395 |
+ tc-export CC CXX AR |
396 |
+} |
397 |
+ |
398 |
+add_cap() { |
399 |
+ local arg |
400 |
+ for arg; do |
401 |
+ CAPS="${CAPS}\n${arg}=1" |
402 |
+ done |
403 |
+} |
404 |
+ |
405 |
+lang_po() { |
406 |
+ LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) |
407 |
+} |
408 |
+ |
409 |
+src_configure() { |
410 |
+ # support languages, written from right to left |
411 |
+ export "BIDI=$(usex bidi 1 0)" |
412 |
+ # systemd notification support |
413 |
+ export "SDNOTIFY=$(usex systemd 1 0)" |
414 |
+ # with/without keyboard |
415 |
+ export "USE_KBD=$(usex keyboard 1 0)" |
416 |
+ # detailed compile output for debug |
417 |
+ export "VERBOSE=$(usex verbose 1 0)" |
418 |
+} |
419 |
+ |
420 |
+src_prepare() { |
421 |
+ # apply maintenance-patches |
422 |
+ ebegin "Changing paths for gentoo" |
423 |
+ |
424 |
+ local DVBDIR=/usr/include |
425 |
+ local i |
426 |
+ for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do |
427 |
+ [[ -d ${i} ]] || continue |
428 |
+ if [[ -f ${i}/linux/dvb/dmx.h ]]; then |
429 |
+ einfo "Found DVB header files in ${i}" |
430 |
+ DVBDIR=${i} |
431 |
+ break |
432 |
+ fi |
433 |
+ done |
434 |
+ |
435 |
+ # checking for s2api headers |
436 |
+ local api_version |
437 |
+ api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
438 |
+ api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
439 |
+ |
440 |
+ if [[ ${api_version:-0} -lt 5*3 ]]; then |
441 |
+ eerror "DVB header files do not contain s2api support or too old for ${P}" |
442 |
+ eerror "You cannot compile VDR against old dvb-header" |
443 |
+ die "DVB headers too old" |
444 |
+ fi |
445 |
+ |
446 |
+ cat > Make.config <<-EOT || die "cannot write to Make.config" |
447 |
+ # |
448 |
+ # Generated by ebuild ${PF} |
449 |
+ # |
450 |
+ PREFIX = /usr |
451 |
+ DVBDIR = ${DVBDIR} |
452 |
+ PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
453 |
+ CONFDIR = ${CONF_DIR} |
454 |
+ ARGSDIR = \$(CONFDIR)/conf.d |
455 |
+ VIDEODIR = ${VIDEO_DIR} |
456 |
+ LOCDIR = \$(PREFIX)/share/locale |
457 |
+ INCDIR = \$(PREFIX)/include |
458 |
+ |
459 |
+ DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
460 |
+ INCLUDES += -I\$(DVBDIR) |
461 |
+ |
462 |
+ # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr |
463 |
+ # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) |
464 |
+ LIBDIR = ${PLUGIN_LIBDIR} |
465 |
+ PCDIR = /usr/$(get_libdir)/pkgconfig |
466 |
+ |
467 |
+ EOT |
468 |
+ eend 0 |
469 |
+ |
470 |
+ eapply "${FILESDIR}/${PN}-2.4.6_gentoo.patch" |
471 |
+ use demoplugins || eapply "${FILESDIR}/vdr-2.4_remove_plugins.patch" |
472 |
+ eapply "${FILESDIR}/${PN}-2.4.6_makefile-variables.patch" |
473 |
+ |
474 |
+ # fix clang/LLVM compile |
475 |
+ eapply "${FILESDIR}/${PN}-2.4.6_clang.patch" |
476 |
+ |
477 |
+ # fix gcc-11 compile |
478 |
+ eapply "${FILESDIR}/${P}_gcc11.patch" |
479 |
+ |
480 |
+ use naludump && eapply "${DISTDIR}/${PN}-2.1.5-naludump-0.1.diff" |
481 |
+ use permashift && eapply "${WORKDIR}/${PN}-2.4-patch-for-permashift.diff" |
482 |
+ use pinplugin && eapply "${WORKDIR}/${PN}-2.4.6_pinplugin.patch" |
483 |
+ use ttxtsubs && eapply "${WORKDIR}/${PN}-2.4.6_ttxtsubs_v2.patch" |
484 |
+ use menuorg && eapply "${DISTDIR}/vdr-menuorg-2.3.x.diff" |
485 |
+ use mainmenuhooks && eapply "${WORKDIR}/${PN}-2.4.1_mainmenuhook-1.0.1.patch" |
486 |
+ |
487 |
+ add_cap CAP_UTF8 \ |
488 |
+ CAP_IRCTRL_RUNTIME_PARAM \ |
489 |
+ CAP_VFAT_RUNTIME_PARAM \ |
490 |
+ CAP_CHUID \ |
491 |
+ CAP_SHUTDOWN_AUTO_RETRY |
492 |
+ |
493 |
+ echo -e ${CAPS} > "${CAP_FILE}" || die "cannot write to CAP_FILE" |
494 |
+ |
495 |
+ # LINGUAS support |
496 |
+ einfo "\n \t VDR supports the LINGUAS values" |
497 |
+ |
498 |
+ lang_po |
499 |
+ |
500 |
+ einfo "\t Please set one of this values in your sytem make.conf" |
501 |
+ einfo "\t LINGUAS=\"${LING_PO}\"\n" |
502 |
+ |
503 |
+ if [[ -z ${LINGUAS} ]]; then |
504 |
+ einfo "\n \t No values in LINGUAS=" |
505 |
+ einfo "\t You will get only english text on OSD \n" |
506 |
+ fi |
507 |
+ |
508 |
+ strip-linguas ${LING_PO} en |
509 |
+ |
510 |
+ default |
511 |
+} |
512 |
+ |
513 |
+src_install() { |
514 |
+ # trick the makefile to not create a VIDEODIR by supplying it with an |
515 |
+ # existing directory |
516 |
+ emake VIDEODIR="/" DESTDIR="${ED}" install |
517 |
+ |
518 |
+ keepdir "${PLUGIN_LIBDIR}" |
519 |
+ |
520 |
+ # backup for plugins they don't be able to create this dir |
521 |
+ keepdir "${CONF_DIR}/plugins" |
522 |
+ |
523 |
+ if use html; then |
524 |
+ local HTML_DOCS=( *.html ) |
525 |
+ fi |
526 |
+ local DOCS=( MANUAL INSTALL README* HISTORY CONTRIBUTORS UPDATE-2* ) |
527 |
+ einstalldocs |
528 |
+ |
529 |
+ insinto /usr/share/vdr |
530 |
+ doins "${CAP_FILE}" |
531 |
+ |
532 |
+ fowners vdr:vdr "${CONF_DIR}" -R |
533 |
+} |
534 |
+ |
535 |
+pkg_postinst() { |
536 |
+ elog "Please read the /usr/share/doc/${PF}/UPDATE-2.4" |
537 |
+ elog "for major changes in this version\n" |
538 |
+ |
539 |
+ elog "It is a good idea to run vdrplugin-rebuild now.\n" |
540 |
+ |
541 |
+ elog "To get nice symbols in OSD we recommend to install" |
542 |
+ elog "\t1. emerge media-fonts/vdrsymbols-ttf" |
543 |
+ elog "\t2. select font VDRSymbolsSans in Setup\n" |
544 |
+ |
545 |
+ elog "To get an idea how to proceed now, have a look at our vdr-guide:" |
546 |
+ elog "\thttps://wiki.gentoo.org/wiki/VDR" |
547 |
+} |