Lines 1-77
Link Here
|
1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2010 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/live-2009.09.28.ebuild,v 1.1 2009/09/29 07:03:26 aballier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/live-2009.09.28.ebuild,v 1.1 2009/09/29 07:03:26 aballier Exp $ |
4 |
|
4 |
|
5 |
inherit flag-o-matic eutils toolchain-funcs multilib |
5 |
EAPI="2" |
6 |
|
6 |
|
7 |
DESCRIPTION="Source-code libraries for standards-based RTP/RTCP/RTSP multimedia streaming, suitable for embedded and/or low-cost streaming applications" |
7 |
inherit eutils flag-o-matic toolchain-funcs multilib |
|
|
8 |
|
9 |
DESCRIPTION="Standards-based RTP/RTCP/RTSP multimedia streaming for embedded streaming applications" |
8 |
HOMEPAGE="http://www.live555.com/" |
10 |
HOMEPAGE="http://www.live555.com/" |
9 |
SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz" |
11 |
SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz" |
10 |
|
12 |
|
11 |
LICENSE="LGPL-2.1" |
13 |
LICENSE="LGPL-2.1" |
12 |
SLOT="0" |
14 |
SLOT="0" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
14 |
IUSE="" |
16 |
IUSE="static-libs" |
15 |
|
17 |
|
16 |
S="${WORKDIR}" |
18 |
DEPEND="sys-devel/libtool" |
|
|
19 |
RDEPEND="" |
20 |
|
21 |
S=${WORKDIR}/${PN} |
17 |
|
22 |
|
18 |
# Alexis Ballier <aballier@gentoo.org> |
23 |
# Alexis Ballier <aballier@gentoo.org> |
19 |
# Be careful, bump this everytime you bump the package and the ABI has changed. |
24 |
# Be careful, bump this everytime you bump the package and the ABI has changed. |
20 |
# If you don't know, ask someone. |
25 |
# If you don't know, ask someone. |
21 |
LIVE_ABI_VERSION=3 |
26 |
LIVE_ABI_VERSION=3 |
22 |
|
27 |
|
23 |
src_unpack() { |
28 |
src_prepare() { |
24 |
unpack ${A} |
29 |
cp "${FILESDIR}"/config.gentoo ./ || die |
25 |
cd "${WORKDIR}" |
30 |
epatch "${FILESDIR}"/${P}-buildorder.patch |
26 |
epatch "${FILESDIR}/${PN}-recursive.patch" |
31 |
epatch "${FILESDIR}"/${PN}-2009.06.02-libdeps.patch |
|
|
32 |
epatch "${FILESDIR}"/${PN}-recursive.patch |
33 |
} |
27 |
|
34 |
|
28 |
cp -pPR live live-shared |
35 |
src_configure() { |
29 |
mv live live-static |
36 |
tc-export CC CXX |
|
|
37 |
export LIVE_ABI_VERSION LIBDIR=/usr/$(get_libdir) |
30 |
|
38 |
|
31 |
cp "${FILESDIR}/config.gentoo" live-static |
39 |
if ! use static-libs; then |
32 |
cp "${FILESDIR}/config.gentoo-so-r1" live-shared |
40 |
append-flags -shared |
|
|
41 |
append-ldflags -shared |
42 |
fi |
43 |
|
44 |
./genMakefiles gentoo |
33 |
} |
45 |
} |
34 |
|
46 |
|
35 |
src_compile() { |
47 |
src_compile() { |
36 |
tc-export CC CXX LD |
48 |
einfo "Beginning library build" |
37 |
|
49 |
emake -j1 || die "failed to build libraries" |
38 |
cd "${WORKDIR}/live-static" |
|
|
39 |
|
40 |
einfo "Beginning static library build" |
41 |
./genMakefiles gentoo |
42 |
emake -j1 LINK_OPTS="-L. $(raw-ldflags)" || die "failed to build static libraries" |
43 |
|
50 |
|
44 |
einfo "Beginning programs build" |
51 |
einfo "Beginning programs build" |
45 |
cd "${WORKDIR}/live-static/testProgs" |
52 |
emake -C testProgs || die "failed to build test programs" |
46 |
emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build test programs" |
53 |
emake -C mediaServer || die "failed to build the mediaserver" |
47 |
cd "${WORKDIR}/live-static/mediaServer" |
|
|
48 |
emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build the mediaserver" |
49 |
|
50 |
cd "${WORKDIR}/live-shared" |
51 |
einfo "Beginning shared library build" |
52 |
./genMakefiles gentoo-so-r1 |
53 |
emake -j1 LINK_OPTS="-L. ${LDFLAGS}" LIB_SUFFIX="so.${LIVE_ABI_VERSION}" || die "failed to build shared libraries" |
54 |
} |
54 |
} |
55 |
|
55 |
|
56 |
src_install() { |
56 |
src_install() { |
|
|
57 |
dodir /usr/{$(get_libdir),bin} || die |
57 |
for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do |
58 |
for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do |
58 |
dolib.a live-static/${library}/lib${library}.a |
59 |
libtool --mode=install install -c ${library}/lib${library}.la "${D}"/usr/$(get_libdir)/ || die |
59 |
dolib.so live-shared/${library}/lib${library}.so.${LIVE_ABI_VERSION} |
60 |
|
60 |
dosym lib${library}.so.${LIVE_ABI_VERSION} /usr/$(get_libdir)/lib${library}.so |
61 |
if ! use static-libs; then |
|
|
62 |
# make tommy happy --ohnobinki |
63 |
rm -v "${D}"/usr/$(get_libdir)/lib${library}.la || die |
64 |
fi |
61 |
|
65 |
|
62 |
insinto /usr/include/${library} |
66 |
insinto /usr/include/${library} |
63 |
doins live-shared/${library}/include/*h |
67 |
doins ${library}/include/*h || die |
64 |
done |
68 |
done |
65 |
|
69 |
|
66 |
# Should we really install these? |
70 |
# Should we really install these? |
67 |
find live-static/testProgs -type f -perm +111 -print0 | \ |
71 |
find testProgs -type f -perm +111 \ |
68 |
xargs -0 dobin |
72 |
-exec libtool --mode=install install -c '{}' "${D}"/usr/bin/ \; || die |
69 |
|
73 |
|
70 |
#install included live555MediaServer aplication |
74 |
#install included live555MediaServer application |
71 |
dobin live-static/mediaServer/live555MediaServer |
75 |
libtool --mode=install install -c mediaServer/live555MediaServer "${D}"/usr/bin/ || die |
72 |
|
76 |
|
73 |
# install docs |
77 |
# install docs |
74 |
dodoc live-static/README |
78 |
dodoc README || die |
75 |
} |
79 |
} |
76 |
|
80 |
|
77 |
pkg_postinst() { |
81 |
pkg_postinst() { |