diff --git a/srcpkgs/rtmpdump/template b/srcpkgs/rtmpdump/template index eeeff44012e..f98160d7f18 100644 --- a/srcpkgs/rtmpdump/template +++ b/srcpkgs/rtmpdump/template @@ -4,7 +4,7 @@ version=2.4.20161210 revision=8 _patchlevel=${version##*.} create_wrksrc=yes -makedepends="zlib-devel libressl-devel" +makedepends="zlib-devel $(vopt_if gnutls 'gnutls-devel' 'libressl-devel')" short_desc="Toolkit for RTMP streams" maintainer="Orphaned " license="GPL-2, LGPL-2.1" @@ -17,8 +17,10 @@ case "$XBPS_TARGET_MACHINE" in *-musl) CFLAGS+=" -D__LINUX_NETFILTER_H" esac +build_options="gnutls" + do_build() { - make CC="$CC" OPT="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs} + make CC="$CC" OPT="$CFLAGS" LDFLAGS="$LDFLAGS" "$(vopt_if gnutls 'CRYPTO=GNUTLS' 'CRYPTO=OPENSSL')" ${makejobs} } do_install() { vmkdir usr/lib