diff options
author | Ferris McCormick <fmccor@gentoo.org> | 2006-08-09 15:44:00 +0000 |
---|---|---|
committer | Ferris McCormick <fmccor@gentoo.org> | 2006-08-09 15:44:00 +0000 |
commit | 34e6fbe5f6cca3f1a7c9108694f331d1baf072cc (patch) | |
tree | 290b5fe79a47e6f38e9bbe5bad90f18c18c099e0 /x11-misc/afbinit/afbinit-1.0.1-r5.ebuild | |
parent | Deprecated (diff) | |
download | gentoo-2-34e6fbe5f6cca3f1a7c9108694f331d1baf072cc.tar.gz gentoo-2-34e6fbe5f6cca3f1a7c9108694f331d1baf072cc.tar.bz2 gentoo-2-34e6fbe5f6cca3f1a7c9108694f331d1baf072cc.zip |
afbinit-1.0.1-r4 stable; afbinit-1.0.1-r5 fixes more problems raised in Bug #132464 --- updated patch thanks to Jan Holtzhausen, and is required because of kernel changes causing /dev/fb/xx devices now to be /dev/fbxx directly.
(Portage version: 2.1.1_pre4-r4)
Diffstat (limited to 'x11-misc/afbinit/afbinit-1.0.1-r5.ebuild')
-rw-r--r-- | x11-misc/afbinit/afbinit-1.0.1-r5.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/x11-misc/afbinit/afbinit-1.0.1-r5.ebuild b/x11-misc/afbinit/afbinit-1.0.1-r5.ebuild new file mode 100644 index 000000000000..b8340beda8f4 --- /dev/null +++ b/x11-misc/afbinit/afbinit-1.0.1-r5.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/afbinit/afbinit-1.0.1-r5.ebuild,v 1.1 2006/08/09 15:44:00 fmccor Exp $ + +inherit eutils + +DESCRIPTION="loads the microcode for Elite3D framebuffers to use X" +HOMEPAGE="I dont have a home :(" +SRC_URI="http://cvs.gentoo.org/~weeve/files/${P}.tar.bz2" +IUSE="" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="-* ~sparc" + +DEPEND="virtual/libc" +RDEPEND="${DEPEND} + sys-apps/util-linux" + + +src_unpack() { + unpack ${A} + ## + # Patch rc.afb to handle both kernels 2.4.x and 2.6.x + einfo "Patching to handle both kernel 2.4.x and 2.6.x style afb identification" + cd ${S} + epatch ${FILESDIR}/rc.afb-${PVR}.patch || die "Cannot patch rc.afb init script" + einfo 'Patching afbinit.c to use MMAP_PUBLIC (needed for kernels > 2.6.14)' + epatch ${FILESDIR}/afbinit-mmap-${PV}.patch || die "Cannot patch for mmap" +} + +src_compile() { + emake || die "make failed" +} + +src_install() { + dosbin afbinit + dosbin rc.afb + exeinto /etc/init.d ; newexe ${FILESDIR}/afbinit.init afbinit +} + +pkg_postinst() { + einfo "To use afbinit, you'll need the AFB microcode." + einfo "This is available via a Solaris install at /usr/lib/afb.ucode" + einfo "or via sun.com" +} |