02f27a83b4
locale set by the user. Add LANG=C and LC_ALL=C at the beginning of bsd.port.mk and export them so all commands are executed with the C locale. LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3) as default value for LC_* variables, so normally it isn't used when LC_ALL is set, but there's code out there that looks at LANG directly so it's safer to set it as well. The only commands not captured by this are != assignments before any inclusion of bsd.port.*mk. Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a different locale (e.g. USE_LOCALE=en_US.UTF-8). PR: 215882 Exp-run by: antoine Approved by: portmgr (antoine)
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= gcc
|
|
PORTVERSION= 6.1.0
|
|
CATEGORIES= devel
|
|
PKGNAMEPREFIX= riscv64-
|
|
|
|
MAINTAINER= lwhsu@FreeBSD.org
|
|
COMMENT= Cross GNU Compiler Collection for ${PKGNAMEPREFIX:C/-//g}
|
|
|
|
LICENSE= GPLv3 GPLv3RLE
|
|
LICENSE_COMB= multi
|
|
|
|
BUILD_DEPENDS= ${PKGNAMEPREFIX}binutils>0:devel/${PKGNAMEPREFIX}binutils
|
|
RUN_DEPENDS= ${PKGNAMEPREFIX}binutils>0:devel/${PKGNAMEPREFIX}binutils
|
|
LIB_DEPENDS= libgmp.so:math/gmp \
|
|
libmpfr.so:math/mpfr \
|
|
libmpc.so:math/mpc
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= freebsd-riscv
|
|
GH_PROJECT= riscv-gcc
|
|
GH_TAGNAME= 095b1d6
|
|
|
|
USES= iconv gmake libtool makeinfo
|
|
|
|
GCC_TARGET= ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL}
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_OUTSOURCE= yes
|
|
CONFIGURE_ARGS= --target=${GCC_TARGET} \
|
|
--with-sysroot=/ \
|
|
--without-newlib \
|
|
--without-headers \
|
|
--with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \
|
|
--with-system-zlib \
|
|
--with-as=${LOCALBASE}/bin/${PKGNAMEPREFIX}freebsd-as \
|
|
--with-ld=${LOCALBASE}/bin/${PKGNAMEPREFIX}freebsd-ld \
|
|
--disable-werror \
|
|
--disable-shared \
|
|
--enable-threads \
|
|
--enable-tls \
|
|
--enable-languages=c,c++ \
|
|
--with-gmp=${LOCALBASE} \
|
|
--with-mpfr=${LOCALBASE} \
|
|
--with-mpc=${LOCALBASE} \
|
|
--disable-libatomic \
|
|
--disable-libmudflap \
|
|
--disable-libssp \
|
|
--disable-libquadmath \
|
|
--disable-libgomp \
|
|
--disable-nls \
|
|
--disable-bootstrap \
|
|
--disable-multilib
|
|
|
|
ALL_TARGET= inhibit-libc=true all-gcc
|
|
INSTALL_TARGET= inhibit-libc=true install-gcc
|
|
|
|
PLIST_SUB= GCC_TARGET=${GCC_TARGET} \
|
|
GCC_VERSION=${PORTVERSION}
|
|
|
|
post-install:
|
|
@if [ -d ${STAGEDIR}${PREFIX}/${INFO_PATH} ] ; then ${RM} -r ${STAGEDIR}${PREFIX}/${INFO_PATH}; fi
|
|
@${RM} ${STAGEDIR}${PREFIX}/man/man7/*
|
|
|
|
.include <bsd.port.mk>
|