44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'rtmpdump'
|
|
pkgname=rtmpdump
|
|
version=2.4.20161210
|
|
revision=5
|
|
_patchlevel=${version##*.}
|
|
create_wrksrc=yes
|
|
makedepends="zlib-devel libressl-devel"
|
|
short_desc="Toolkit for RTMP streams"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://rtmpdump.mplayerhq.hu/"
|
|
license="GPL-2, LGPL-2.1"
|
|
distfiles="http://dev.gentoo.org/~hwoarang/distfiles/${pkgname}-${version%.*}_p${_patchlevel}.tar.gz"
|
|
checksum=d6da3b683f1045f02d94a81b0c583318dba021f69bdab970c5d5d73e8c38860f
|
|
|
|
CFLAGS="-Wno-unused-const-variable -Wno-unused-but-set-variable"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) CFLAGS+=" -D__LINUX_NETFILTER_H"
|
|
esac
|
|
|
|
do_build() {
|
|
make CC="$CC" OPT="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
|
|
}
|
|
do_install() {
|
|
vmkdir usr/lib
|
|
make prefix=/usr sbindir=/usr/bin mandir=/usr/share/man DESTDIR=$DESTDIR install
|
|
}
|
|
|
|
librtmp_package() {
|
|
short_desc+=" - shared library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
librtmp-devel_package() {
|
|
depends="${makedepends} librtmp>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|