1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs
8 DESCRIPTION="serial graphics adapter bios option rom for x86"
9 HOMEPAGE="https://code.google.com/p/sgabios/"
10 SRC_URI="mirror://gentoo/${P}.tar.xz
11 https://dev.gentoo.org/~cardoe/distfiles/${P}.tar.xz
12 https://dev.gentoo.org/~cardoe/distfiles/${P}-bins.tar.xz"
16 KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
20 epatch "${FILESDIR}"/${P}-makefile.patch
21 epatch "${FILESDIR}"/${P}-build-cc.patch #552280
26 if use amd64 || use x86 ; then
28 tc-export_build_env BUILD_CC
30 BUILD_CC="${BUILD_CC}" \
31 BUILD_CFLAGS="${BUILD_CFLAGS}" \
32 BUILD_LDFLAGS="${BUILD_LDFLAGS}" \
33 BUILD_CPPFLAGS="${BUILD_CPPFLAGS}" \
37 OBJCOPY="$(tc-getOBJCOPY)"
42 insinto /usr/share/sgabios
44 if use amd64 || use x86 ; then
47 doins bins/sgabios.bin