1 |
commit: 3c6775b6c726db9a06aa17441126b2fc5a617b6a |
2 |
Author: Thomas Sachau <tommy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 1 18:11:32 2012 +0000 |
4 |
Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 1 18:11:32 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/multilib-portage.git;a=commit;h=3c6775b6 |
7 |
|
8 |
Add missing ebuild |
9 |
|
10 |
--- |
11 |
media-plugins/live/live-2011.12.23.ebuild | 120 +++++++++++++++++++++++++++++ |
12 |
1 files changed, 120 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/media-plugins/live/live-2011.12.23.ebuild b/media-plugins/live/live-2011.12.23.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..c786d26 |
17 |
--- /dev/null |
18 |
+++ b/media-plugins/live/live-2011.12.23.ebuild |
19 |
@@ -0,0 +1,120 @@ |
20 |
+# Copyright 1999-2011 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/live/live-2011.12.23.ebuild,v 1.1 2011/12/31 11:31:40 aballier Exp $ |
23 |
+ |
24 |
+EAPI=3 |
25 |
+inherit flag-o-matic eutils toolchain-funcs multilib |
26 |
+ |
27 |
+DESCRIPTION="Source-code libraries for standards-based RTP/RTCP/RTSP multimedia streaming, suitable for embedded and/or low-cost streaming applications" |
28 |
+HOMEPAGE="http://www.live555.com/" |
29 |
+SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz" |
30 |
+ |
31 |
+LICENSE="LGPL-2.1" |
32 |
+SLOT="0" |
33 |
+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" |
34 |
+IUSE="" |
35 |
+ |
36 |
+S="${WORKDIR}" |
37 |
+ |
38 |
+# Alexis Ballier <aballier@g.o> |
39 |
+# Be careful, bump this everytime you bump the package and the ABI has changed. |
40 |
+# If you don't know, ask someone. |
41 |
+LIVE_ABI_VERSION=4 |
42 |
+ |
43 |
+src_prepare() { |
44 |
+ epatch "${FILESDIR}"/${PN}-2009.09.28-buildorder.patch |
45 |
+ cd "${WORKDIR}" |
46 |
+ epatch "${FILESDIR}/${PN}-recursive.patch" |
47 |
+ |
48 |
+ cp -pPR live live-shared || die |
49 |
+ pushd live-shared || die |
50 |
+ # To build shared libraries with proper NEEDED entries, we need |
51 |
+ # these libraries to link to eachother. This patch does this. |
52 |
+ epatch "${FILESDIR}"/${P}-libdeps.patch |
53 |
+ popd || die |
54 |
+ |
55 |
+ mv live live-static || die |
56 |
+ |
57 |
+ cp "${FILESDIR}"/config.gentoo-r1 live-static/ || die |
58 |
+ cp "${FILESDIR}"/config.gentoo-so-r2 live-shared/ || die |
59 |
+ |
60 |
+ case ${CHOST} in |
61 |
+ *-solaris*) |
62 |
+ sed -i \ |
63 |
+ -e '/^COMPILE_OPTS /s/$/ -DSOLARIS/' \ |
64 |
+ -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \ |
65 |
+ live-static/config.gentoo-r1 \ |
66 |
+ live-shared/config.gentoo-so-r2 \ |
67 |
+ || die |
68 |
+ ;; |
69 |
+ *-darwin*) |
70 |
+ sed -i \ |
71 |
+ -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \ |
72 |
+ -e '/^LINK /s/$/ /' \ |
73 |
+ -e '/^LIBRARY_LINK /s/$/ /' \ |
74 |
+ -e '/^LIBRARY_LINK_OPTS /s/-Bstatic//' \ |
75 |
+ live-static/config.gentoo-r1 \ |
76 |
+ || die static |
77 |
+ sed -i \ |
78 |
+ -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \ |
79 |
+ -e '/^LINK /s/$/ /' \ |
80 |
+ -e '/^LIBRARY_LINK /s/=.*$/= $(CXX) -o /' \ |
81 |
+ -e '/^LIBRARY_LINK_OPTS /s:-shared.*$:-undefined suppress -flat_namespace -dynamiclib -install_name '"${EPREFIX}/usr/$(get_libdir)/"'$@:' \ |
82 |
+ live-shared/config.gentoo-so-r2 \ |
83 |
+ || die shared |
84 |
+ ;; |
85 |
+ esac |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ tc-export CC CXX |
90 |
+ export LIVE_ABI_VERSION LIBDIR=/usr/"$(get_libdir)" |
91 |
+ |
92 |
+ cd "${WORKDIR}"/${PN}-static || die |
93 |
+ ./genMakefiles gentoo-r1 || die |
94 |
+ |
95 |
+ cd "${WORKDIR}"/${PN}-shared || die |
96 |
+ ./genMakefiles gentoo-so-r2 || die |
97 |
+} |
98 |
+ |
99 |
+src_compile() { |
100 |
+ einfo "Beginning static library build" |
101 |
+ emake -C ${PN}-static -j1 |
102 |
+ |
103 |
+ einfo "Beginning shared library build" |
104 |
+ emake -C ${PN}-shared -j1 |
105 |
+ |
106 |
+ einfo "Beginning programs build" |
107 |
+ emake -C ${PN}-shared/testProgs |
108 |
+ emake -C ${PN}-shared/mediaServer |
109 |
+} |
110 |
+ |
111 |
+src_install() { |
112 |
+ for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do |
113 |
+ dolib.a live-static/${library}/lib${library}.a |
114 |
+ |
115 |
+ mv ${PN}-shared/${library}/lib${library}.so{,.${LIVE_ABI_VERSION}} || die |
116 |
+ dolib.so ${PN}-shared/${library}/lib${library}.so.${LIVE_ABI_VERSION} |
117 |
+ dosym lib${library}.so.${LIVE_ABI_VERSION} /usr/$(get_libdir)/lib${library}.so |
118 |
+ |
119 |
+ insinto /usr/include/${library} |
120 |
+ doins live-shared/${library}/include/*h |
121 |
+ done |
122 |
+ |
123 |
+ # Should we really install these? |
124 |
+ find live-static/testProgs -type f -perm +111 -print0 | \ |
125 |
+ xargs -0 dobin |
126 |
+ |
127 |
+ #install included live555MediaServer aplication |
128 |
+ dobin live-static/mediaServer/live555MediaServer |
129 |
+ |
130 |
+ # install docs |
131 |
+ dodoc live-static/README |
132 |
+} |
133 |
+ |
134 |
+pkg_postinst() { |
135 |
+ ewarn "If you are upgrading from a version prior to live-2008.02.08" |
136 |
+ ewarn "Please make sure to rebuild applications built against ${PN}" |
137 |
+ ewarn "like vlc or mplayer. ${PN} may have had ABI changes and ${PN}" |
138 |
+ ewarn "support might be broken." |
139 |
+} |