Skip to content

Commit

Permalink
pvr add-ons: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
opdenkamp committed Aug 19, 2012
0 parents commit 5875771
Show file tree
Hide file tree
Showing 120 changed files with 24,363 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.build
.deps
.libs

aclocal.m4
autom4te.cache
config.log
config.status
config.guess
config.sub
configure
configure.lineno
depcomp
INSTALL
install-sh
libtool
ltmain.sh
Makefile
Makefile.in
Makefile.include
Makefile.include.in
missing

*.o
*.a
*.P
*.lo
*.la
*.pvr
*.zip
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Team XBMC
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

Empty file added ChangeLog
Empty file.
26 changes: 26 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
SUBDIRS = lib addons

zip:
make -C lib all
make -C addons zip

install:
make -C lib all
make -C addons install

sync:
cp -f ../xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxPacket.h xbmc/DVDDemuxPacket.h
cat ../addons/library.xbmc.addon/libXBMC_addon.h | sed 's/#include "..\/library.xbmc.addon\/libXBMC_addon.h"/#include "libXBMC_addon.h"/' > xbmc/libXBMC_addon.h
cat ../addons/library.xbmc.gui/libXBMC_gui.h | sed 's/#include "..\/library.xbmc.addon\/libXBMC_addon.h"/#include "libXBMC_addon.h"/' > xbmc/libXBMC_gui.h
cat ../addons/library.xbmc.pvr/libXBMC_pvr.h | sed 's/#include "..\/library.xbmc.addon\/libXBMC_addon.h"/#include "libXBMC_addon.h"/' > xbmc/libXBMC_pvr.h
cp -f ../xbmc/addons/include/xbmc_addon_cpp_dll.h xbmc/xbmc_addon_cpp_dll.h
cp -f ../xbmc/addons/include/xbmc_addon_dll.h xbmc/xbmc_addon_dll.h
cp -f ../xbmc/addons/include/xbmc_addon_types.h xbmc/xbmc_addon_types.h
cp -f ../xbmc/addons/include/xbmc_epg_types.h xbmc/xbmc_epg_types.h
cp -f ../xbmc/addons/include/xbmc_pvr_dll.h xbmc/xbmc_pvr_dll.h
cp -f ../xbmc/addons/include/xbmc_pvr_types.h xbmc/xbmc_pvr_types.h
cp -f ../xbmc/addons/include/xbmc_scr_dll.h xbmc/xbmc_scr_dll.h
cp -f ../xbmc/addons/include/xbmc_scr_types.h xbmc/xbmc_scr_types.h
cp -f ../xbmc/addons/include/xbmc_vis_dll.h xbmc/xbmc_vis_dll.h
cp -f ../xbmc/addons/include/xbmc_vis_types.h xbmc/xbmc_vis_types.h

Empty file added NEWS
Empty file.
26 changes: 26 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
WARNING: this is work in progress. Don't try to use this unless you know what you're doing.

=============================
Linux
=============================

Start by executing:
autoreconf -vif

To install add-ons into /path/to/XBMC:
./configure --prefix=/path/to/XBMC
make install

To build all PVR add-ons as .zip archives:
./configure
make zip

=============================
OS-X
=============================
TODO

=============================
Windows
=============================
TODO
13 changes: 13 additions & 0 deletions addons/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SUBDIRS = pvr.hts \
pvr.vdr.vnsi

clean:
-rm -f *.zip
for d in $(SUBDIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done

zip:
for d in $(SUBDIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d zip; fi; done

install:
for d in $(SUBDIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d install; fi; done

35 changes: 35 additions & 0 deletions addons/Makefile.include.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Makefile include for XBMC PVR add-ons
#

INCLUDES = -I. -I$(abs_top_srcdir)/xbmc -I$(abs_top_srcdir)/lib @HOST_INCLUDES@
WARNINGS = -Wall -Wextra -Wno-missing-field-initializers -Woverloaded-virtual -Wno-parentheses
DEFINES = -D_LINUX -DUSE_DEMUX -D__STDC_CONSTANT_MACROS
AM_CXXFLAGS = -g -O2 -fPIC $(WARNINGS) $(DEFINES) @HOST_CXXFLAGS@
LIBDIR = @abs_top_srcdir@/addons/$(ADDONNAME)/addon
LIB = @abs_top_srcdir@/addons/$(ADDONNAME)/addon/$(ADDONBINNAME).pvr

clean:
-rm -r -f $(LIB) $(ADDONBINNAME).pvr @abs_top_srcdir@/addons/$(ADDONNAME).@OS@-@[email protected] @abs_top_srcdir@/addons/.build/$(ADDONNAME) *.so *.lo *.o *.la *.a *.P *~

release: $(lib_LTLIBRARIES)
cp -f -v .libs/$(LIBNAME).so $(ADDONBINNAME).pvr
$(STRIP) -x $(ADDONBINNAME).pvr

debug: $(lib_LTLIBRARIES)
cp -f -v .libs/$(LIBNAME).so $(ADDONBINNAME).pvr

$(LIB): @BUILD_TYPE@
cp -f -v $(ADDONBINNAME).pvr $(LIB)

zip: $(LIB)
mkdir -p @abs_top_srcdir@/addons/.build
cp -r -f -v @abs_top_srcdir@/addons/$(ADDONNAME)/addon @abs_top_srcdir@/addons/.build/$(ADDONNAME)
cd @abs_top_srcdir@/addons/.build ; zip -9 -r @abs_top_srcdir@/addons/$(ADDONNAME)-@OS@-@[email protected] $(ADDONNAME)

install: $(LIB)
mkdir -p $(prefix)
cp -r -f -v @abs_top_srcdir@/addons/$(ADDONNAME)/addon $(prefix)/$(ADDONNAME)

all: $(LIB)

21 changes: 21 additions & 0 deletions addons/pvr.hts/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Makefile for the HTS Tvheadend add-on for XBMC PVR
#
# See the README for copyright information and
# how to reach the author.
#

ADDONBINNAME = XBMC_Tvheadend
ADDONNAME = pvr.hts
LIBNAME = libtvheadend-addon
lib_LTLIBRARIES = libtvheadend-addon.la

LIBS = @abs_top_srcdir@/lib/libhts/libhts.la -ldl

include ../Makefile.include.am

libtvheadend_addon_la_SOURCES = src/client.cpp \
src/HTSPConnection.cpp \
src/HTSPData.cpp \
src/HTSPDemux.cpp

22 changes: 22 additions & 0 deletions addons/pvr.hts/addon/addon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.hts"
version="1.0.0"
name="Tvheadend HTSP Client"
provider-name="Lars Op den Kamp, Team XBMC">
<requires>
<c-pluff version="0.1"/>
</requires>
<extension
point="xbmc.pvrclient"
library_linux="XBMC_Tvheadend.pvr"
library_osx="XBMC_Tvheadend.pvr"
library_wingl="XBMC_Tvheadend_win32.pvr"
library_windx="XBMC_Tvheadend_win32.pvr"/>
<extension point="xbmc.addon.metadata">
<summary>XBMC's frontend for Tvheadend</summary>
<description>Tvheadend frontend; supporting streaming of Live TV &amp; Recordings, EPG, Timers</description>
<disclaimer>This is unstable software! The authors are in no way responsible for failed recordings, incorrect timers, wasted hours, or any other undesirable effects..</disclaimer>
<platform>all</platform>
</extension>
</addon>
Binary file added addons/pvr.hts/addon/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions addons/pvr.hts/addon/resources/language/Dutch/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<!-- settings labels -->
<string id="30000">Tvheadend server naam of IP adres</string>
<string id="30001">HTTP poort</string>
<string id="30002">HTSP poort</string>
<string id="30003">Gebruikersnaam</string>
<string id="30004">Wachtwoord</string>
<string id="30006">Verbinding timeout in seconden</string>
<string id="30007">Antwoord timeout in seconden</string>

<!-- notifications -->
<string id="30500">Verbinding met '%s' verbroken</string>
<string id="30501">Verbinding met '%s' hersteld</string>
</strings>
15 changes: 15 additions & 0 deletions addons/pvr.hts/addon/resources/language/English/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<!-- settings labels -->
<string id="30000">Tvheadend hostname or IP address</string>
<string id="30001">HTTP port</string>
<string id="30002">HTSP port</string>
<string id="30003">Username</string>
<string id="30004">Password</string>
<string id="30006">Connect timeout in seconds</string>
<string id="30007">Response timeout in seconds</string>

<!-- notifications -->
<string id="30500">Disconnected from '%s'</string>
<string id="30501">Reconnected to '%s'</string>
</strings>
15 changes: 15 additions & 0 deletions addons/pvr.hts/addon/resources/language/Finnish/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<!-- settings labels -->
<string id="30000">Tvheadend-palvelimen nimi tai IP-osoite</string>
<string id="30001">HTTP-portti</string>
<string id="30002">HTSP-portti</string>
<string id="30003">Käyttäjänimi</string>
<string id="30004">Salasana</string>
<string id="30006">Yhteyden aikakatkaisu sekunneissa</string>
<string id="30007">Vastauksen aikakatkaisu sekunneissa</string>

<!-- notifications -->
<string id="30500">Yhteys katkaistu palvelimeen '%s'</string>
<string id="30501">Yhdistetty palvelimeen '%s'</string>
</strings>
16 changes: 16 additions & 0 deletions addons/pvr.hts/addon/resources/language/German/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<!-- settings labels -->
<string id="30000">Tvheadend Hostname oder IP</string>
<string id="30001">HTTP Port</string>
<string id="30002">HTSP Port</string>
<string id="30003">Benutzername</string>
<string id="30004">Passwort</string>

<string id="30006">Verbindungszeit Überschreitung in Sekunden</string>
<string id="30007">Antwortzeit Überschreitung in Sekunden</string>

<!-- notifications -->
<string id="30500">Getrennt von '%s'</string>
<string id="30501">Wiederverbunden mit '%s'</string>
</strings>
10 changes: 10 additions & 0 deletions addons/pvr.hts/addon/resources/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<setting id="host" type="text" label="30000" default="127.0.0.1" />
<setting id="http_port" type="number" label="30001" default="9981" />
<setting id="htsp_port" type="number" label="30002" default="9982" />
<setting id="user" type="text" label="30003" default="" />
<setting id="pass" type="text" label="30004" option="hidden" default="" />
<setting id="connect_timeout" type="enum" label="30006" values="1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60" default="29" />
<setting id="response_timeout" type="enum" label="30007" values="1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60" default="1" />
</settings>
Loading

0 comments on commit 5875771

Please sign in to comment.