forked from ports/compat-32
40 lines
950 B
Plaintext
40 lines
950 B
Plaintext
# Description: A tool to download rtmp streams.
|
|
# URL: http://rtmpdump.mplayerhq.hu/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: gnutls-32 rtmpdump zlib-32
|
|
|
|
name=rtmpdump-32
|
|
version=2.4
|
|
_commit=f1b83c10d8beb43fcc70a6e88cf4325499f25857
|
|
release=4
|
|
source=(http://git.ffmpeg.org/gitweb/$name.git/snapshot/$_commit.tar.gz)
|
|
renames=(rtmpdump-$version-${_commit:0:8}-$release.tar.gz)
|
|
|
|
build() {
|
|
cd rtmpdump-*
|
|
sed \
|
|
-e 's/^CRYPTO=OPENSSL/#CRYPTO=OPENSSL/' \
|
|
-e 's/#CRYPTO=GNUTLS/CRYPTO=GNUTLS/' \
|
|
-i Makefile -i librtmp/Makefile
|
|
|
|
sed \
|
|
-e 's|OPT=|&-fPIC |' \
|
|
-e 's|OPT|OPTS|' \
|
|
-e 's|CFLAGS=.*|& $(OPT)|' \
|
|
-i librtmp/Makefile
|
|
|
|
make \
|
|
OPT="$CFLAGS" \
|
|
XLDFLAGS="$LDFLAGS"
|
|
mkdir -p $PKG/usr/lib32
|
|
make \
|
|
prefix='/usr' \
|
|
sbindir='/usr/bin' \
|
|
libdir='/usr/lib32' \
|
|
mandir='/usr/share/man' \
|
|
DESTDIR=$PKG \
|
|
install
|
|
|
|
rm -r $PKG/usr/{bin,include,share}
|
|
}
|