From bc09fd58eaa11fed7d9e60169b2fa92981ad3e20 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Wed, 19 Mar 2014 18:42:58 +0200 Subject: [PATCH] new package: vdr-satip ref #2982 --- .../3rdparty/multimedia/vdr-satip/package.mk | 52 +++++++++++++++++ .../patches/vdr-satip-01_makefile.patch | 56 +++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 packages/3rdparty/multimedia/vdr-satip/package.mk create mode 100644 packages/3rdparty/multimedia/vdr-satip/patches/vdr-satip-01_makefile.patch diff --git a/packages/3rdparty/multimedia/vdr-satip/package.mk b/packages/3rdparty/multimedia/vdr-satip/package.mk new file mode 100644 index 0000000000..4c7bb1be52 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-satip/package.mk @@ -0,0 +1,52 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) +# +# OpenELEC 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. +# +# OpenELEC 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 OpenELEC. If not, see . +################################################################################ + +PKG_NAME="vdr-satip" +PKG_VERSION="0.1.1" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.saunalahti.fi/~rahrenbe/vdr/satip/" +PKG_URL="http://www.saunalahti.fi/~rahrenbe/vdr/satip/files/$PKG_NAME-$PKG_VERSION.tgz" +PKG_SOURCE_DIR="satip-${PKG_VERSION}" +PKG_DEPENDS_TARGET="toolchain vdr curl tinyxml" +PKG_PRIORITY="optional" +PKG_SECTION="multimedia" +PKG_SHORTDESC="vdr-satip: SAT>IP plugin for VDR" +PKG_LONGDESC="vdr-satip is a SAT>IP plugin for VDR" + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +pre_configure_target() { + export CFLAGS="$CFLAGS -fPIC" + export CXXFLAGS="$CXXFLAGS -fPIC" + export LDFLAGS="$LDFLAGS -fPIC" +} + +make_target() { + VDR_DIR=$(get_build_dir vdr) + make VDRDIR=$VDR_DIR \ + SATIP_USE_TINYXML=1 \ + LIBDIR="." \ + LOCALEDIR="./locale" +} + +makeinstall_target() { + : # installation not needed, done by create-addon script +} diff --git a/packages/3rdparty/multimedia/vdr-satip/patches/vdr-satip-01_makefile.patch b/packages/3rdparty/multimedia/vdr-satip/patches/vdr-satip-01_makefile.patch new file mode 100644 index 0000000000..92c67cd6fc --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-satip/patches/vdr-satip-01_makefile.patch @@ -0,0 +1,56 @@ +diff --git a/Makefile b/Makefile +index 524338c..0569ebe 100644 +--- a/Makefile ++++ b/Makefile +@@ -12,8 +12,6 @@ + + # Strip debug symbols? Set eg. to /bin/true if not + +-STRIP = strip +- + # 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. +@@ -27,23 +25,15 @@ GITTAG = $(shell git describe --always 2>/dev/null) + + ### The directory environment: + +-# Use package data if installed...otherwise assume we're under the VDR source directory: +-PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell PKG_CONFIG_PATH="$$PKG_CONFIG_PATH:../../.." pkg-config --variable=$(1) vdr)) +-LIBDIR = $(call PKGCFG,libdir) +-LOCDIR = $(call PKGCFG,locdir) +-PLGCFG = $(call PKGCFG,plgcfg) +-CFGDIR = $(call PKGCFG,configdir) +-# + TMPDIR ?= /tmp + + ### The compiler options: + +-export CFLAGS = $(call PKGCFG,cflags) +-export CXXFLAGS = $(call PKGCFG,cxxflags) ++include $(VDRDIR)/Make.global + + ### The version number of VDR's plugin API: + +-APIVERSION = $(call PKGCFG,apiversion) ++APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) + + ### Allow user defined options to overwrite defaults: + +@@ -64,7 +54,7 @@ LIBS = $(shell curl-config --libs) + + ### Includes and Defines (add further entries here): + +-INCLUDES += ++INCLUDES += -I$(VDRDIR)/include + + DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' + +@@ -139,6 +129,7 @@ install-i18n: $(I18Nmsgs) + + $(SOFILE): $(OBJS) + $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@ ++ @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) + ifndef SATIP_DEBUG + @$(STRIP) $@ + endif