2006-08-03 21:22:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.18 2006/08/03 19:22:31 wiz Exp $
|
2003-07-16 22:14:20 +02:00
|
|
|
|
|
|
|
DISTNAME= gcc-3.3.2003.05.11
|
|
|
|
PKGNAME= avr-gcc-3.3.2003.05.11
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2003-07-16 22:14:20 +02:00
|
|
|
CATEGORIES= cross
|
|
|
|
MASTER_SITES= http://people.freebsd.org/~joerg/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
DISTFILES= gcc-core+g++-3.3.2003.05.11${EXTRACT_SUFX} \
|
|
|
|
${MAN_AUX}
|
|
|
|
|
2006-08-03 21:22:31 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-07-22 20:09:12 +02:00
|
|
|
COMMENT= GNU gcc-3.3 for Atmel AVR 8-bit RISC microcontrollers
|
2003-07-16 22:14:20 +02:00
|
|
|
|
2005-03-20 13:10:04 +01:00
|
|
|
DEPENDS+= avr-binutils-[0-9]*:../../cross/avr-binutils
|
2004-01-03 02:18:28 +01:00
|
|
|
BUILD_DEPENDS+= autoconf-[0-9]*:../../devel/autoconf
|
|
|
|
BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
|
2003-07-16 22:14:20 +02:00
|
|
|
|
|
|
|
EXTRACT_ONLY= gcc-core+g++-3.3.2003.05.11${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
# Unfortunately, only some mirrors have it as a .bz2 file, while
|
|
|
|
# the original master site still uses .gz.
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_BZIP2= yes
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= bison gmake lex perl tar
|
2003-07-16 22:14:20 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ARGS+= --target=avr
|
2003-07-16 22:14:20 +02:00
|
|
|
|
|
|
|
MAN_AUX= gcc-man.2003.05.11.gz
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_FLAGS+= LANGUAGES="c c++"
|
|
|
|
MAKE_ENV+= MACHINE_ARCH=avr
|
2003-07-16 22:14:20 +02:00
|
|
|
|
|
|
|
pre-build:
|
|
|
|
if perl -e 'use 1.10 Pod::Man' >/dev/null 2>/dev/null ; \
|
|
|
|
then : ; \
|
|
|
|
else \
|
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${TAR} -xvzf ${DISTDIR}/${MAN_AUX} ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|