From af1b50fbd6d28780e0d90cbb2fbfdc58fb2cb21a Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Mon, 25 Apr 2016 10:27:47 -0700 Subject: [PATCH] dvblast: add package --- .../dvb-tools-depends/dvblast/package.mk | 43 +++++++++++++++++++ .../dvblast/patches/dvblast-ldflags.patch | 17 ++++++++ 2 files changed, 60 insertions(+) create mode 100644 packages/addons/addon-depends/dvb-tools-depends/dvblast/package.mk create mode 100644 packages/addons/addon-depends/dvb-tools-depends/dvblast/patches/dvblast-ldflags.patch diff --git a/packages/addons/addon-depends/dvb-tools-depends/dvblast/package.mk b/packages/addons/addon-depends/dvb-tools-depends/dvblast/package.mk new file mode 100644 index 0000000000..28f4f13cf4 --- /dev/null +++ b/packages/addons/addon-depends/dvb-tools-depends/dvblast/package.mk @@ -0,0 +1,43 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="dvblast" +PKG_VERSION="3.0" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.videolan.org" +PKG_URL="http://downloads.videolan.org/pub/videolan/dvblast/${PKG_VERSION}/dvblast-${PKG_VERSION}.tar.bz2" +PKG_DEPENDS_TARGET="toolchain bitstream libev" +PKG_PRIORITY="optional" +PKG_SECTION="tools" +PKG_SHORTDESC="DVBlast is a simple and powerful MPEG-2/TS demux and streaming application" +PKG_LONGDESC="DVBlast is a simple and powerful MPEG-2/TS demux and streaming application" +PKG_AUTORECONF="no" + +MAKEFLAGS="V=1" + +pre_configure_target() { + export LDFLAGS="$LDFLAGS -lm" +} + +makeinstall_target() { + : # nop +} diff --git a/packages/addons/addon-depends/dvb-tools-depends/dvblast/patches/dvblast-ldflags.patch b/packages/addons/addon-depends/dvb-tools-depends/dvblast/patches/dvblast-ldflags.patch new file mode 100644 index 0000000000..9ad9e2080b --- /dev/null +++ b/packages/addons/addon-depends/dvb-tools-depends/dvblast/patches/dvblast-ldflags.patch @@ -0,0 +1,17 @@ +diff -Naur dvblast-3.0/Makefile dvblast-3.0.patch/Makefile +--- dvblast-3.0/Makefile 2015-10-05 17:51:14.000000000 +0200 ++++ dvblast-3.0.patch/Makefile 2016-03-26 22:54:59.953303040 +0100 +@@ -55,11 +55,11 @@ + + dvblast: $(OBJ_DVBLAST) + @echo "LINK $@" +- $(Q)$(CROSS)$(CC) -o $@ $(OBJ_DVBLAST) $(LDLIBS_DVBLAST) $(LDLIBS) ++ $(Q)$(CROSS)$(CC) -o $@ $(OBJ_DVBLAST) $(LDFLAGS) $(LDLIBS_DVBLAST) $(LDLIBS) + + dvblastctl: $(OBJ_DVBLASTCTL) + @echo "LINK $@" +- $(Q)$(CROSS)$(CC) -o $@ $(OBJ_DVBLASTCTL) $(LDLIBS) ++ $(Q)$(CROSS)$(CC) -o $@ $(OBJ_DVBLASTCTL) $(LDFLAGS) $(LDLIBS) + + clean: + @echo "CLEAN $(CLEAN_OBJS)"