1
0
forked from ports/contrib

44 lines
774 B
Plaintext
Raw Normal View History

2013-10-22 20:18:09 +11:00
# Description: A tool to download rtmp streams.
# URL: http://rtmpdump.mplayerhq.hu/
2014-11-10 23:28:07 +11:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: zlib gnutls
2013-10-22 20:18:09 +11:00
name=rtmpdump
2014-03-02 20:53:06 +11:00
version=2.4
release=3
source=(http://crux.ster.zone/downloads/$name/$name-$version-c5f04a58.tar.xz)
2013-10-22 20:18:09 +11:00
build() {
cd $name
2014-03-02 20:53:06 +11:00
sed \
-e 's/^CRYPTO=OPENSSL/#CRYPTO=OPENSSL/' \
-e 's/#CRYPTO=GNUTLS/CRYPTO=GNUTLS/' \
-i Makefile -i librtmp/Makefile
sed \
2014-03-02 20:53:06 +11:00
-e 's|OPT=|&-fPIC |' \
-e 's|OPT|OPTS|' \
-e 's|CFLAGS=.*|& $(OPT)|' \
-i librtmp/Makefile
2014-03-02 20:53:06 +11:00
2013-10-22 20:18:09 +11:00
install -d $PKG/usr/lib
2014-05-25 15:49:10 +10:00
[ "$CC" ] || CC=gcc
make \
CC="$CC" \
$MAKEFLAGS \
OPT="$CFLAGS" \
XLDFLAGS="$LDFLAGS" \
SYS=posix
2014-03-02 20:53:06 +11:00
make \
prefix=/usr \
sbindir=/usr/bin \
mandir=/usr/share/man \
2014-03-02 20:53:06 +11:00
DESTDIR=$PKG \
install
2013-10-22 20:18:09 +11:00
}