2000-12-05 15:21:02 +00:00
|
|
|
# New ports collection makefile for: avr-gcc
|
|
|
|
# Date created: 29 Nov 2000
|
|
|
|
# Whom: Joerg Wunsch <joerg@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gcc
|
2004-07-07 11:29:23 +00:00
|
|
|
PORTVERSION= 3.4.1
|
2000-12-05 15:21:02 +00:00
|
|
|
CATEGORIES= devel
|
2003-09-09 21:16:21 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITES+= http://people.freebsd.org/~joerg/:local
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2001-08-12 16:33:45 +00:00
|
|
|
PKGNAMEPREFIX= avr-
|
2003-09-09 21:16:21 +00: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 15:21:02 +00:00
|
|
|
|
|
|
|
MAINTAINER= joerg@freebsd.org
|
2004-03-03 21:23:29 +00:00
|
|
|
COMMENT= FSF GCC 3.x for Atmel AVR 8-bit RISC cross-development
|
2000-12-05 15:21:02 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
2004-04-28 20:53:33 +00:00
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils
|
2000-12-05 15:21:02 +00:00
|
|
|
RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/gcc-${PORTVERSION}
|
|
|
|
|
2004-06-04 17:29:38 +00:00
|
|
|
USE_AUTOHEADER_VER= 213
|
2002-11-28 18:05:49 +00:00
|
|
|
USE_PERL5_BUILD= yes
|
2002-07-03 19:20:58 +00:00
|
|
|
USE_BZIP2= yes
|
2000-12-05 15:21:02 +00:00
|
|
|
USE_GMAKE= yes
|
2001-04-29 11:20:05 +00:00
|
|
|
USE_BISON= yes
|
2000-12-05 15:21:02 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2004-04-28 20:53:33 +00:00
|
|
|
CONFIGURE_ARGS= --target=avr --disable-nls
|
2000-12-05 15:21:02 +00:00
|
|
|
|
2004-03-03 21:23:29 +00:00
|
|
|
MAN_AUX= gcc-man.${PORTVERSION}.tar.gz
|
2002-09-01 19:46:49 +00:00
|
|
|
|
2001-08-12 20:18:25 +00:00
|
|
|
MAKE_FLAGS= LANGUAGES="c c++"
|
2004-03-03 21:23:29 +00:00
|
|
|
# get rid of that silly -mcpu=pentiumpro FreeBSD 5+ is so fond of. :-(
|
2002-10-06 18:21:40 +00:00
|
|
|
MAKE_ENV= MACHINE_ARCH=avr
|
2000-12-05 15:21:02 +00:00
|
|
|
|
2004-04-28 20:53:33 +00:00
|
|
|
MAN1= avr-cpp.1 avr-gcc.1 avr-g++.1 avr-gcov.1
|
2002-09-01 12:13:57 +00:00
|
|
|
MAN7= fsf-funding.7 gfdl.7 gpl.7
|
2004-04-28 20:53:33 +00:00
|
|
|
INFO= cpp gcc gccint cppinternals gccinstall
|
2000-12-05 15:21:02 +00:00
|
|
|
|
2004-03-29 07:04:47 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-09-01 19:46:49 +00: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 21:23:29 +00:00
|
|
|
if ${PERL} -e 'use 1.10 Pod::Man' >/dev/null 2>/dev/null ; \
|
2002-09-01 19:46:49 +00:00
|
|
|
then : ; \
|
|
|
|
else \
|
|
|
|
cd ${WRKDIR}/gcc-${PORTVERSION} ; \
|
|
|
|
${TAR} -xvzf ${DISTDIR}/${MAN_AUX} ; \
|
|
|
|
fi
|
|
|
|
|
2004-03-29 07:04:47 +00:00
|
|
|
.include <bsd.port.post.mk>
|