2000-12-05 16:21:02 +01:00
|
|
|
# New ports collection makefile for: avr-gcc
|
|
|
|
# Date created: 29 Nov 2000
|
|
|
|
# Whom: Joerg Wunsch <joerg@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gcc
|
2004-03-03 22:23:29 +01:00
|
|
|
PORTVERSION= 3.3.2
|
2000-12-05 16:21:02 +01:00
|
|
|
CATEGORIES= devel
|
2003-09-09 23:16:21 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITES+= http://people.freebsd.org/~joerg/:local
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2001-08-12 18:33:45 +02:00
|
|
|
PKGNAMEPREFIX= avr-
|
2003-09-09 23:16:21 +02:00
|
|
|
DISTFILES= gcc-core-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
gcc-g++-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${MAN_AUX}:local
|
|
|
|
EXTRACT_ONLY= gcc-core-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
gcc-g++-${PORTVERSION}${EXTRACT_SUFX}
|
2000-12-05 16:21:02 +01:00
|
|
|
|
|
|
|
MAINTAINER= joerg@freebsd.org
|
2004-03-03 22:23:29 +01:00
|
|
|
COMMENT= FSF GCC 3.x for Atmel AVR 8-bit RISC cross-development
|
2000-12-05 16:21:02 +01:00
|
|
|
|
|
|
|
BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
2001-03-11 09:37:18 +01:00
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils \
|
2004-02-04 05:36:30 +01:00
|
|
|
autoheader:${PORTSDIR}/devel/autoconf
|
2000-12-05 16:21:02 +01:00
|
|
|
RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/gcc-${PORTVERSION}
|
|
|
|
|
2002-11-28 19:05:49 +01:00
|
|
|
USE_PERL5_BUILD= yes
|
2002-07-03 21:20:58 +02:00
|
|
|
USE_BZIP2= yes
|
2000-12-05 16:21:02 +01:00
|
|
|
USE_GMAKE= yes
|
2001-04-29 13:20:05 +02:00
|
|
|
USE_BISON= yes
|
2004-03-03 22:23:29 +01:00
|
|
|
USE_GETTEXT= yes
|
2000-12-05 16:21:02 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --target=avr
|
|
|
|
|
2004-03-03 22:23:29 +01:00
|
|
|
MAN_AUX= gcc-man.${PORTVERSION}.tar.gz
|
2002-09-01 21:46:49 +02:00
|
|
|
|
2001-08-12 22:18:25 +02:00
|
|
|
MAKE_FLAGS= LANGUAGES="c c++"
|
2004-03-03 22:23:29 +01:00
|
|
|
# get rid of that silly -mcpu=pentiumpro FreeBSD 5+ is so fond of. :-(
|
2002-10-06 20:21:40 +02:00
|
|
|
MAKE_ENV= MACHINE_ARCH=avr
|
2000-12-05 16:21:02 +01:00
|
|
|
|
2002-09-01 14:13:57 +02:00
|
|
|
MAN1= cpp.1 avr-gcc.1 avr-g++.1 gcov.1
|
|
|
|
MAN7= fsf-funding.7 gfdl.7 gpl.7
|
2003-09-09 23:16:21 +02:00
|
|
|
INFO= cpp gcc gccint cppinternals
|
2000-12-05 16:21:02 +01:00
|
|
|
|
2004-03-29 09:04:47 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386" && ${ARCH} != "alpha"
|
|
|
|
BROKEN= "Does not build on !i386 and !alpha"
|
|
|
|
.endif
|
|
|
|
|
2002-09-01 21:46:49 +02:00
|
|
|
# Since the pod2man in FreeBSD 4-stable's /usr/bin cannot be used, we
|
|
|
|
# help out by extracting precompiled manpages there.
|
|
|
|
pre-build:
|
2004-03-03 22:23:29 +01:00
|
|
|
if ${PERL} -e 'use 1.10 Pod::Man' >/dev/null 2>/dev/null ; \
|
2002-09-01 21:46:49 +02:00
|
|
|
then : ; \
|
|
|
|
else \
|
|
|
|
cd ${WRKDIR}/gcc-${PORTVERSION} ; \
|
|
|
|
${TAR} -xvzf ${DISTDIR}/${MAN_AUX} ; \
|
|
|
|
fi
|
|
|
|
|
2004-03-29 09:04:47 +02:00
|
|
|
.include <bsd.port.post.mk>
|