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

Contents of /media-video/em8300-libraries/em8300-libraries-0.17.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat May 5 08:58:55 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
Changes since 1.6: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

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-video/em8300-libraries/em8300-libraries-0.17.4.ebuild,v 1.6 2011/03/23 08:28:26 radhermit Exp $
4
5 EAPI=1
6 inherit flag-o-matic 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="mirror://sourceforge/dxr3/${MY_P}.tar.gz"
13
14 COMMON_DEPEND="gtk? ( x11-libs/gtk+:2 )"
15 RDEPEND="${COMMON_DEPEND}
16 ~media-video/em8300-modules-${PV}"
17 DEPEND="${COMMON_DEPEND}
18 virtual/pkgconfig"
19
20 SLOT="0"
21 LICENSE="GPL-2"
22 KEYWORDS="amd64 ppc x86"
23 IUSE="gtk"
24
25 S="${WORKDIR}/${MY_P}"
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30
31 # Separate kernel modules.
32 sed -i -e 's:modules/\ ::g' Makefile.am
33
34 # Fix Makefile bug.
35 sed -i -e "s:test -z \"\$(firmwaredir)\":test -z\"\$(DESTDIR)(firmwaredir)\":g" Makefile.am
36
37 # Fix asneeded linking.
38 sed -i -e "s:AM_LDFLAGS:LDADD:" {dhc,overlay}/Makefile.am || die
39
40 eautoreconf
41 }
42
43 src_compile () {
44 use amd64 && append-flags -fPIC
45
46 econf \
47 $(use_enable gtk gtktest) || die "econf failed."
48
49 emake || die "emake failed."
50 }
51
52 src_install () {
53 dodir /lib/firmware
54 emake DESTDIR="${D}" em8300incdir=/usr/include/linux install \
55 || die "emake install failed."
56
57 dodoc AUTHORS ChangeLog NEWS README
58 }
59
60 pkg_postinst() {
61 elog "The em8300 libraries and modules have now been installed,"
62 elog "you will probably want to add /usr/bin/em8300setup to your"
63 elog "/etc/conf.d/local.start so that your em8300 card is "
64 elog "properly initialized on boot."
65 elog
66 elog "If you still need a microcode other than the one included"
67 elog "with the package, you can simply use em8300setup <microcode.ux>"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20