# Maintainer: Natanael Copa pkgname=live-media pkgver=2013.04.23 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 dir 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="1440933d015689ca400d2a27884aee6f live.2013.04.23.tar.gz" sha256sums="8d3122f0957dbedd4cc8d9c236b39f3442a43ff38c742c979b0582f479aae9d1 live.2013.04.23.tar.gz" sha512sums="4f648ba711a1e3d15b14a42f6f8ccd67c0111fb176c1f28779f80f9e7e27c204485e0383aa0cf72439257b5697ff8c481d56c9cf2a2bd95314cf68c85dd62055 live.2013.04.23.tar.gz"