diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-15 13:10:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-15 13:10:59 +0000 |
commit | 4637ce754d3fedd6906307cd327e7569f5673126 (patch) | |
tree | 88d9a8717612390df43bd7d4965b289c2e1efaa4 /community/live-media | |
parent | 101371f0567343020395341d78e80309b2ec58b7 (diff) | |
download | aports-4637ce754d3fedd6906307cd327e7569f5673126.tar.bz2 aports-4637ce754d3fedd6906307cd327e7569f5673126.tar.xz |
community/live-media: move from main
Diffstat (limited to 'community/live-media')
-rw-r--r-- | community/live-media/APKBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/community/live-media/APKBUILD b/community/live-media/APKBUILD new file mode 100644 index 0000000000..c8a7011719 --- /dev/null +++ b/community/live-media/APKBUILD @@ -0,0 +1,56 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=live-media +pkgver=2018.04.25 +pkgrel=0 +pkgdesc="A set of C++ libraries for multimedia streaming" +url="http://live555.com/liveMedia" +arch="all" +license="LGPL" +subpackages="$pkgname-dev $pkgname-utils" +options="!check" +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-with-shared-libraries +} + +build() { + cd "$builddir" + ./genMakefiles linux-with-shared-libraries + make C_COMPILER="${CC:-gcc}" CPLUSPLUS_COMPILER="${CXX:-g++}" \ + || return 1 +} + +package() { + local testprog f so + 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 || true + for so in $f/lib*.so.*; do + soname=$(scanelf -B --format "#F%S" $so) + cp $so "$pkgdir"/usr/lib/ || return 1 + so=${so##*/} + ln -s ${so} "$pkgdir"/usr/lib/${soname} || return 1 + ln -s ${so} "$pkgdir"/usr/lib/${soname%.so.*}.so || return 1 + done + done + + mkdir -p "$pkgdir"/usr/bin + for testprog in `find testProgs -type f -perm 755`; do + install ${testprog} "$pkgdir"/usr/bin + done +} + +utils() { + pkgdesc="multimedia RTSP streaming tools" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +sha512sums="93010f5ff82af84a7c048ea3fd8fa15b86741abb7fbe078b447b5e0a78c36300713e1a4dde64a60ae00b951c7cf106a91ae106dc2c0db57dbb58286e05348c15 live.2018.04.25.tar.gz" |