# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Gilles CHAUVIN <gcnweb@gmail.com>
pkgname=live-media
pkgver=2024.05.15
pkgrel=1
pkgdesc='Set of C++ libraries for multimedia streaming'
url='http://live555.com/liveMedia'
arch=('x86_64' 'armv7h')
license=('LGPL')
depends=('gcc-libs' 'openssl')
source=(http://live555.com/liveMedia/public/live.$pkgver.tar.gz)
prepare() {
cd live
find . -name Makefile.head | xargs sed -e 's|/local||g' -i # Fix prefix
}
build() {
cd live
sed -E 's|(-DSOCKLEN_T=socklen_t)|\1 -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1|g' -i config.linux-with-shared-libraries
./genMakefiles linux-with-shared-libraries
CXXFLAGS+=' -std=c++20' \
make
}
package() {
cd live
make DESTDIR="$pkgdir" install
}
# vim: ts=2 sw=2 et:
sha256sums=('32091fe578850441034d3c7e625575db0138ce998f3ea6943eff4a7042b7f03d')