c25da1631f
microcontrollers. It includes patches from the WinAVR project to support the ATmega32C1, ATmega32M1, ATmega32U4, and ATtiny167 controllers, and in particular the next generation AVRs ATxmega64A1 and ATxmega128A1. The port has been carefully crafted to peacefully coexist with the non-devel avr-gcc port. All executables installed have the suffix "-43" added for that reason.
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
# New ports collection makefile for: avr-gcc-devel
|
|
# Date created: 28 Jul 2008
|
|
# Whom: Joerg Wunsch <joerg@freebsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gcc-devel
|
|
PORTVERSION= 4.3.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GCC}
|
|
MASTER_SITES+= http://people.freebsd.org/~joerg/:local
|
|
MASTER_SITE_SUBDIR= releases/gcc-${PORTVERSION}
|
|
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.3.x for Atmel AVR 8-bit RISC cross-development
|
|
|
|
BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils
|
|
LIB_DEPENDS= mpfr.2:${PORTSDIR}/math/mpfr \
|
|
gmp.7:${PORTSDIR}/math/libgmp4
|
|
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
|
|
NO_LATEST_LINK= Use devel/avr-gcc for a stable version.
|
|
|
|
USE_PERL5_BUILD= yes
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_BISON= build
|
|
GNU_CONFIGURE= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if (${ARCH} == "amd64")
|
|
ARCH= x86_64
|
|
.endif
|
|
|
|
CONFIGURE_ARGS= --target=avr --disable-libssp --with-gmp=${LOCALBASE} \
|
|
--program-prefix="avr-" --program-suffix="-43"
|
|
|
|
MAKE_FLAGS= LANGUAGES="c c++"
|
|
# get rid of that silly -mcpu=pentiumpro FreeBSD 5+ is so fond of. :-(
|
|
MAKE_ENV= MACHINE_ARCH=avr
|
|
|
|
MAN1= avr-cpp-43.1 avr-gcc-43.1 avr-g++-43.1 avr-gcov-43.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>
|