Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 309681 | Differences between
and this patch

Collapse All | Expand All

(-)/home/ohnobinki/gentoo-x86/media-plugins/live/live-2011.03.14.ebuild (-35 / +42 lines)
Lines 1-11 Link Here
1
# Copyright 1999-2011 Gentoo Foundation
1
# Copyright 1999-2011 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-2011.03.14.ebuild,v 1.1 2011/04/19 19:21:58 aballier Exp $
3
# $Header: $
4
4
5
EAPI=3
5
EAPI=4
6
inherit flag-o-matic eutils toolchain-funcs multilib
7
6
8
DESCRIPTION="Source-code libraries for standards-based RTP/RTCP/RTSP multimedia streaming, suitable for embedded and/or low-cost streaming applications"
7
inherit eutils toolchain-funcs multilib
8
9
DESCRIPTION="Standards-based RTP/RTCP/RTSP multimedia streaming for embedded streaming applications"
9
HOMEPAGE="http://www.live555.com/"
10
HOMEPAGE="http://www.live555.com/"
10
SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz"
11
SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz"
11
12
Lines 14-20 Link Here
14
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
15
IUSE=""
16
IUSE=""
16
17
17
S="${WORKDIR}"
18
S=${WORKDIR}
18
19
19
# Alexis Ballier <aballier@gentoo.org>
20
# Alexis Ballier <aballier@gentoo.org>
20
# Be careful, bump this everytime you bump the package and the ABI has changed.
21
# Be careful, bump this everytime you bump the package and the ABI has changed.
Lines 22-35 Link Here
22
LIVE_ABI_VERSION=4
23
LIVE_ABI_VERSION=4
23
24
24
src_prepare() {
25
src_prepare() {
25
	cd "${WORKDIR}"
26
	epatch "${FILESDIR}"/${PN}-2009.09.28-buildorder.patch
26
	epatch "${FILESDIR}/${PN}-recursive.patch"
27
	epatch "${FILESDIR}"/${PN}-recursive.patch
28
29
	cp -pPR live live-shared || die
30
	pushd live-shared || die
31
	# To build shared libraries with proper NEEDED entries, we need
32
	# these libraries to link to eachother. This patch does this.
33
	epatch "${FILESDIR}"/${PN}-2009.06.02-libdeps.patch
34
	popd || die
27
35
28
	cp -pPR live live-shared
36
	mv live live-static || die
29
	mv live live-static
30
37
31
	cp "${FILESDIR}/config.gentoo" live-static
38
	cp "${FILESDIR}"/config.gentoo live-static/ || die
32
	cp "${FILESDIR}/config.gentoo-so-r1" live-shared
39
	cp "${FILESDIR}"/config.gentoo-so-r1 live-shared/ || die
33
40
34
	case ${CHOST} in
41
	case ${CHOST} in
35
		*-solaris*)
42
		*-solaris*)
Lines 59-107 Link Here
59
	esac
66
	esac
60
}
67
}
61
68
62
src_configure() { :; }
69
src_configure() {
70
	tc-export CC CXX
71
	export LIVE_ABI_VERSION LIBDIR=/usr/"$(get_libdir)"
63
72
64
src_compile() {
73
	cd "${WORKDIR}"/${PN}-static || die
65
	tc-export CC CXX LD
74
	./genMakefiles gentoo || die
66
75
67
	cd "${WORKDIR}/live-static"
76
	cd "${WORKDIR}"/${PN}-shared || die
77
	./genMakefiles gentoo-so-r1 || die
78
}
68
79
80
src_compile() {
69
	einfo "Beginning static library build"
81
	einfo "Beginning static library build"
70
	./genMakefiles gentoo
82
	emake -C ${PN}-static -j1
71
	emake -j1 LINK_OPTS="-L. $(raw-ldflags)" || die "failed to build static libraries"
72
83
73
	einfo "Beginning programs build"
74
	cd "${WORKDIR}/live-static/testProgs"
75
	emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build test programs"
76
	cd "${WORKDIR}/live-static/mediaServer"
77
	emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build the mediaserver"
78
79
	cd "${WORKDIR}/live-shared"
80
	einfo "Beginning shared library build"
84
	einfo "Beginning shared library build"
81
	./genMakefiles gentoo-so-r1
85
	emake -C ${PN}-shared -j1
82
	local suffix=$(get_libname ${LIVE_ABI_VERSION})
86
83
	emake -j1 LINK_OPTS="-L. ${LDFLAGS}" LIB_SUFFIX="${suffix#.}" || die "failed to build shared libraries"
87
	einfo "Beginning programs build"
88
	emake -C ${PN}-shared/testProgs
89
	emake -C ${PN}-shared/mediaServer
84
}
90
}
85
91
86
src_install() {
92
src_install() {
87
	for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do
93
	for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do
88
		dolib.a live-static/${library}/lib${library}.a
94
		dolib.a ${PN}-static/${library}/lib${library}.a
89
		dolib.so live-shared/${library}/lib${library}$(get_libname ${LIVE_ABI_VERSION})
95
90
		dosym lib${library}$(get_libname ${LIVE_ABI_VERSION}) /usr/$(get_libdir)/lib${library}$(get_libname)
96
		mv ${PN}-shared/${library}/lib${library}.so{,.${LIVE_ABI_VERSION}} || die
97
		dolib.so ${PN}-shared/${library}/lib${library}.so.${LIVE_ABI_VERSION}
98
		dosym lib${library}.so.${LIVE_ABI_VERSION} /usr/$(get_libdir)/lib${library}.so
91
99
92
		insinto /usr/include/${library}
100
		insinto /usr/include/${library}
93
		doins live-shared/${library}/include/*h
101
		doins ${PN}-shared/${library}/include/*h
94
	done
102
	done
95
103
96
	# Should we really install these?
104
	# Should we really install these?
97
	find live-static/testProgs -type f -perm +111 -print0 | \
105
	dobin $(find ${PN}-shared/testProgs -type f -perm +111)
98
		xargs -0 dobin
99
106
100
	#install included live555MediaServer aplication
107
	#install included live555MediaServer aplication
101
	dobin live-static/mediaServer/live555MediaServer
108
	dobin ${PN}-shared/mediaServer/live555MediaServer
102
109
103
	# install docs
110
	# install docs
104
	dodoc live-static/README
111
	dodoc ${PN}-static/README
105
}
112
}
106
113
107
pkg_postinst() {
114
pkg_postinst() {

Return to bug 309681