1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
vdr-ttxtsubs - a teletext subtitle plugin for the Linux Video Disk Recorder

This plug-in implements displaying, recording and replaying teletext
based subtitles using the on screen display.

WWW: http://projects.vdr-developer.org/projects/show/plg-ttxtsubs
This commit is contained in:
Juergen Lock 2011-06-10 17:43:49 +00:00
parent d3466b2eca
commit 58ab469a9a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275317
8 changed files with 120 additions and 0 deletions

View File

@ -342,6 +342,7 @@
SUBDIR += vdr-plugin-skinenigmang
SUBDIR += vdr-plugin-softdevice
SUBDIR += vdr-plugin-streamdev
SUBDIR += vdr-plugin-ttxtsubs
SUBDIR += vdr-plugin-upnp
SUBDIR += vdr-plugin-vnsiserver
SUBDIR += vdr-plugin-wirbelscan

View File

@ -0,0 +1,33 @@
# New ports collection makefile for: vdr-plugin-ttxtsubs
# Date created: Fri May 13 18:13:34 CEST 2011
# Whom: Juergen Lock <nox@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= vdr-plugin-ttxtsubs
PORTVERSION= 0.2.2
CATEGORIES= multimedia
MASTER_SITES= http://projects.vdr-developer.org/attachments/download/309/
DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
MAINTAINER= nox@FreeBSD.org
COMMENT= Video Disk Recorder - telnet control plugin
PATCH_STRIP= -p1
HAVE_CONFIGURE= yes
PORTDOCS= COPYING README
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION}
.include "${.CURDIR}/../vdr/Makefile.plugins"
post-patch: post-patch-plugin
post-install: post-install-pluginlocales
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (vdr/vdr-ttxtsubs-0.2.2.tar.gz) = 2e685d177bf547385de62fa043272976566dd46e7504de4a5352bb36949ec724
SIZE (vdr/vdr-ttxtsubs-0.2.2.tar.gz) = 60833

View File

@ -0,0 +1,21 @@
--- a/Makefile
+++ b/Makefile
@@ -101,7 +101,11 @@ all: libvdr-$(PLUGIN).so i18n
libvdr-$(PLUGIN).so: $(OBJS)
$(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@
+ifdef FREEBSD
+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION)
+else
@cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
+endif
dist: clean
@-rm -rf $(TMPDIR)/$(ARCHIVE)
@@ -114,3 +118,6 @@ dist: clean
clean:
@-rm -f $(PODIR)/*.mo $(PODIR)/*.pot
@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~
+
+install:
+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION)

View File

@ -0,0 +1,21 @@
--- a/ttxtsubs.c
+++ b/ttxtsubs.c
@@ -119,6 +119,7 @@ class cPluginTtxtsubs : public cPlugin,
public:
cPluginTtxtsubs(void);
virtual ~cPluginTtxtsubs();
+ void Reload(void) { StopTtxt(); StartTtxtPlay(0x000); }
// -- cPlugin
virtual const char *Version(void) { return VERSION; }
@@ -566,7 +567,9 @@ cMenuSetupTtxtsubs::cMenuSetupTtxtsubs(c
cMenuSetupTtxtsubs::~cMenuSetupTtxtsubs(void)
{
-
+ if(mTtxtsubs) {
+ mTtxtsubs->Reload();
+ }
if(mDoStore) {
Store();
// Setup.Save(); // Can't get it to write to conf file, menu item disabled.

View File

@ -0,0 +1,23 @@
--- a/ttxtsubschannelsettings.c
+++ b/ttxtsubschannelsettings.c
@@ -34,10 +34,19 @@ cTtxtSubsChannelSetting::cTtxtSubsChanne
bool cTtxtSubsChannelSetting::Parse(const char *s)
{
bool result=false;
+#ifdef __FreeBSD__
+ char *buffer=MALLOC(char, 256);
+#else
char *buffer=NULL;
+#endif
int PageMode;
int PageNumber;
- if (3 == sscanf(s, "%a[^,],%d,%d\n", &buffer, &PageMode, &PageNumber)) {
+#ifdef __FreeBSD__
+ if (3 == sscanf(s, "%255[^,],%d,%d\n", buffer, &PageMode, &PageNumber))
+#else
+ if (3 == sscanf(s, "%a[^,],%d,%d\n", &buffer, &PageMode, &PageNumber))
+#endif
+ {
tChannelID channelID=tChannelID::FromString(buffer);
if (channelID.Valid()) {
channelid=channelID;

View File

@ -0,0 +1,8 @@
http://www.linuxtv.org/vdrwiki/index.php/Ttxtsubs-plugin
vdr-ttxtsubs - a teletext subtitle plugin for the Linux Video Disk Recorder
This plug-in implements displaying, recording and replaying teletext
based subtitles using the on screen display.
WWW: http://projects.vdr-developer.org/projects/show/plg-ttxtsubs

View File

@ -0,0 +1,11 @@
lib/vdr/libvdr-ttxtsubs.so.1.7.18
%%NLS%%share/locale/fr_FR/LC_MESSAGES/vdr-ttxtsubs.mo
%%NLS%%share/locale/ru_RU/LC_MESSAGES/vdr-ttxtsubs.mo
%%NLS%%share/locale/uk_UA/LC_MESSAGES/vdr-ttxtsubs.mo
%%NLS%%share/locale/sv_SE/LC_MESSAGES/vdr-ttxtsubs.mo
%%NLS%%share/locale/it_IT/LC_MESSAGES/vdr-ttxtsubs.mo
%%NLS%%share/locale/es_ES/LC_MESSAGES/vdr-ttxtsubs.mo
%%NLS%%share/locale/fi_FI/LC_MESSAGES/vdr-ttxtsubs.mo
%%NLS%%share/locale/de_DE/LC_MESSAGES/vdr-ttxtsubs.mo
%%NLS%%share/locale/ca_ES/LC_MESSAGES/vdr-ttxtsubs.mo
%%NLS%%share/locale/et_EE/LC_MESSAGES/vdr-ttxtsubs.mo