2012-04-18 01:05:26 +08:00
|
|
|
#
|
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer : abveritas[at]chakra-project[dot]org>
|
2010-05-18 22:39:29 +08:00
|
|
|
|
|
|
|
pkgname=live-media
|
2012-04-18 01:05:26 +08:00
|
|
|
pkgver=2012.04.04
|
2010-05-18 22:39:29 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A set of C++ libraries for multimedia streaming"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('LGPL')
|
|
|
|
url="http://live555.com/liveMedia"
|
|
|
|
depends=('gcc-libs')
|
2012-04-18 01:05:26 +08:00
|
|
|
source=("http://live555.com/liveMedia/public/live.${pkgver}.tar.gz")
|
|
|
|
md5sums=('25ad098a6e4a2e329ca6295a9ba27074')
|
2010-05-18 22:39:29 +08:00
|
|
|
|
2012-04-18 01:05:26 +08:00
|
|
|
build() {
|
2010-05-18 22:39:29 +08:00
|
|
|
cd ${srcdir}/live
|
2012-04-18 01:05:26 +08:00
|
|
|
|
|
|
|
sed \
|
|
|
|
-e 's/$(INCLUDES) -I. -O2 -DSOCKLEN_T/$(INCLUDES) -I. -O2 -I. -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1 -DSOCKLEN_T/g' \
|
|
|
|
-e 's/\(LIBRARY_LINK =\).*/\1 $(LD) -o/g' \
|
|
|
|
-e 's/\(LIBRARY_LINK_OPTS =\).*/\1 $(LINK_OPTS) -r -Bstatic/g' \
|
|
|
|
-i config.linux
|
2010-05-18 22:39:29 +08:00
|
|
|
./genMakefiles linux
|
2012-04-18 01:05:26 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/live
|
2010-05-18 22:39:29 +08:00
|
|
|
|
|
|
|
for dir in BasicUsageEnvironment UsageEnvironment groupsock liveMedia; do
|
2012-04-18 01:05:26 +08:00
|
|
|
install -dm755 ${pkgdir}/usr/{bin,lib,include/${dir}}
|
|
|
|
install -m644 ${dir}/*.a "${pkgdir}/usr/lib"
|
|
|
|
install -m644 ${dir}/include/*.h* "${pkgdir}/usr/include/${dir}"
|
2010-05-18 22:39:29 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
for testprog in `find testProgs -type f -perm 755`; do
|
2012-04-18 01:05:26 +08:00
|
|
|
install ${testprog} "${pkgdir}/usr/bin"
|
2010-05-18 22:39:29 +08:00
|
|
|
done
|
|
|
|
}
|