Skip to content

Commit

Permalink
Sync with cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
hudokkow committed Feb 24, 2015
1 parent 4ccbafa commit 87422e6
Show file tree
Hide file tree
Showing 146 changed files with 968 additions and 1,282 deletions.
54 changes: 54 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
project(pvr.mediaportal.tvserver)

cmake_minimum_required(VERSION 2.6)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})

enable_language(CXX)

find_package(kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(TinyXML REQUIRED)

include_directories(${kodiplatform_INCLUDE_DIRS}
${TINYXML_INCLUDE_DIR}
${KODI_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/src)

add_definitions(-D__STDC_FORMAT_MACROS)

if (NOT WIN32)
add_options(ALL_LANGUAGES ALL_BUILDS "-fPIC")
endif()

set(MPTV_SOURCES src/Cards.cpp
src/channels.cpp
src/client.cpp
src/DateTime.cpp
src/epg.cpp
src/GenreTable.cpp
src/GUIDialogRecordSettings.cpp
src/pvrclient-mediaportal.cpp
src/recordings.cpp
src/Socket.cpp
src/timers.cpp
src/uri.cpp
src/utils.cpp)

if(WIN32)
list(APPEND MPTV_SOURCES src/windows/FileUtils.cpp
src/windows/WindowsUtils.cpp)
endif()

add_subdirectory(src/lib/tsreader)

set(DEPLIBS ${kodiplatform_LIBRARIES}
${TINYXML_LIBRARIES} tsreader)

if(WIN32)
list(APPEND DEPLIBS ws2_32)
endif()

build_addon(pvr.mediaportal.tvserver MPTV DEPLIBS)

include(CPack)
27 changes: 27 additions & 0 deletions FindTinyXML.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# - Find TinyXML
# Find the native TinyXML includes and library
#
# TINYXML_FOUND - True if TinyXML found.
# TINYXML_INCLUDE_DIRS - where to find tinyxml.h, etc.
# TINYXML_LIBRARIES - List of libraries when using TinyXML.
#

if(PKG_CONFIG_FOUND)
pkg_check_modules (TINYXML tinyxml)
list(APPEND TINYXML_INCLUDE_DIRS ${TINYXML_INCLUDEDIR})
endif()
if(NOT TINYXML_FOUND)
find_path( TINYXML_INCLUDE_DIRS "tinyxml.h"
PATH_SUFFIXES "tinyxml" )

find_library( TINYXML_LIBRARIES
NAMES "tinyxml"
PATH_SUFFIXES "tinyxml" )
endif()

# handle the QUIETLY and REQUIRED arguments and set TINYXML_FOUND to TRUE if
# all listed variables are TRUE
include( "FindPackageHandleStandardArgs" )
find_package_handle_standard_args(TinyXML DEFAULT_MSG TINYXML_INCLUDE_DIRS TINYXML_LIBRARIES )

mark_as_advanced(TINYXML_INCLUDE_DIRS TINYXML_LIBRARIES)
46 changes: 0 additions & 46 deletions Makefile.am

This file was deleted.

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# MediaPortal TVServer PVR
MediaPortal TVServer PVR client addon for [Kodi] (http://kodi.tv)

##### Useful links

* [Kodi's PVR user support] (http://forum.kodi.tv/forumdisplay.php?fid=167)
* [Kodi's PVR development support] (http://forum.kodi.tv/forumdisplay.php?fid=136)
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kodi-pvr-mediaportal-tvserver (1.9.27-1~trusty) trusty; urgency=low

[ kodi ]
* autogenerated dummy changelog

-- Arne Morten Kvarving <arne.morten.kvarving@sintef.no> Sat, 01 Jun 2013 00:59:22 +0200

7 changes: 7 additions & 0 deletions debian/changelog.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kodi-pvr-mediaportal-tvserver (#PACKAGEVERSION#-#TAGREV#~#DIST#) #DIST#; urgency=low

[ kodi ]
* autogenerated dummy changelog

-- Arne Morten Kvarving <arne.morten.kvarving@sintef.no> Sat, 01 Jun 2013 00:59:22 +0200

1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
23 changes: 23 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Source: kodi-pvr-mediaportal-tvserver
Priority: extra
Maintainer: Arne Morten Kvarving <arne.morten.kvarving@sintef.no>
Build-Depends: debhelper (>= 9.0.0), cmake, libtinyxml-dev, kodi-pvr-dev,
libkodiplatform-dev, kodi-addon-dev
Standards-Version: 3.9.4
Section: libs
Homepage: http://www.scintilla.utwente.nl/~marcelg/kodi/

Package: kodi-pvr-mediaportal-tvserver
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: MediaPortal PVR for Kodi
MediaPortal PVR for Kodi

Package: kodi-pvr-mediaportal-tvserver-dbg
Section: debug
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: debug symbols for MediaPortal PVR for Kodi
debug symbols for the MediaPortal PVR for Kodi

44 changes: 44 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Format: http://dep.debian.net/deps/dep5
Upstream-Name: pvr.mediaportal.tvserver

Files: *
Copyright: 2005-2011 Team XBMC
2005-2012 Team MediaPortal
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".


Files: debian/*
Copyright: 2013 Arne Morten Kvarving <arne.morten.kvarving@sintef.no>
2013 wsnipex <wsnipex@a1.net>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

2 changes: 2 additions & 0 deletions debian/kodi-pvr-mediaportal-tvserver.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib/kodi/addons/pvr.mediaportal.tvserver
usr/share/kodi/addons/pvr.mediaportal.tvserver
26 changes: 26 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
dh $@

override_dh_auto_configure:
# LTO breaks with tsreader
dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1

override_dh_strip:
dh_strip --dbg-package=kodi-pvr-mediaportal-tvserver-dbg

override_dh_auto_install:
dh_auto_install --destdir=debian/kodi-pvr-mediaportal-tvserver

override_dh_installdocs:
dh_installdocs --link-doc=kodi-pvr-mediaportal-tvserver
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)

0 comments on commit 87422e6

Please sign in to comment.