Changeset View
Changeset View
Standalone View
Standalone View
devel/powerpc64-gcc/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gcc | PORTNAME= gcc | ||||
PORTVERSION= 6.3.0 | PORTVERSION= 6.3.0 | ||||
PORTREVISION= 1 | |||||
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 29 Lines | |||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_OUTSOURCE= yes | CONFIGURE_OUTSOURCE= yes | ||||
CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ | CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ | ||||
--without-headers \ | --without-headers \ | ||||
--with-gmp=${LOCALBASE} \ | --with-gmp=${LOCALBASE} \ | ||||
--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-gcc-include-dir=/usr/include/c++/v1/ \ | --with-gxx-include-dir=/usr/include/c++/v1/ \ | ||||
--with-build-sysroot="${WRKDIR}/build_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 | ||||
.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 ' \ | |||||
${WRKSRC}//gcc/Makefile.in | |||||
@${MKDIR} ${WRKDIR}/build_sysroot/usr/include | |||||
.if ${TARGETARCH} == "amd64" | .if ${TARGETARCH} == "amd64" | ||||
CONFIGURE_TARGET= x86_64-unknown-${OPSYS:tl}${OSREL} | CONFIGURE_TARGET= x86_64-unknown-${OPSYS:tl}${OSREL} | ||||
.else | .else | ||||
CONFIGURE_TARGET= ${ARCH}-unknown-${OPSYS:tl}${OSREL} | CONFIGURE_TARGET= ${ARCH}-unknown-${OPSYS:tl}${OSREL} | ||||
.endif | .endif | ||||
.if ${TARGETARCH} == "armv6" || ${TARGETARCH} == "aarch64" | .if ${TARGETARCH} == "armv6" || ${TARGETARCH} == "aarch64" | ||||
Show All 17 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/* | ||||
@${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed | |||||
# 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> |