mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
rtmpdump: convert to new package format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
0ea7b41f02
commit
f72ee46eca
@ -1,49 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD
|
||||
|
||||
make prefix=/usr \
|
||||
incdir=/usr/include/librtmp \
|
||||
libdir=/usr/lib \
|
||||
mandir=/usr/share/man \
|
||||
CC="$CC" \
|
||||
LD="$LD" \
|
||||
AR="$AR" \
|
||||
CRYPTO="OPENSSL" \
|
||||
OPT="" \
|
||||
XCFLAGS="$CFLAGS" \
|
||||
XLDFLAGS="$LDFLAGS" \
|
||||
XLIBS="-lm"
|
||||
|
||||
$MAKEINSTALL prefix=/usr \
|
||||
incdir=/usr/include/librtmp \
|
||||
libdir=/usr/lib \
|
||||
mandir=/usr/share/man \
|
||||
CC="$CC" \
|
||||
LD="$LD" \
|
||||
AR="$AR" \
|
||||
CRYPTO="OPENSSL" \
|
||||
OPT="" \
|
||||
XCFLAGS="$CFLAGS" \
|
||||
XLDFLAGS="$LDFLAGS" \
|
||||
XLIBS="-lm"
|
@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp -P $PKG_BUILD/rtmpdump $INSTALL/usr/bin
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -P $PKG_BUILD/librtmp/*.so* $INSTALL/usr/lib
|
||||
|
@ -24,12 +24,63 @@ PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://rtmpdump.mplayerhq.hu/"
|
||||
#PKG_URL="http://rtmpdump.mplayerhq.hu/download/$PKG_NAME-$PKG_VERSION.tgz"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS="zlib openssl"
|
||||
PKG_BUILD_DEPENDS="toolchain zlib openssl"
|
||||
PKG_DEPENDS_TARGET="zlib openssl"
|
||||
PKG_BUILD_DEPENDS_TARGET="toolchain zlib openssl"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="rtmpdump: a toolkit for RTMP streams."
|
||||
PKG_LONGDESC="rtmpdump is a toolkit for RTMP streams. All forms of RTMP are supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_target() {
|
||||
make prefix=/usr \
|
||||
incdir=/usr/include/librtmp \
|
||||
libdir=/usr/lib \
|
||||
mandir=/usr/share/man \
|
||||
CC="$CC" \
|
||||
LD="$LD" \
|
||||
AR="$AR" \
|
||||
CRYPTO="OPENSSL" \
|
||||
OPT="" \
|
||||
XCFLAGS="$CFLAGS" \
|
||||
XLDFLAGS="$LDFLAGS" \
|
||||
XLIBS="-lm"
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
make DESTDIR=$SYSROOT_PREFIX \
|
||||
prefix=/usr \
|
||||
incdir=/usr/include/librtmp \
|
||||
libdir=/usr/lib \
|
||||
mandir=/usr/share/man \
|
||||
CC="$CC" \
|
||||
LD="$LD" \
|
||||
AR="$AR" \
|
||||
CRYPTO="OPENSSL" \
|
||||
OPT="" \
|
||||
XCFLAGS="$CFLAGS" \
|
||||
XLDFLAGS="$LDFLAGS" \
|
||||
XLIBS="-lm" \
|
||||
install
|
||||
|
||||
make DESTDIR=$INSTALL \
|
||||
prefix=/usr \
|
||||
incdir=/usr/include/librtmp \
|
||||
libdir=/usr/lib \
|
||||
mandir=/usr/share/man \
|
||||
CC="$CC" \
|
||||
LD="$LD" \
|
||||
AR="$AR" \
|
||||
CRYPTO="OPENSSL" \
|
||||
OPT="" \
|
||||
XCFLAGS="$CFLAGS" \
|
||||
XLDFLAGS="$LDFLAGS" \
|
||||
XLIBS="-lm" \
|
||||
install
|
||||
}
|
||||
|
||||
post_makeinstall_target() {
|
||||
rm -rf $INSTALL/usr/sbin
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user