1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 20_Makefile-fix.dpatch by Tobias Grimm <etobi@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad vdr-plugin-mp3-0.10.2~/Makefile vdr-plugin-mp3-0.10.2/Makefile
9
--- vdr-plugin-mp3-0.10.2~/Makefile 2009-11-13 12:28:19.000000000 +0100
10
+++ vdr-plugin-mp3-0.10.2/Makefile 2010-01-23 20:47:39.000000000 +0100
13
### The version number of VDR (taken from VDR's "config.h"):
15
-VDRVERSION := $(shell sed -ne '/define VDRVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
16
-APIVERSION := $(shell sed -ne '/define APIVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
17
+VDRVERSION := $(shell sed -ne '/define VDRVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
18
+APIVERSION := $(shell sed -ne '/define APIVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
19
ifeq ($(strip $(APIVERSION)),)
20
APIVERSION = $(VDRVERSION)
22
-VDRVERSNUM := $(shell sed -ne '/define VDRVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
23
-APIVERSNUM := $(shell sed -ne '/define APIVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
24
+VDRVERSNUM := $(shell sed -ne '/define VDRVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/config.h)
25
+APIVERSNUM := $(shell sed -ne '/define APIVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/config.h)
26
ifeq ($(strip $(APIVERSNUM)),)
27
APIVERSNUM = $(VDRVERSNUM)
30
I18Nmsgs := $(addprefix $(LOCALEDIR)/,$(addsuffix /LC_MESSAGES/$(I18Nmo),$(I18Npots)))
31
I18Nmsgs2 := $(addprefix $(LOCALEDIR)/,$(addsuffix /LC_MESSAGES/$(I18Nmo2),$(I18Npots)))
33
-HASLOCALE = $(shell grep -l 'I18N_DEFAULT_LOCALE' $(VDRDIR)/include/vdr/i18n.h)
34
+HASLOCALE = $(shell grep -l 'I18N_DEFAULT_LOCALE' $(VDRDIR)/i18n.h)
35
ifeq ($(strip $(HASLOCALE)),)