Changeset View
Changeset View
Standalone View
Standalone View
head/devel/powerpc64-gcc/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gcc | PORTNAME= gcc | ||||
PORTVERSION= 6.3.0 | PORTVERSION= 6.3.0 | ||||
PORTREVISION= 2 | PORTREVISION= 3 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= GCC/releases/gcc-${DISTVERSION} | MASTER_SITES= GCC/releases/gcc-${DISTVERSION} | ||||
PKGNAMEPREFIX?= powerpc64- | PKGNAMEPREFIX?= powerpc64- | ||||
MAINTAINER= kan@FreeBSD.org | MAINTAINER= kan@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 | ||||
Show All 35 Lines | CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ | ||||
--with-gxx-include-dir=/usr/include/c++/v1/ \ | --with-gxx-include-dir=/usr/include/c++/v1/ \ | ||||
--with-sysroot="/" \ | --with-sysroot="/" \ | ||||
--with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ | --with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ | ||||
--with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld | --with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld | ||||
ALL_TARGET?= all-gcc | ALL_TARGET?= all-gcc | ||||
INSTALL_TARGET?= install-gcc | INSTALL_TARGET?= install-gcc | ||||
# Force build of a cross compiler even if the target matches the host. | |||||
CFLAGS+= -DCROSS_DIRECTORY_STRUCTURE | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e '/LIBSTDCXX/ s/stdc\+\+/c\+\+/g ' \ | @${REINPLACE_CMD} -e '/LIBSTDCXX/ s/stdc\+\+/c\+\+/g ' \ | ||||
${WRKSRC}//gcc/cp/g++spec.c | ${WRKSRC}//gcc/cp/g++spec.c | ||||
@${REINPLACE_CMD} -e '/LOCAL_INCLUDE_DIR/ d ' \ | @${REINPLACE_CMD} -e '/LOCAL_INCLUDE_DIR/ d ' \ | ||||
${WRKSRC}//gcc/Makefile.in | ${WRKSRC}//gcc/Makefile.in | ||||
Show All 25 Lines | @if [ ! -f ${STAGEDIR}${PREFIX}/man/man1/${GCC_TARGET}-$f.1 ] ; then \ | ||||
fi \ | fi \ | ||||
fi | fi | ||||
@${RM} ${STAGEDIR}${PREFIX}/bin/$f | @${RM} ${STAGEDIR}${PREFIX}/bin/$f | ||||
@${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1 | @${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1 | ||||
@${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1.gz | @${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1.gz | ||||
.endfor | .endfor | ||||
@${RM} ${STAGEDIR}${PREFIX}/info/* | @${RM} ${STAGEDIR}${PREFIX}/info/* | ||||
@${RM} ${STAGEDIR}${PREFIX}/man/man7/* | @${RM} ${STAGEDIR}${PREFIX}/man/man7/* | ||||
.if empty(PKGNAMEPREFIX:M*-*-) | |||||
@${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed | @${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed | ||||
.endif | |||||
# This port and all its slave ports fail on aarch64 -- but not all | # This port and all its slave ports fail on aarch64 -- but not all | ||||
# the same way. Provide this definition for the master. | # the same way. Provide this definition for the master. | ||||
BROKEN_aarch64?= fails to package | BROKEN_aarch64?= fails to package | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |