/[gentoo-x86]/media-libs/win32codecs/win32codecs-20071007-r4.ebuild
Gentoo

Contents of /media-libs/win32codecs/win32codecs-20071007-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue May 29 15:45:01 2012 UTC (2 years, 4 months ago) by aballier
Branch: MAIN
Changes since 1.4: +3 -3 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/win32codecs/win32codecs-20071007-r4.ebuild,v 1.4 2010/01/08 06:47:49 abcd Exp $
4
5 inherit multilib
6
7 DESCRIPTION="Windows 32-bit binary codecs for video and audio playback support"
8 SRC_URI="mirror://mplayer/releases/codecs/all-${PV}.tar.bz2"
9 HOMEPAGE="http://www.mplayerhq.hu/"
10 LICENSE="as-is"
11 SLOT="0"
12 KEYWORDS="-* ~amd64 x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-linux"
13 IUSE="real"
14
15 RDEPEND="real? ( =virtual/libstdc++-3.3* )"
16
17 S="${WORKDIR}/all-${PV}"
18
19 RESTRICT="strip binchecks"
20
21 pkg_setup() {
22 # This is a binary x86 package => ABI=x86
23 # Please keep this in future versions
24 # Daniel Gryniewicz <dang@gentoo.org>
25 has_multilib_profile && ABI="x86"
26 }
27
28 src_install() {
29 use prefix || EPREFIX=
30
31 insinto /usr/$(get_libdir)/win32
32 doins *.dll *.ax *.xa *.acm *.vwp *.drv *.DLL || die "Failed to install win32 codecs"
33
34 if use real
35 then
36 insinto /usr/$(get_libdir)/real
37 doins *so.6.0 || die "Failed to install realplayer codecs"
38
39 # copy newly introduced codecs from realplayer10
40 # see the ChangeLog online
41 doins *.so || die "Failed to install realplayer10 codecs"
42
43 # fix bug #80321
44 local x
45 for x in *so.6.0 *.so; do
46 dosym ../real/$x /usr/$(get_libdir)/win32 || die "Failed to make symlink to $x"
47 done
48 fi
49
50 dodoc README
51
52 cat > "${T}/50${PN}" <<EOF
53 SEARCH_DIRS_MASK="${EPREFIX}/usr/$(get_libdir)/real ${EPREFIX}/usr/$(get_libdir)/win32"
54 EOF
55 insinto /etc/revdep-rebuild
56 doins "${T}/50${PN}"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20