void-packages/srcpkgs/rtmpdump/template
John 794bcb40c1 rtmpdump: add gnutls build_option
rtmpdump doesn't build with OpenSSL-1.1
2021-01-30 20:11:30 +01:00

45 lines
1.2 KiB
Bash

# Template file for 'rtmpdump'
pkgname=rtmpdump
version=2.4.20161210
revision=8
_patchlevel=${version##*.}
create_wrksrc=yes
makedepends="zlib-devel $(vopt_if gnutls 'gnutls-devel' 'libressl-devel')"
short_desc="Toolkit for RTMP streams"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2, LGPL-2.1"
homepage="http://rtmpdump.mplayerhq.hu/"
distfiles="https://alpha.de.repo.voidlinux.org/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
build_options="gnutls"
do_build() {
make CC="$CC" OPT="$CFLAGS" LDFLAGS="$LDFLAGS" "$(vopt_if gnutls 'CRYPTO=GNUTLS' 'CRYPTO=OPENSSL')" ${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"
}
}