/[gentoo-x86]/media-video/em8300-libraries/em8300-libraries-0.18.0_p20120124.ebuild
Gentoo

Contents of /media-video/em8300-libraries/em8300-libraries-0.18.0_p20120124.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Mon May 21 09:49:46 2012 UTC (5 years, 9 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.3: +2 -2 lines
x86 stable wrt bug #413411

(Portage version: 2.1.10.49/cvs/Linux i686)

1 hd_brummy 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 phajdan.jr 1.4 # $Header: /var/cvsroot/gentoo-x86/media-video/em8300-libraries/em8300-libraries-0.18.0_p20120124.ebuild,v 1.3 2012/05/05 08:58:55 jdhore Exp $
4 hd_brummy 1.1
5     EAPI=2
6     inherit autotools
7    
8     MY_P=${P/-libraries}
9    
10     DESCRIPTION="em8300 (RealMagic Hollywood+/Creative DXR3) video decoder card libraries"
11     HOMEPAGE="http://dxr3.sourceforge.net"
12     SRC_URI="http://vdr.websitec.de/download/${MY_P}.tar.gz
13     mirror://gentoo/em8300-gtk-2.0.m4.tbz2"
14    
15     LICENSE="GPL-2"
16     SLOT="0"
17 phajdan.jr 1.4 KEYWORDS="amd64 ~ppc x86"
18 hd_brummy 1.1 IUSE="gtk modules"
19    
20     COMMON_DEPEND="gtk? ( x11-libs/gtk+:2 )"
21     RDEPEND="${COMMON_DEPEND}
22     modules? ( ~media-video/em8300-modules-${PV} )"
23     DEPEND="${COMMON_DEPEND}
24 jdhore 1.3 virtual/pkgconfig"
25 hd_brummy 1.1
26     S=${WORKDIR}/${MY_P}
27    
28     src_prepare() {
29     # Separate kernel modules and fix Makefile bug.
30     sed -i \
31     -e 's:modules/\ ::g' \
32     -e "s:test -z \"\$(firmwaredir)\":test -z\"\$(DESTDIR)(firmwaredir)\":g" \
33     Makefile.am || die
34    
35     # Fix asneeded linking.
36     sed -i \
37     -e "s:AM_LDFLAGS:LDADD:" \
38     {dhc,overlay}/Makefile.am || die
39    
40     AT_M4DIR=${WORKDIR} eautoreconf
41     }
42    
43     src_configure() {
44     econf \
45     $(use_enable gtk gtktest)
46     }
47    
48     src_install() {
49     dodir /lib/firmware
50     emake DESTDIR="${D}" em8300incdir=/usr/include/linux install || die
51     dodoc AUTHORS ChangeLog README
52     }
53    
54     pkg_postinst() {
55     elog "The em8300 libraries and modules have now been installed,"
56     elog "you will probably want to add /usr/bin/em8300setup to your"
57     elog "/etc/conf.d/local.start so that your em8300 card is "
58     elog "properly initialized on boot."
59     elog
60     elog "If you still need a microcode other than the one included"
61     elog "with the package, you can simply use em8300setup <microcode.ux>"
62     }

  ViewVC Help
Powered by ViewVC 1.1.20