From e8fa85929a2d26ebc093962be0a5e56a5fe9b27e Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sun, 20 Jan 2013 21:30:51 +0200 Subject: [PATCH] Updated for vdr-1.7.36. --- HISTORY | 4 ++-- Makefile | 16 ++++++++-------- femon.c | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/HISTORY b/HISTORY index 7367d05..e978d8a 100644 --- a/HISTORY +++ b/HISTORY @@ -454,8 +454,8 @@ VDR Plugin 'femon' Revision History - Added a new theme: PearlHD (Thanks to Taipan @ VDRPortal). - Added the transponder info window support for IPTV devices. -2013-01-03: Version 1.7.18 +2013-01-20: Version 1.7.18 -- Updated for vdr-1.7.35. +- Updated for vdr-1.7.36. - Modified how the receiver is detached. - Added Ukrainian translation (Thanks to Yarema aka Knedlyk). diff --git a/Makefile b/Makefile index 43a4308..426a82c 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,8 @@ GITTAG = $(shell git describe --always 2>/dev/null) # Use package data if installed...otherwise assume we're under the VDR source directory: PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc)) -LIBDIR = $(DESTDIR)$(call PKGCFG,libdir) -LOCDIR = $(DESTDIR)$(call PKGCFG,locdir) +LIBDIR = $(call PKGCFG,libdir) +LOCDIR = $(call PKGCFG,locdir) PLGCFG = $(call PKGCFG,plgcfg) # TMPDIR ?= /tmp @@ -72,7 +72,7 @@ all-redirect: all ### The object files (add further files here): -OBJS = femon.o femonosd.o femonreceiver.o femoncfg.o femontools.o femonmpeg.o femonac3.o femonaac.o femonlatm.o femonh264.o femonsymbol.o +OBJS = $(PLUGIN).o femonosd.o femonreceiver.o femoncfg.o femontools.o femonmpeg.o femonac3.o femonaac.o femonlatm.o femonh264.o femonsymbol.o ### The main target: @@ -81,14 +81,14 @@ all: $(SOFILE) i18n ### Implicit rules: %.o: %.c - $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< + $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $< ### Dependencies: MAKEDEP = $(CXX) -MM -MG DEPFILE = .dependencies $(DEPFILE): Makefile - @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ + @$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ -include $(DEPFILE) @@ -97,7 +97,7 @@ $(DEPFILE): Makefile PODIR = po I18Npo = $(wildcard $(PODIR)/*.po) I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) -I18Nmsgs = $(addprefix $(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) +I18Nmsgs = $(addprefix $(DESTDIR)$(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) I18Npot = $(PODIR)/$(PLUGIN).pot %.mo: %.po @@ -110,7 +110,7 @@ $(I18Npot): $(wildcard *.c) msgmerge -U --no-wrap --no-location --backup=none -q -N $@ $< @touch $@ -$(I18Nmsgs): $(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo +$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo install -D -m644 $< $@ .PHONY: i18n @@ -127,7 +127,7 @@ ifndef FEMON_DEBUG endif install-lib: $(SOFILE) - install -D $^ $(LIBDIR)/$^.$(APIVERSION) + install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION) install: install-lib install-i18n diff --git a/femon.c b/femon.c index fc32bc0..7119be7 100644 --- a/femon.c +++ b/femon.c @@ -14,8 +14,8 @@ #include "femonservice.h" #include "femontools.h" -#if defined(APIVERSNUM) && APIVERSNUM < 10735 -#error "VDR-1.7.35 API version or greater is required!" +#if defined(APIVERSNUM) && APIVERSNUM < 10736 +#error "VDR-1.7.36 API version or greater is required!" #endif #ifndef GITVERSION