diff options
Diffstat (limited to 'cross/nios2-gcc41/Makefile')
-rw-r--r-- | cross/nios2-gcc41/Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/cross/nios2-gcc41/Makefile b/cross/nios2-gcc41/Makefile new file mode 100644 index 00000000000..9fef653da3d --- /dev/null +++ b/cross/nios2-gcc41/Makefile @@ -0,0 +1,54 @@ +# $NetBSD: Makefile,v 1.1 2013/11/16 07:41:00 mef Exp $ +PKG_VERSION= 4.1.2 +PKGNAME= nios2-gcc41-${PKG_VERSION} +CATEGORIES= cross +MAINTAINER= pkgsrc-users@NetBSD.org +LICENSE= gnu-gpl-v2 + +EXTRACT_ELEMENTS= gcc-4.1 +WRKSRC= ${WRKDIR}/${EXTRACT_ELEMENTS} +PATH:= ${CROSSBASE}/bin:${PATH} +COMMENT= GNU gcc for Altera FPGA Nios2 processor + +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 + +.include "../../cross/nios2/Makefile.common" + +CONFIGURE_ARGS+= --enable-languages=c +CONFIGURE_ARGS+= --disable-multilib +CONFIGURE_ARGS+= --disable-threads +CONFIGURE_ARGS+= --disable-nls +CONFIGURE_ARGS+= --disable-libssp +# to avoid strange problem due to long `uname -a` result +CONFIGURE_ARGS+= --host=${MACHINE_ARCH}--${LOWER_OPSYS} +CONFIGURE_ARGS+= --build=${MACHINE_ARCH}--${LOWER_OPSYS} +CFLAGS+= -g + +INFO_FILES= no + +PLIST_VARS+= doc +.include "options.mk" + +do-extract: + (cd ${WRKDIR}; tar zxf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${EXTRACT_ELEMENTS} ) + +# to avoid conflict with binutils (to be fixed by more sophisticated way) +post-install: + ${RM} ${DESTDIR}${CROSSBASE}/lib/libiberty.a +# to avoid conflict wit mingw-w64-gcc-4.5.1 + ${RM} ${DESTDIR}${CROSSBASE}/man/man7/fsf-funding.7 + ${RM} ${DESTDIR}${CROSSBASE}/man/man7/gfdl.7 + ${RM} ${DESTDIR}${CROSSBASE}/man/man7/gpl.7 + ${RM} ${DESTDIR}${CROSSBASE}/info/cpp.info + ${RM} ${DESTDIR}${CROSSBASE}/info/cppinternals.info + ${RM} ${DESTDIR}${CROSSBASE}/info/gcc.info + ${RM} ${DESTDIR}${CROSSBASE}/info/gccinstall.info + ${RM} ${DESTDIR}${CROSSBASE}/info/gccint.info + +.include "../../print/kpathsea/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" |