Changeset View
Changeset View
Standalone View
Standalone View
devel/riscv64-gcc/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gcc | PORTNAME= gcc | ||||
PORTVERSION= 7.2.0 | PORTVERSION= 7.2.0 | ||||
PORTREVISION= 2 | PORTREVISION= 3 | ||||
swills: Patch failed to apply for me because the PORTREVISION was already set to 2, FWIW | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
PKGNAMEPREFIX= riscv64- | PKGNAMEPREFIX= riscv64- | ||||
MAINTAINER= lwhsu@FreeBSD.org | MAINTAINER= lwhsu@FreeBSD.org | ||||
COMMENT= Cross GNU Compiler Collection for ${PKGNAMEPREFIX:C/-//g} | COMMENT= Cross GNU Compiler Collection for ${PKGNAMEPREFIX:C/-//g} | ||||
LICENSE= GPLv3 GPLv3RLE | LICENSE= GPLv3 GPLv3RLE | ||||
LICENSE_COMB= multi | LICENSE_COMB= multi | ||||
Show All 13 Lines | |||||
GH_PROJECT= riscv-gcc | GH_PROJECT= riscv-gcc | ||||
GH_TAGNAME= 2ea300e | GH_TAGNAME= 2ea300e | ||||
GCC_TARGET= ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} | GCC_TARGET= ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_OUTSOURCE= yes | CONFIGURE_OUTSOURCE= yes | ||||
CONFIGURE_ARGS= --target=${GCC_TARGET} \ | CONFIGURE_ARGS= --target=${GCC_TARGET} \ | ||||
--with-gxx-include-dir=/usr/include/c++/v1/ \ | |||||
--with-sysroot=/ \ | --with-sysroot=/ \ | ||||
--without-newlib \ | --without-newlib \ | ||||
--without-headers \ | --without-headers \ | ||||
--with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ | --with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ | ||||
--with-system-zlib \ | --with-system-zlib \ | ||||
--with-as=${LOCALBASE}/bin/${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL}-as \ | --with-as=${LOCALBASE}/bin/${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL}-as \ | ||||
--with-ld=${LOCALBASE}/bin/${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL}-ld \ | --with-ld=${LOCALBASE}/bin/${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL}-ld \ | ||||
--disable-werror \ | --disable-werror \ | ||||
Show All 11 Lines | CONFIGURE_ARGS= --target=${GCC_TARGET} \ | ||||
--disable-libgomp \ | --disable-libgomp \ | ||||
--disable-nls \ | --disable-nls \ | ||||
--disable-bootstrap \ | --disable-bootstrap \ | ||||
--disable-multilib | --disable-multilib | ||||
ALL_TARGET= inhibit-libc=true all-gcc | ALL_TARGET= inhibit-libc=true all-gcc | ||||
INSTALL_TARGET= inhibit-libc=true install-gcc | INSTALL_TARGET= inhibit-libc=true install-gcc | ||||
# Force build of a cross compiler even if the target matches the host. | |||||
CFLAGS+= -DCROSS_DIRECTORY_STRUCTURE | |||||
PLIST_SUB= GCC_TARGET=${GCC_TARGET} \ | PLIST_SUB= GCC_TARGET=${GCC_TARGET} \ | ||||
GCC_VERSION=${PORTVERSION} | GCC_VERSION=${PORTVERSION} | ||||
post-patch: | |||||
@${REINPLACE_CMD} -e '/LIBSTDCXX/ s/stdc\+\+/c\+\+/g ' \ | |||||
${WRKSRC}//gcc/cp/g++spec.c | |||||
@${REINPLACE_CMD} -e '/LOCAL_INCLUDE_DIR/ d ' \ | |||||
${WRKSRC}//gcc/Makefile.in | |||||
post-install: | post-install: | ||||
@if [ -d ${STAGEDIR}${PREFIX}/${INFO_PATH} ] ; then ${RM} -r ${STAGEDIR}${PREFIX}/${INFO_PATH}; fi | @if [ -d ${STAGEDIR}${PREFIX}/${INFO_PATH} ] ; then ${RM} -r ${STAGEDIR}${PREFIX}/${INFO_PATH}; fi | ||||
@${RM} ${STAGEDIR}${PREFIX}/man/man7/* | @${RM} ${STAGEDIR}${PREFIX}/man/man7/* | ||||
@${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed | |||||
BROKEN_aarch64= fails to package | BROKEN_aarch64= fails to package | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Patch failed to apply for me because the PORTREVISION was already set to 2, FWIW