# Maintainer: Natanael Copa pkgname=live-media pkgver=2013.07.16 pkgrel=0 pkgdesc="A set of C++ libraries for multimedia streaming" url="http://live555.com/liveMedia" arch="all" license="LGPL" depends= makedepends= subpackages="$pkgname-dev" source="http://live555.com/liveMedia/public/live.$pkgver.tar.gz" _builddir="$srcdir"/live prepare() { cd "$_builddir" sed -e "/^COMPILE_OPTS/s/$/ $CFLAGS -fPIC -DPIC -DXLOCALE_NOT_USED=1 -DRTSPCLIENT_SYNCHRONOUS_INTERFACE/" \ -i config.linux } build() { cd "$_builddir" ./genMakefiles linux make C_COMPILER="${CC:-gcc}" CPLUSPLUS_COMPILER="${CXX:-g++}" \ || return 1 } package() { local testprog f cd "$_builddir" mkdir -p "$pkgdir"/usr/lib for f in BasicUsageEnvironment UsageEnvironment liveMedia groupsock; do mkdir -p "$pkgdir"/usr/include/$f cp $f/include/*.h* "$pkgdir"/usr/include/$f cp $f/lib${f}.a "$pkgdir"/usr/lib done mkdir -p "$pkgdir"/usr/bin for testprog in `find testProgs -type f -perm 755`; do install ${testprog} "$pkgdir"/usr/bin done } md5sums="8b660d11d43c3beac11580e62e3179f8 live.2013.07.16.tar.gz" sha256sums="ade2985aa7d096f484097219b6e9abbddd56fd53879b81533cce59a26140b5f7 live.2013.07.16.tar.gz" sha512sums="b0a5b0f7cbb42dd22cc01890ce3eed0db4a10fe4f3e8cb4382a1d79761842d70310341315ad8f35a9e66bd2fe8977cf7b000e809840b286beb9ba6ed86c84828 live.2013.07.16.tar.gz"