# Maintainer: Natanael Copa pkgname=live-media pkgver=2013.08.31 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="3321fc303bf02542018e5280efa1206c live.2013.08.31.tar.gz" sha256sums="138423301513c0cc9c6747b4e4e47fdfe21728cf579ffd2aa32fd6399152977c live.2013.08.31.tar.gz" sha512sums="a10f37e26e34df304616a6bc6830299e16c731b487cb57b61013e5751aa45bdc024da28cdcbe212935f625e2891e896cfed378cca5e1f85e5ae6ac3c83d80ea4 live.2013.08.31.tar.gz"