From 8b9350c091bc5ae8c9bb30b83a1fb567c3a7cb7f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 17 Apr 2011 16:50:00 +0200 Subject: =?UTF-8?q?Version=201.7.18=20-=20Changed=20-O2=20to=20-O3=20in=20?= =?UTF-8?q?Make.config.template=20(reported=20by=20Matti=20Lehtim=C3=A4ki)?= =?UTF-8?q?.=20-=20Added=20a=20missing=20'default'=20case=20in=20cPixmapMe?= =?UTF-8?q?mory::DrawEllipse().=20-=20Fixed=20some=20direct=20comparisons?= =?UTF-8?q?=20of=20double=20values.=20-=20Fixed=20detecting=20frames=20on?= =?UTF-8?q?=20channels=20that=20broadcast=20with=20separate=20"fields"=20i?= =?UTF-8?q?nstead=20=20=20of=20complete=20frames.=20-=20Made=20updating=20?= =?UTF-8?q?the=20editing=20marks=20during=20replay=20react=20faster=20in?= =?UTF-8?q?=20case=20the=20marks=20=20=20file=20has=20just=20been=20writte?= =?UTF-8?q?n=20(with=20a=20patch=20from=20Udo=20Richter).=20-=20Fixed=20ho?= =?UTF-8?q?rizontal=20scaling=20of=20subtitles=20(reported=20by=20Reinhard?= =?UTF-8?q?=20Nissl).=20-=20Stripped=20the=20note=20"The=20data=20returned?= =?UTF-8?q?=20by=20this=20function=20is=20only=20used=20for=20informationa?= =?UTF-8?q?l=20=20=20purposes=20(if=20any)"=20from=20the=20description=20o?= =?UTF-8?q?f=20cDevice::GetVideoSize().=20The=20VideoAspect=20=20=20is=20n?= =?UTF-8?q?ow=20used=20to=20properly=20scale=20subtitles.=20-=20Fixed=20cU?= =?UTF-8?q?nbufferedFile::Seek()=20in=20case=20it=20is=20compiled=20withou?= =?UTF-8?q?t=20USE=5FFADVISE=20(thanks=20=20=20to=20Juergen=20Lock).=20-?= =?UTF-8?q?=20Fixed=20the=20Language=20header=20of=20the=20Serbian=20trans?= =?UTF-8?q?lation=20file=20(thanks=20to=20Ville=20Skytt=C3=A4).=20-=20Adde?= =?UTF-8?q?d=20anti-aliasing=20when=20upscaling=20bitmaps,=20which=20impro?= =?UTF-8?q?ves=20the=20display=20of=20SD=20subtitles=20=20=20when=20replay?= =?UTF-8?q?ed=20on=20an=20HD=20OSD=20(thanks=20to=20Reinhard=20Nissl=20for?= =?UTF-8?q?=20his=20help=20in=20debugging).=20-=20Renamed=20cBitmap::Scale?= =?UTF-8?q?()=20to=20Scaled(),=20because=20it=20doesn't=20modify=20the=20b?= =?UTF-8?q?itmap=20itself,=20=20=20but=20rather=20returns=20a=20scaled=20c?= =?UTF-8?q?opy.=20-=20Fixed=20the=20description=20of=20cReceiver=20in=20PL?= =?UTF-8?q?UGINS.html,=20regarding=20detaching=20a=20receiver=20=20=20from?= =?UTF-8?q?=20its=20device=20before=20deleting=20it=20(reported=20by=20Win?= =?UTF-8?q?fried=20K=C3=B6hler).=20This=20change=20in=20=20=20behavior=20w?= =?UTF-8?q?as=20introduced=20in=20version=201.5.7.=20-=20Fixed=20scaling?= =?UTF-8?q?=20subtitles=20in=20case=20the=20OSD=20size=20is=20exactly=20th?= =?UTF-8?q?e=20same=20as=20the=20display=20=20=20size=20of=20the=20subtitl?= =?UTF-8?q?es.=20-=20Added=20a=20missing=20initialization=20to=20sDvbSpuRe?= =?UTF-8?q?ct=20(reported=20by=20Sergiu=20Dotenco).=20-=20Replaced=20"%lld?= =?UTF-8?q?"=20and=20"%llX"=20print=20format=20specifiers=20with=20"PRId64?= =?UTF-8?q?"=20and=20"PRIX64"=20to=20=20=20avoid=20compiler=20warnings=20w?= =?UTF-8?q?ith=20gcc=204.5.2=20(thanks=20to=20Sergiu=20Dotenco).=20=20=20O?= =?UTF-8?q?n=20a=20personal=20note:=20I=20find=20it=20a=20step=20in=20the?= =?UTF-8?q?=20totally=20wrong=20direction=20that=20there=20=20=20have=20be?= =?UTF-8?q?en=20macros=20introduced=20to=20work=20around=20this=20problem?= =?UTF-8?q?=20in=20the=20first=20place.=20There=20=20=20should=20have=20be?= =?UTF-8?q?en=20"real"=20format=20specifiers=20defined=20that=20address=20?= =?UTF-8?q?this.=20These=20macros=20=20=20are=20nothing=20but=20an=20ugly?= =?UTF-8?q?=20workaround.=20-=20Added=20Cancel(3)=20to=20~cTrueColorDemo()?= =?UTF-8?q?=20in=20the=20"osddemo"=20plugin=20(thanks=20to=20Reinhard=20Ni?= =?UTF-8?q?ssl).=20-=20Added=20a=20missing=20font=20deletion=20in=20cTrueC?= =?UTF-8?q?olorDemo::Action()=20in=20the=20"osddemo"=20plugin=20=20=20(tha?= =?UTF-8?q?nks=20to=20Reinhard=20Nissl).=20-=20Fixed=20a=20buffer=20overfl?= =?UTF-8?q?ow=20in=20cFont::Bidi()=20(thanks=20to=20Reinhard=20Nissl).=20-?= =?UTF-8?q?=20Added=20HD=20stream=20content=20identifiers=20to=20vdr.5=20(?= =?UTF-8?q?thanks=20to=20Christoph=20Haubrich).=20-=20Made=20cRecordingInf?= =?UTF-8?q?o::Read(FILE=20*f)=20private=20to=20avoid=20calls=20to=20it=20f?= =?UTF-8?q?rom=20outside=20=20=20cRecordingInfo=20or=20cRecording=20(repor?= =?UTF-8?q?ted=20by=20Mika=20Laitio).=20-=20The=20dvbhddevice=20plugin=20i?= =?UTF-8?q?s=20now=20part=20of=20the=20VDR=20distribution=20archive=20(tha?= =?UTF-8?q?nks=20to=20=20=20Andreas=20Regel).=20-=20Removed=20an=20obsolet?= =?UTF-8?q?e=20local=20variable=20in=20dvbsdffosd.c=20(thanks=20to=20Paul?= =?UTF-8?q?=20Menzel).=20-=20Fixed=20a=20possible=20NULL=20pointer=20deref?= =?UTF-8?q?erence=20in=20osddemo.c=20(reported=20by=20Paul=20Menzel).=20-?= =?UTF-8?q?=20Now=20using=20pkg-config=20to=20get=20fribidi,=20freetype=20?= =?UTF-8?q?and=20fontconfig=20cflags=20and=20libs=20(thanks=20=20=20to=20V?= =?UTF-8?q?ille=20Skytt=C3=A4).=20-=20The=20Makefile=20now=20also=20instal?= =?UTF-8?q?ls=20the=20include=20files=20(thanks=20to=20Ville=20Skytt=C3=A4?= =?UTF-8?q?).=20-=20Added=20handling=20of=20"ANSI/SCTE=2057"=20descriptors?= =?UTF-8?q?=20(thanks=20too=20Rolf=20Ahrenberg).=20-=20Avoiding=20an=20une?= =?UTF-8?q?cessary=20call=20to=20Recordings.ResetResume()=20(thanks=20to?= =?UTF-8?q?=20Reinhard=20=20=20Nissl).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PLUGINS/src/dvbhddevice/Makefile | 114 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 PLUGINS/src/dvbhddevice/Makefile (limited to 'PLUGINS/src/dvbhddevice/Makefile') diff --git a/PLUGINS/src/dvbhddevice/Makefile b/PLUGINS/src/dvbhddevice/Makefile new file mode 100644 index 0000000..ea1b9d1 --- /dev/null +++ b/PLUGINS/src/dvbhddevice/Makefile @@ -0,0 +1,114 @@ +# +# Makefile for a Video Disk Recorder plugin +# +# $Id: Makefile 1.7 2011/04/17 11:40:55 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 = dvbhddevice + +### 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 ?= -g -O3 -Wall -Woverloaded-virtual -Wno-parentheses + +### The directory environment: + +VDRDIR = ../../.. +LIBDIR = ../../lib +TMPDIR = /tmp + +### Make sure that necessary options are included: + +include $(VDRDIR)/Make.global + +### 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 bitbuffer.o dvbhdffdevice.o hdffcmd.o hdffosd.o setup.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 --package-name=VDR --package-version=$(VDRVERSION) --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: $(I18Npo) 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