2001-01-19 15:25:52 -05:00
|
|
|
# New ports collection makefile for: arm-elf-gcc295
|
2001-01-06 03:05:31 -05:00
|
|
|
# Date created: 3 November 2000
|
|
|
|
# Whom: Espen Skoglund <esk@ira.uka.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gcc
|
|
|
|
PORTVERSION= 2.95.2
|
|
|
|
CATEGORIES= devel
|
2001-01-19 15:25:52 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
|
|
|
|
MASTER_SITE_SUBDIR= gcc/releases/${DISTNAME}
|
2001-01-06 03:05:31 -05:00
|
|
|
PKGNAMEPREFIX= arm-elf-
|
2001-01-19 15:25:52 -05:00
|
|
|
DISTFILES= gcc-core-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
gcc-g++-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
gcc-objc-${PORTVERSION}${EXTRACT_SUFX}
|
2001-01-06 03:05:31 -05:00
|
|
|
|
|
|
|
MAINTAINER= esk@ira.uka.de
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PKGNAMEPREFIX}as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \
|
|
|
|
${PKGNAMEPREFIX}ld:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils
|
|
|
|
RUN_DEPENDS= ${PKGNAMEPREFIX}as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \
|
|
|
|
${PKGNAMEPREFIX}ld:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} --enable-languages="c,c++,objc"
|
|
|
|
.if defined(DEFAULT_CPU)
|
|
|
|
CONFIGURE_ARGS+= --with-cpu="${DEFAULT_CPU}"
|
|
|
|
.endif
|
|
|
|
|
2001-01-19 15:25:52 -05:00
|
|
|
MAKE_ENV= PATH=${PREFIX}/bin:${PATH}
|
2001-01-06 03:05:31 -05:00
|
|
|
USE_LIBTOOL= yes
|
2001-01-19 15:25:52 -05:00
|
|
|
LIBTOOLFILES= configure etc/configure gcc/configure libiberty/configure \
|
|
|
|
libobjc/configure texinfo/configure \
|
2001-01-06 03:05:31 -05:00
|
|
|
texinfo/testsuite/configure
|
|
|
|
MAN1= ${PKGNAMEPREFIX}g++.1 ${PKGNAMEPREFIX}gcc.1 cccp.1
|
|
|
|
|
|
|
|
.if !defined(DEFAULT_CPU)
|
|
|
|
pre-extract:
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You can specify a default cpu target for gcc by setting DEFAULT_CPU to the"
|
|
|
|
@${ECHO} "appropriate target (e.g., strongarm1100)."
|
|
|
|
@${ECHO}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${PERL} -pi.bak -e 's,^(TARGET_CONFIGDIRS\s*=),\1#,' ${WRKSRC}/Makefile
|
|
|
|
${PERL} -pi.bak -e 's,^(install-info:),\1\ndonot-\1,' \
|
|
|
|
${WRKSRC}/gcc/Makefile
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MV} ${PREFIX}/bin/cpp ${PREFIX}/bin/${PKGNAMEPREFIX}cpp
|
|
|
|
@${MV} ${PREFIX}/bin/gcov ${PREFIX}/bin/${PKGNAMEPREFIX}gcov
|
|
|
|
@${LN} -f ${PREFIX}/bin/${PKGNAMEPREFIX}g++ \
|
|
|
|
${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/g++
|
|
|
|
@${RM} ${PREFIX}/lib/libiberty.a
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|