2006-10-06 22:43:57 +02:00
|
|
|
# New ports collection makefile for: avr-gcc-devel
|
|
|
|
# Date created: 22 Mar 2006
|
|
|
|
# Whom: Joerg Wunsch <joerg@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gcc
|
2010-03-08 20:53:44 +01:00
|
|
|
PORTVERSION= 4.3.4
|
2010-06-11 17:09:45 +02:00
|
|
|
PORTREVISION= 2
|
2006-10-06 22:43:57 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GCC}
|
|
|
|
MASTER_SITES+= http://people.freebsd.org/~joerg/:local
|
|
|
|
MASTER_SITE_SUBDIR= releases/${DISTNAME}
|
|
|
|
PKGNAMEPREFIX= avr-
|
|
|
|
DISTFILES= gcc-core-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
gcc-g++-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
EXTRACT_ONLY= gcc-core-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
gcc-g++-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
MAINTAINER= joerg@freebsd.org
|
|
|
|
COMMENT= FSF GCC 4.x for Atmel AVR 8-bit RISC cross-development
|
|
|
|
|
|
|
|
BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils
|
2010-06-11 17:09:45 +02:00
|
|
|
LIB_DEPENDS= mpfr.4:${PORTSDIR}/math/mpfr \
|
2010-04-19 12:43:42 +02:00
|
|
|
gmp.10:${PORTSDIR}/math/gmp
|
2006-10-06 22:43:57 +02:00
|
|
|
RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils
|
|
|
|
|
|
|
|
# GCC 4.x doesn't want to be built in its own source directory.
|
|
|
|
WRKSRC= ${WRKDIR}/gcc-${PORTVERSION}
|
|
|
|
BUILD_WRKSRC= ${WRKDIR}/build
|
|
|
|
CONFIGURE_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
CONFIGURE_SCRIPT= ../gcc-${PORTVERSION}/configure
|
|
|
|
|
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2006-10-06 22:43:57 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if (${ARCH} == "amd64")
|
|
|
|
ARCH= x86_64
|
|
|
|
.endif
|
|
|
|
|
2009-06-28 22:58:46 +02:00
|
|
|
CONFLICTS= avr-gcc-3* avr-gcc-42*
|
2006-10-06 22:43:57 +02:00
|
|
|
|
2009-06-11 23:39:08 +02:00
|
|
|
CONFIGURE_ARGS= --target=avr --disable-libssp --with-gmp=${LOCALBASE}
|
2006-10-06 22:43:57 +02:00
|
|
|
|
|
|
|
MAKE_FLAGS= LANGUAGES="c c++"
|
2009-06-28 22:58:46 +02:00
|
|
|
|
|
|
|
WITHOUT_CPU_CFLAGS=This is a cross-compiler.
|
2006-10-06 22:43:57 +02:00
|
|
|
|
|
|
|
MAN1= avr-cpp.1 avr-gcc.1 avr-g++.1 avr-gcov.1
|
|
|
|
MAN7= fsf-funding.7 gfdl.7 gpl.7
|
|
|
|
INFO= cpp gcc gccint cppinternals gccinstall
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIR} && ${MKDIR} build
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|