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.
gentoo-overlay/dev-games/flinker/flinker-1.72.ebuild

39 lines
800 B

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/flinker/flinker-1.72.ebuild,v 1.7 2010/08/31 10:37:36 tupone Exp $
EAPI="2"
inherit toolchain-funcs
DESCRIPTION="GBA cart writing utility by Jeff Frohwein"
HOMEPAGE="http://www.devrs.com/gba/software.php#misc"
SRC_URI="http://www.devrs.com/gba/files/flgba.zip"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RDEPEND=""
DEPEND="app-arch/unzip"
S=${WORKDIR}
src_prepare() {
sed -i \
-e '/unistd/s:^//::' \
-e 's:asm/io.h:sys/io.h:' \
fl.c \
|| die "sed failed"
echo >> fl.c
echo >> cartlib.c
}
src_compile() {
$(tc-getCC) ${LDFLAGS} -o FLinker ${CFLAGS} fl.c || die
}
src_install() {
dobin FLinker || die
dodoc readme
}