| 1 |
# Copyright 1999-2004 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header$
|
| 4 |
|
| 5 |
inherit freebsd-utils flag-o-matic
|
| 6 |
|
| 7 |
DESCRIPTION="FreeBSD's port of the well known GNU Compiler Collection: gcc"
|
| 8 |
SRC_URI="${SRC_URI}"
|
| 9 |
DEPEND=""
|
| 10 |
IUSE=""
|
| 11 |
|
| 12 |
S=${WORKDIR}/gnu/usr.bin/cc
|
| 13 |
|
| 14 |
src_unpack() {
|
| 15 |
unpack ${A}
|
| 16 |
|
| 17 |
cd ${WORKDIR}/gnu/usr.bin
|
| 18 |
epatch ${FILESDIR}/freebsd-cc-${PV}-makefileinc.patch
|
| 19 |
|
| 20 |
}
|
| 21 |
|
| 22 |
src_compile() {
|
| 23 |
strip-flags
|
| 24 |
filter-flags -O?
|
| 25 |
emake || die "emake failed"
|
| 26 |
}
|
| 27 |
|
| 28 |
src_install() {
|
| 29 |
make DESTDIR=${D} install || die "Install failed"
|
| 30 |
}
|