2012-10-03 23:53:53 +02:00
|
|
|
# $NetBSD: Makefile,v 1.28 2012/10/03 21:54:11 wiz Exp $
|
2003-07-16 22:14:20 +02:00
|
|
|
|
2009-08-27 17:29:37 +02:00
|
|
|
DISTNAME= gcc-4.4.1
|
|
|
|
PKGNAME= avr-gcc-4.4.1
|
2012-10-03 23:53:53 +02:00
|
|
|
PKGREVISION= 4
|
2003-07-16 22:14:20 +02:00
|
|
|
CATEGORIES= cross
|
2009-08-27 17:29:37 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/releases/${DISTNAME}/}
|
2003-07-16 22:14:20 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2009-08-27 17:29:37 +02:00
|
|
|
DISTFILES= ${DISTNAME:S/-/-core-/}${EXTRACT_SUFX} \
|
|
|
|
${DISTNAME:S/-/-g++-/}${EXTRACT_SUFX}
|
2003-07-16 22:14:20 +02:00
|
|
|
|
2006-08-03 21:22:31 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2009-08-27 17:29:37 +02:00
|
|
|
COMMENT= GNU gcc-4.4 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
|
2003-07-16 22:14:20 +02:00
|
|
|
|
2010-04-15 21:01:53 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-07-16 22:14:20 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2012-01-12 16:29:12 +01:00
|
|
|
USE_TOOLS+= bison gmake lex perl tar msgfmt pod2man
|
2003-07-16 22:14:20 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2009-08-27 17:29:37 +02:00
|
|
|
USE_GNU_CONFIGURE_HOST= no
|
2003-07-16 22:14:20 +02:00
|
|
|
|
2009-08-27 17:29:37 +02:00
|
|
|
CONFIGURE_ARGS+= --target=avr --disable-nls
|
2003-07-16 22:14:20 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= MACHINE_ARCH=avr
|
2006-10-11 18:12:32 +02:00
|
|
|
MAKE_ENV+= SHELL=${CONFIG_SHELL}
|
2009-08-27 17:29:37 +02:00
|
|
|
CFLAGS_FOR_BUILD:= ${CFLAGS}
|
|
|
|
MAVE_ENV+= CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:Q}
|
|
|
|
CXXFLAGS_FOR_BUILD:= ${CXXFLAGS}
|
|
|
|
MAVE_ENV+= CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD:Q}
|
|
|
|
CFLAGS= # empty
|
|
|
|
CXXFLAGS= # empty
|
|
|
|
|
|
|
|
SUBST_CLASSES+= sed
|
|
|
|
SUBST_FILES.sed= fixincludes/fixincl.x
|
|
|
|
SUBST_SED.sed= -e 's|@SED@|${TOOLS_PATH.sed}|g'
|
|
|
|
SUBST_STAGE.sed= post-patch
|
|
|
|
|
2009-12-12 06:02:19 +01:00
|
|
|
pre-configure:
|
2009-08-27 17:29:37 +02:00
|
|
|
${MKDIR} ${WRKDIR}/obj
|
|
|
|
|
2009-12-12 06:02:19 +01:00
|
|
|
CONFIGURE_DIRS= ${WRKDIR}/obj
|
|
|
|
CONFIGURE_SCRIPT= ${WRKSRC}/configure
|
2003-07-16 22:14:20 +02:00
|
|
|
|
2009-12-12 06:02:19 +01:00
|
|
|
INSTALLATION_DIRS+= avr/bin
|
2003-07-16 22:14:20 +02:00
|
|
|
|
2009-08-27 17:29:37 +02:00
|
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
|
|
.include "../../math/mpfr/buildlink3.mk"
|
2003-07-16 22:14:20 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|