aboutsummaryrefslogtreecommitdiffstats
path: root/lang/pgcc/Makefile
blob: 5cb2f7aa8c181138182bfe1a824627590cbe99d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# New ports collection makefile for:    pgcc-current  - Pentium gcc
# Version required: gcc-2.7.2 + Pentium patches current developement
# Date created:     Mi 18 Dez 1996 00:26:20 MET
# Whom:         Andreas Klemm <andreas@klemm.gtn.com>
#
# $Id: Makefile,v 1.8 1997/10/17 05:30:26 andreas Exp $
#

DISTNAME=   gcc-2.7.2
PKGNAME=    pgcc-2.7.2c
CATEGORIES= lang
MASTER_SITES=   ftp://ftp.cygnus.com/pub/egcs/snapshots/1997-09-24/ \
        ftp://ftp.ninemoons.com/pub/egcs/snapshots/1997-09-24/ \
        ftp://gd.tuwien.ac.at/gnu/egcs/snapshots/1997-09-24/ \
        ftp://ftp.ilog.fr/pub/Mirrors/egcs/snapshots/1997-09-24/ \
        ftp://ftp.goof.com/pub/pcg/egcs/snapshots/1997-09-24/ \
        http://www.goof.com/pcg/data/egcs/snapshots/1997-09-24/
DISTFILES=  egcs-970924.tar.gz

MAINTAINER= andreas@FreeBSD.ORG

PATCH_SITES=    http://www.goof.com/pcg/data/source/ \
                ftp://ftp.maisel.int-evry.fr/pub/linux/pentium/source/

PATCHFILES= egcs-970924-pgcc-970924.diff.gz \
        pgcc-970924-971008.diff.gz

FETCH_DEPENDS=  ${PREFIX}/bin/autoconf:${PORTSDIR}/devel/autoconf

BROKEN=     "problems during patch, PLIST needs closer look"
WRKSRC=     ${WRKDIR}/egcs-970924
PATCH=      patch -p1
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${PREFIX} --with-gnu-as --with-gnu-ld \
        pentium-freebsd

MAN1=       gcc.1 g++.1 cccp.1

pre-configure:
    cd ${WRKSRC} && autoconf
    cd ${WRKSRC} && ./configure
    cd ${WRKSRC} && ${MAKE} maintainer-clean

do-build:
    cd ${WRKSRC} && ${MAKE} bootstrap

do-install:
    cd ${WRKSRC} \
    && ${MAKE} install CC="stage2/xgcc -Bstage2/" CFLAGS="-pipe -O2"

post-install:
    ${MV} ${PREFIX}/bin/c++ ${PREFIX}/bin/pc++
    ${MV} ${PREFIX}/bin/g++ ${PREFIX}/bin/pg++
    ${MV} ${PREFIX}/bin/gcc ${PREFIX}/bin/pgcc

.include <bsd.port.mk>