35 lines
648 B
Bash
35 lines
648 B
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI=7
|
|
|
|
inherit toolchain-funcs flag-o-matic
|
|
|
|
DESCRIPTION="Resource Compiler for ELF binaries"
|
|
HOMEPAGE="http://elfembed.sourceforge.net/index.php"
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="x86"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare(){
|
|
sed 's/gcc/\$\{CC\}/g' -i Makefile
|
|
}
|
|
|
|
src_compile(){
|
|
emake OPT="${CFLAGS} ${LDFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)"
|
|
}
|
|
|
|
src_install(){
|
|
dodir /usr/bin
|
|
install rc ${D}/usr/bin/rc
|
|
install re ${D}/usr/bin/re
|
|
|
|
}
|