From fc4c8740a72e6c7cea5a001e19fdacb63c3cc538 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 13 Jan 2008 18:00:00 +0100 Subject: =?UTF-8?q?Version=201.5.13=20-=20Fixed=20the=20declaration=20of?= =?UTF-8?q?=20cSubtitleObject::Decode8BppCodeString()=20(thanks=20to=20=20?= =?UTF-8?q?=20Gregoire=20Favre).=20-=20The=20new=20setup=20option=20"Misce?= =?UTF-8?q?llaneous/Emergency=20exit"=20can=20be=20used=20to=20turn=20off?= =?UTF-8?q?=20=20=20the=20automatic=20restart=20of=20VDR=20in=20case=20a?= =?UTF-8?q?=20recording=20fails=20for=20some=20reason.=20-=20The=20kInfo?= =?UTF-8?q?=20key=20is=20now=20propagated=20to=20any=20open=20menu,=20so?= =?UTF-8?q?=20that=20it=20can=20react=20to=20it=20=20=20in=20a=20context?= =?UTF-8?q?=20sensitive=20manner=20(suggested=20by=20Andreas=20Brugger).?= =?UTF-8?q?=20If=20there=20is=20=20=20no=20menu=20open=20it=20will=20show?= =?UTF-8?q?=20the=20info=20of=20the=20current=20broadcast=20or=20replay.?= =?UTF-8?q?=20-=20cTimeMs=20now=20uses=20the=20monotonic=20clock,=20if=20a?= =?UTF-8?q?vailable=20(thanks=20to=20Petri=20Hintukainen).=20-=20Fixed=20c?= =?UTF-8?q?Vector::Clear()=20and=20cStringList::Clear().=20-=20Added=20cSt?= =?UTF-8?q?ring::Truncate().=20-=20Fixed=20the=20"i18n:"=20target=20in=20t?= =?UTF-8?q?he=20"newplugin"=20script,=20so=20that=20it=20can=20create=20th?= =?UTF-8?q?e=20=20=20initial=20*.pot=20file.=20-=20Fixed=20handling=20the?= =?UTF-8?q?=20'-l'=20option.=20-=20Fixed=20error=20handling=20in=20cCuttin?= =?UTF-8?q?gThread::Action()=20(thanks=20to=20Udo=20Richter).=20-=20Fixed?= =?UTF-8?q?=20a=20loss=20of=20the=20date=20display=20in=20the=20"classic"?= =?UTF-8?q?=20skin's=20main=20menu=20(reported=20by=20=20=20Andreas=20Brug?= =?UTF-8?q?ger).=20-=20Added=20a=20missing=20setting=20of=20lastFreeMB=20i?= =?UTF-8?q?n=20cMenuMain::Update()=20(reported=20by=20=20=20Andreas=20Brug?= =?UTF-8?q?ger).=20-=20Added=20'-Wno-parentheses'=20to=20the=20compiler=20?= =?UTF-8?q?options=20in=20order=20to=20avoid=20silly=20compiler=20=20=20wa?= =?UTF-8?q?rnings=20for=20expressions=20like=20'a=20||=20b=20&&=20c',=20wh?= =?UTF-8?q?ere=20GCC=204.3=20wants=20to=20force=20the=20=20=20programmer?= =?UTF-8?q?=20to=20write=20'a=20||=20(b=20&&=20c)',=20while=20everybody=20?= =?UTF-8?q?knows=20that=20'&&'=20links=20=20=20stronger=20than=20'||'=20(r?= =?UTF-8?q?eported=20by=20Tobias=20Grimm).=20-=20Updated=20the=20Hungarian?= =?UTF-8?q?=20language=20texts=20(thanks=20to=20Istv=C3=A1n=20F=C3=BCley).?= =?UTF-8?q?=20-=20Fixed=20displaying=20weekday=20names=20in=20the=20Schedu?= =?UTF-8?q?le=20menu=20if=20the=20system=20uses=20UTF-8=20=20=20(reported?= =?UTF-8?q?=20by=20Jiri=20Dobry).=20-=20The=20new=20plugin=20"pictures"=20?= =?UTF-8?q?implements=20a=20simple=20picture=20viewer.=20=20=20See=20PLUGI?= =?UTF-8?q?NS/src/pictures/README=20for=20details.=20-=20The=20automatic?= =?UTF-8?q?=20shutdown=20is=20now=20suppressed=20if=20the=20remote=20contr?= =?UTF-8?q?ol=20is=20currently=20=20=20disabled=20(suggested=20by=20Helmut?= =?UTF-8?q?=20Auer,=20implemented=20by=20Udo=20Richter).=20-=20Added=20a?= =?UTF-8?q?=20section=20about=20"Logging"=20to=20PLUGINS.html=20(suggested?= =?UTF-8?q?=20by=20Torsten=20Kunkel).=20-=20Enhanced=20the=20SVDRP=20comma?= =?UTF-8?q?nd=20CLRE=20to=20allow=20clearing=20the=20EPG=20data=20of=20a?= =?UTF-8?q?=20particular=20=20=20channel=20(thanks=20to=20Benjamin=20Hess)?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PLUGINS/src/pictures/Makefile | 110 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 PLUGINS/src/pictures/Makefile (limited to 'PLUGINS/src/pictures/Makefile') diff --git a/PLUGINS/src/pictures/Makefile b/PLUGINS/src/pictures/Makefile new file mode 100644 index 0000000..d949944 --- /dev/null +++ b/PLUGINS/src/pictures/Makefile @@ -0,0 +1,110 @@ +# +# Makefile for a Video Disk Recorder plugin +# +# $Id: Makefile 1.2 2008/01/13 13:00:04 kls Exp $ + +# The official name of this plugin. +# This name will be used in the '-P...' option of VDR to load the plugin. +# By default the main source file also carries this name. +# IMPORTANT: the presence of this macro is important for the Make.config +# file. So it must be defined, even if it is not used here! +# +PLUGIN = pictures + +### The version number of this plugin (taken from the main source file): + +VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g') + +### The C++ compiler and options: + +CXX ?= g++ +CXXFLAGS ?= -fPIC -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses + +### The directory environment: + +VDRDIR = ../../.. +LIBDIR = ../../lib +TMPDIR = /tmp + +### Allow user defined options to overwrite defaults: + +-include $(VDRDIR)/Make.config + +### The version number of VDR's plugin API (taken from VDR's "config.h"): + +APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) + +### The name of the distribution archive: + +ARCHIVE = $(PLUGIN)-$(VERSION) +PACKAGE = vdr-$(ARCHIVE) + +### Includes and Defines (add further entries here): + +INCLUDES += -I$(VDRDIR)/include + +DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' + +### The object files (add further files here): + +OBJS = $(PLUGIN).o entry.o menu.o player.o + +### The main target: + +all: libvdr-$(PLUGIN).so i18n + +### Implicit rules: + +%.o: %.c + $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< + +### Dependencies: + +MAKEDEP = $(CXX) -MM -MG +DEPFILE = .dependencies +$(DEPFILE): Makefile + @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ + +-include $(DEPFILE) + +### Internationalization (I18N): + +PODIR = po +LOCALEDIR = $(VDRDIR)/locale +I18Npo = $(wildcard $(PODIR)/*.po) +I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) +I18Npot = $(PODIR)/$(PLUGIN).pot + +%.mo: %.po + msgfmt -c -o $@ $< + +$(I18Npot): $(wildcard *.c) + xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='' -o $@ $^ + +%.po: $(I18Npot) + msgmerge -U --no-wrap --no-location --backup=none -q $@ $< + @touch $@ + +$(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo + @mkdir -p $(dir $@) + cp $< $@ + +.PHONY: i18n +i18n: $(I18Nmsgs) $(I18Npot) + +### Targets: + +libvdr-$(PLUGIN).so: $(OBJS) + $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ + @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) + +dist: clean + @-rm -rf $(TMPDIR)/$(ARCHIVE) + @mkdir $(TMPDIR)/$(ARCHIVE) + @cp -a * $(TMPDIR)/$(ARCHIVE) + @tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE) + @-rm -rf $(TMPDIR)/$(ARCHIVE) + @echo Distribution package created as $(PACKAGE).tgz + +clean: + @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot -- cgit v1.2.3