68a1ae04ce
* Enable multilib for h8300h etc. * Disable C++ support. It causes internal compiler error for h8300h
61 lines
1.8 KiB
Makefile
61 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2016/10/24 22:34:19 ryoon Exp $
|
|
|
|
DISTNAME= gcc-6.2.0
|
|
PKGNAME= cross-h8300-elf-${DISTNAME}
|
|
PKGREVISION= 1
|
|
CATEGORIES= cross
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${PKGVERSION_NOREV}/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
newlib-${NEWLIBVER}.tar.gz
|
|
NEWLIBVER= 2.4.0
|
|
SITES.newlib-${NEWLIBVER}.tar.gz= ftp://sources.redhat.com/pub/newlib/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= #empty
|
|
COMMENT= GCC compiler for h8300-elf
|
|
|
|
DEPENDS+= cross-h8300-elf-binutils-[0-9]*:../../cross/h8300-elf-binutils
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
# To avoid an internal compiler error of a library for h8300h
|
|
# on NetBSD/amd64 7.99.39 (GCC 5.4)
|
|
.if ${OPSYS} == "NetBSD"
|
|
GCC_REQD+= 6.2
|
|
.endif
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
H8300_PREFIX= ${PREFIX}/cross-h8300-elf
|
|
OBJDIR= ../build
|
|
CONFIGURE_DIRS= ${OBJDIR}
|
|
CONFIGURE_SCRIPT= ${WRKSRC}/configure
|
|
|
|
USE_TOOLS+= gmake makeinfo
|
|
GNU_CONFIGURE= yes
|
|
|
|
GNU_CONFIGURE_PREFIX= ${H8300_PREFIX}
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
CONFIGURE_ARGS+= --target=h8300-elf
|
|
CONFIGURE_ARGS+= --enable-languages=c
|
|
CONFIGURE_ARGS+= --with-newlib
|
|
CONFIGURE_ARGS+= --disable-libstdcxx-pch
|
|
CONFIGURE_ARGS+= --with-gmp=${BUILDLINK_PREFIX.gmp}
|
|
CONFIGURE_ARGS+= --with-mpc=${BUILDLINK_PREFIX.mpcomplex}
|
|
CONFIGURE_ARGS+= --with-mpfr=${BUILDLINK_PREFIX.mpfr}
|
|
MAKE_ENV+= SHELL=${CONFIG_SHELL}
|
|
INFO_FILES= yes
|
|
|
|
post-extract:
|
|
${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/newlib ${WRKSRC}/newlib
|
|
|
|
pre-configure:
|
|
${MKDIR} ${WRKSRC}/${OBJDIR}
|
|
${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}
|
|
${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}
|
|
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
.include "../../math/mpcomplex/buildlink3.mk"
|
|
.include "../../math/mpfr/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|