You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.9 KiB
73 lines
1.9 KiB
12 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
12 years ago
|
# $Header: /var/cvsroot/gentoo-x86/sys-firmware/vgabios/vgabios-0.6c-r1.ebuild,v 1.1 2012/07/28 22:15:34 cardoe Exp $
|
||
12 years ago
|
|
||
|
EAPI=4
|
||
12 years ago
|
|
||
|
# Can't really call them backports when they're fixes that upstream
|
||
|
# won't carry
|
||
|
FIXES=2
|
||
|
|
||
|
inherit eutils
|
||
|
|
||
|
DESCRIPTION="VGA BIOS implementation"
|
||
|
HOMEPAGE="http://www.nongnu.org/vgabios/"
|
||
|
SRC_URI="http://savannah.gnu.org/download/${PN}/${P}.tgz
|
||
12 years ago
|
http://dev.gentoo.org/~cardoe/distfiles/${P}-bins.tar.xz
|
||
|
http://dev.gentoo.org/~cardoe/distfiles/${P}-fixes-${FIXES}.tar.bz2"
|
||
12 years ago
|
|
||
|
LICENSE="LGPL-2.1"
|
||
|
SLOT="0"
|
||
12 years ago
|
KEYWORDS="amd64 ~ppc ~ppc64 x86 amd64-fbsd"
|
||
12 years ago
|
IUSE="debug"
|
||
|
|
||
12 years ago
|
DEPEND="amd64? ( sys-devel/dev86 )
|
||
|
x86? ( sys-devel/dev86 )"
|
||
|
RDEPEND=""
|
||
12 years ago
|
|
||
|
src_prepare() {
|
||
12 years ago
|
[[ -n ${FIXES} ]] && \
|
||
|
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||
|
epatch
|
||
12 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
12 years ago
|
if use amd64 || use x86 ; then
|
||
|
emake clean # Necessary to clean up the pre-built pieces
|
||
|
emake biossums
|
||
|
emake
|
||
|
fi
|
||
12 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
insinto /usr/share/vgabios
|
||
|
|
||
12 years ago
|
if use amd64 || use x86 ; then
|
||
|
# Stock VGABIOS
|
||
|
newins VGABIOS-lgpl-latest.bin vgabios.bin
|
||
|
use debug && newins VGABIOS-lgpl-latest.debug.bin vgabios.debug.bin
|
||
12 years ago
|
|
||
12 years ago
|
# Cirrus
|
||
|
newins VGABIOS-lgpl-latest.cirrus.bin vgabios-cirrus.bin
|
||
|
use debug && newins VGABIOS-lgpl-latest.cirrus.debug.bin \
|
||
|
vgabios-cirrus.debug.bin
|
||
12 years ago
|
|
||
12 years ago
|
# QXL
|
||
|
newins VGABIOS-lgpl-latest.qxl.bin vgabios-qxl.bin
|
||
|
use debug && newins VGABIOS-lgpl-latest.qxl.debug.bin \
|
||
|
vgabios-qxl.debug.bin
|
||
12 years ago
|
|
||
12 years ago
|
# Standard VGA
|
||
|
newins VGABIOS-lgpl-latest.stdvga.bin vgabios-stdvga.bin
|
||
|
use debug && newins VGABIOS-lgpl-latest.stdvga.debug.bin \
|
||
|
vgabios-stdvga.debug.bin
|
||
12 years ago
|
|
||
12 years ago
|
# VMWare
|
||
|
newins VGABIOS-lgpl-latest.vmware.bin vgabios-vmware.bin
|
||
|
use debug && newins VGABIOS-lgpl-latest.vmware.debug.bin \
|
||
|
vgabios-vmware.debug.bin
|
||
|
else
|
||
|
doins bins/*
|
||
|
fi
|
||
12 years ago
|
}
|