38 lines
852 B
Plaintext
38 lines
852 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
|
||
|
release=1
|
||
|
source=(https://crux.ster.zone/downloads/rtmpdump/rtmpdump-$version-c5f04a58.tar.xz)
|
||
|
|
||
|
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}
|
||
|
}
|