diff --git a/packages/3rdparty/multimedia/vdr-plugin-vnsiserver/meta b/packages/3rdparty/multimedia/vdr-plugin-vnsiserver/meta index 85d1172604..45d312c7f2 100644 --- a/packages/3rdparty/multimedia/vdr-plugin-vnsiserver/meta +++ b/packages/3rdparty/multimedia/vdr-plugin-vnsiserver/meta @@ -20,6 +20,9 @@ PKG_NAME="vdr-plugin-vnsiserver" PKG_VERSION="e3cd383" +if [ "$XBMC" = "master" ]; then + PKG_VERSION="cd5023b" +fi PKG_REV="1" PKG_ARCH="any" PKG_LICENSE="GPL" diff --git a/packages/3rdparty/multimedia/vdr-plugin-vnsiserver/patches/cd5023b/vdr-plugin-vnsiserver-01_makefile.patch b/packages/3rdparty/multimedia/vdr-plugin-vnsiserver/patches/cd5023b/vdr-plugin-vnsiserver-01_makefile.patch new file mode 100644 index 0000000000..ea5acaf8f0 --- /dev/null +++ b/packages/3rdparty/multimedia/vdr-plugin-vnsiserver/patches/cd5023b/vdr-plugin-vnsiserver-01_makefile.patch @@ -0,0 +1,101 @@ +diff --git a/Makefile b/Makefile +index 8f37c92..94869aa 100644 +--- a/Makefile ++++ b/Makefile +@@ -7,7 +7,7 @@ + # 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. + +-PLUGIN = vnsiserver4 ++PLUGIN = vnsiserver + + ### The version number of this plugin (taken from the main source file): + +@@ -16,30 +16,18 @@ VERSION = $(shell grep 'static const char \*VERSION *=' vnsi.h | awk '{ print $$ + ### 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 --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc)) +-LIBDIR ?= $(call PKGCFG,libdir) +-LOCDIR = $(call PKGCFG,locdir) +-PLGCFG = $(call PKGCFG,plgcfg) + # + 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) +-ifeq ($(strip $(APIVERSION)),) +-APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') +-NOCONFIG := 1 +-endif ++APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) + + # backwards compatibility version < 1.7.34 +-API1733 := $(shell if [ "$(APIVERSION)" \< "1.7.34" ]; then echo true; fi; ) +- +-ifdef API1733 + + VDRSRC = $(VDRDIR) + VDRSRC ?= ../../.. +@@ -47,21 +35,8 @@ ifeq ($(strip $(LIBDIR)),) + LIBDIR = $(VDRSRC)/PLUGINS/lib + endif + +-ifndef NOCONFIG +-CXXFLAGS = $(call PKGCFG,cflags) +-CXXFLAGS += -fPIC +-else + -include $(VDRSRC)/Make.global + -include $(VDRSRC)/Make.config +-endif +- +-export CXXFLAGS +-else +- +-### Allow user defined options to overwrite defaults: +- +--include $(PLGCFG) +-endif + + ### The name of the distribution archive: + +@@ -74,11 +49,9 @@ SOFILE = libvdr-$(PLUGIN).so + + ### Includes and Defines (add further entries here): + +-ifdef API1733 + INCLUDES += -I$(VDRSRC)/include +-endif + +-DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DVNSI_SERVER_VERSION='"$(VERSION)"' ++DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DVNSI_SERVER_VERSION='"$(VERSION)"' -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE + + ifeq ($(DEBUG),1) + DEFINES += -DDEBUG +@@ -94,11 +67,7 @@ OBJS = vnsi.o bitstream.o vnsiclient.o config.o cxsocket.o parser.o parser_AAC.o + + ### The main target: + +-ifdef API1733 +-all: install-lib +-else + all: $(SOFILE) +-endif + # + + ### Implicit rules: +@@ -145,6 +114,7 @@ install-i18n: $(I18Nmsgs) + + $(SOFILE): $(OBJS) + $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ ++ @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) + + install-lib: $(SOFILE) + install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION) diff --git a/packages/3rdparty/multimedia/vdr-plugin-vnsiserver/patches/vdr-plugin-vnsiserver-02_makefile-largefile.patch b/packages/3rdparty/multimedia/vdr-plugin-vnsiserver/patches/e3cd383/vdr-plugin-vnsiserver-02_makefile-largefile.patch similarity index 100% rename from packages/3rdparty/multimedia/vdr-plugin-vnsiserver/patches/vdr-plugin-vnsiserver-02_makefile-largefile.patch rename to packages/3rdparty/multimedia/vdr-plugin-vnsiserver/patches/e3cd383/vdr-plugin-vnsiserver-02_makefile-largefile.patch