diff options
author | mef <mef> | 2013-11-18 06:41:27 +0000 |
---|---|---|
committer | mef <mef> | 2013-11-18 06:41:27 +0000 |
commit | 63941e0f4f37fa7e153f984fbf21d36c16a3ee14 (patch) | |
tree | a9e292f1a63df8adf1ccb0ea388ae813783057f2 /cross/nios2-gcc41 | |
parent | 24766010b8e8e462f4867e5f3351fad73b71287a (diff) | |
download | pkgsrc-63941e0f4f37fa7e153f984fbf21d36c16a3ee14.tar.gz |
As proposed in following mail:
http://mail-index.netbsd.org/pkgsrc-users/2013/11/16/msg018897.html
(1) Import nios2-binutils 2.23 (CodeSourcery derived) from wip.
(2) nios2-gcc41 now does not include nios2/Makefile.common,
and unnecessary buildlink3 line to kpathsea removed.
(3) Switch nios2/Makefile.common to provide above (1) package.
(4) Import nios2-gcc 4.7.3 (CodeSourcery derived) from wip,
including file (3) nios2/Makefile.common and DEPENDS (1) binutils.
(5) Switch all gcc's, nios2-gcc{3,41} to DEPENDS above (1) binutils.
(6) Delete nios2-binutils220 (2.20).
Diffstat (limited to 'cross/nios2-gcc41')
-rw-r--r-- | cross/nios2-gcc41/Makefile | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/cross/nios2-gcc41/Makefile b/cross/nios2-gcc41/Makefile index 9fef653da3d..e627da73998 100644 --- a/cross/nios2-gcc41/Makefile +++ b/cross/nios2-gcc41/Makefile @@ -1,24 +1,35 @@ -# $NetBSD: Makefile,v 1.1 2013/11/16 07:41:00 mef Exp $ +# $NetBSD: Makefile,v 1.2 2013/11/18 06:41:27 mef Exp $ +DISTNAME= nios2_gnu_gcc4_13.0 PKG_VERSION= 4.1.2 PKGNAME= nios2-gcc41-${PKG_VERSION} CATEGORIES= cross +MASTER_SITES= ftp://ftp.altera.com/outgoing/download/support/ip/processors/nios2/gnu/ +EXTRACT_SUFX= .gz + MAINTAINER= pkgsrc-users@NetBSD.org +COMMENT= GNU gcc 4.1 for Altera FPGA Nios2 processor LICENSE= gnu-gpl-v2 +DEPENDS+= nios2-binutils-[0-9]*:../../cross/nios2-binutils +BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo + +BUILD_DEFS+= CROSSBASE +GNU_CONFIGURE= yes +INFO_FILES= no EXTRACT_ELEMENTS= gcc-4.1 +USE_PKGLOCALEDIR= yes WRKSRC= ${WRKDIR}/${EXTRACT_ELEMENTS} PATH:= ${CROSSBASE}/bin:${PATH} -COMMENT= GNU gcc for Altera FPGA Nios2 processor - +USE_CROSSBASE= yes USE_TOOLS+= gmake makeinfo perl bison tar -USE_GNU_CONFIGURE_HOST= no -#BUILD_DEFS+= CROSSBASE #included in ../nios2/Makefile.common -EXTRACT_SUFX= .gz - -DEPENDS+= nios2-binutils220-[0-9]*:../../cross/nios2-binutils220 +# following line to avoid getting +# make: exec(nios2--netbsdelf-ar) failed (No such file or directory) +USE_GNU_CONFIGURE_HOST= NO -.include "../../cross/nios2/Makefile.common" +NIOS2_TARGET?= nios2-elf +CONFIGURE_ARGS= # reset +CONFIGURE_ARGS+= --target=${NIOS2_TARGET:Q} CONFIGURE_ARGS+= --enable-languages=c CONFIGURE_ARGS+= --disable-multilib CONFIGURE_ARGS+= --disable-threads @@ -29,8 +40,7 @@ CONFIGURE_ARGS+= --host=${MACHINE_ARCH}--${LOWER_OPSYS} CONFIGURE_ARGS+= --build=${MACHINE_ARCH}--${LOWER_OPSYS} CFLAGS+= -g -INFO_FILES= no - +PLIST_SUBST+= NIOS2_TARGET=${NIOS2_TARGET:Q} PLIST_VARS+= doc .include "options.mk" @@ -50,5 +60,4 @@ post-install: ${RM} ${DESTDIR}${CROSSBASE}/info/gccinstall.info ${RM} ${DESTDIR}${CROSSBASE}/info/gccint.info -.include "../../print/kpathsea/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |