diff --git a/devel/freebsd-gcc13/Makefile b/devel/freebsd-gcc13/Makefile index f08ead54f058..ac23b74c8990 100644 --- a/devel/freebsd-gcc13/Makefile +++ b/devel/freebsd-gcc13/Makefile @@ -1,132 +1,132 @@ PORTNAME= gcc DISTVERSION= 13.2.0 PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= GCC PKGNAMEPREFIX= ${TARGETARCH}- PKGNAMESUFFIX= ${SUFFIX} MAINTAINER= jhb@FreeBSD.org COMMENT= Cross GNU Compiler ${SUFFIX} for FreeBSD/${TARGETARCH} WWW= https://gcc.gnu.org/ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR} \ objdump:devel/binutils LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libmpc.so:math/mpc RUN_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR} -FLAVORS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 riscv64 +FLAVORS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le riscv64 TARGETARCH= ${FLAVOR} USES= compiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz CPE_VENDOR= gnu PLIST_SUB= OPSYS=${OPSYS:tl} \ SUFFIX=${SUFFIX} \ TARGETARCH=${TARGETARCH} \ GCC_TARGET=${GCC_TARGET} \ GCC_VERSION=${PORTVERSION} SUB_FILES= xtoolchain.mk SUB_LIST= BU_PREFIX=${BU_PREFIX} \ GCC_TARGET=${GCC_TARGET} \ SUFFIX=${SUFFIX} SUFFIX= ${PORTVERSION:C/([0-9]+).*/\1/} GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_OUTSOURCE= yes CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ --enable-gnu-indirect-function \ --enable-initfini-array \ --program-prefix=${GCC_TARGET}- \ --program-suffix=${SUFFIX} \ --without-headers \ --with-gmp=${LOCALBASE} \ --with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ --with-system-zlib \ --without-zstd \ --with-gxx-libcxx-include-dir=//usr/include/c++/v1 \ --with-sysroot="/" \ --with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ --with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld .if ${TARGETARCH:Mpowerpc64*} CONFIGURE_ARGS+=--with-abi=elfv2 .endif CPPFLAGS+= -DLIBCXXABI=NULL ALL_TARGET= all-gcc INSTALL_TARGET= install-gcc .include .if ${TARGETARCH:Marm*} TARGET_ABI= gnueabi BU_FLAVOR= arm_${TARGET_ABI} BU_PREFIX= arm-${TARGET_ABI}-${OPSYS:tl}${OSREL} .else TARGET_ABI= unknown BU_FLAVOR= ${TARGETARCH} BU_PREFIX= ${GCC_TARGET} .endif GCC_TARGET= ${TARGETARCH:S/amd64/x86_64/}-${TARGET_ABI}-${OPSYS:tl}${OSREL} post-patch: @${REINPLACE_CMD} -e '/LOCAL_INCLUDE_DIR/ d ' \ ${WRKSRC}//gcc/Makefile.in .if ${ARCH} == "amd64" CONFIGURE_TARGET= x86_64-unknown-${OPSYS:tl}${OSREL} .else CONFIGURE_TARGET= ${ARCH}-unknown-${OPSYS:tl}${OSREL} .endif .if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "powerpc64" CONFIGURE_ARGS+=--enable-multilib .endif .if ${ARCH} == "aarch64" PLIST_SUB+= PLUGINS="@comment plugin does not build" .else PLIST_SUB+= PLUGINS="" .endif .if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386" PLIST_SUB+= FLOAT_H="@comment " .else PLIST_SUB+= FLOAT_H="" .endif PLIST= ${.CURDIR}/pkg-plist PLISTARCH= ${TARGETARCH:C/armv[67]/arm_gnueabi/} PLIST+= ${.CURDIR}/pkg-plist.${PLISTARCH} .if ${TARGETARCH} == "aarch64" || ${TARGETARCH:Marm*} PLIST+= ${.CURDIR}/pkg-plist.arm .endif .if ${TARGETARCH} == "amd64" PLIST+= ${.CURDIR}/pkg-plist.i386 .endif post-install: ${RM} ${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-${GCC_TARGET}-* ${RM} ${STAGEDIR}${PREFIX}/share/info/* ${RM} ${STAGEDIR}${PREFIX}/share/man/man7/* ${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed .if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386" # Conflicts with sys/x86/include/float.h ${RM} ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include/float.h .endif ${MKDIR} ${STAGEDIR}${PREFIX}/share/toolchains/ ${INSTALL_DATA} ${WRKDIR}/xtoolchain.mk \ ${STAGEDIR}${PREFIX}/share/toolchains/${TARGETARCH}-gcc${SUFFIX}.mk .include diff --git a/devel/freebsd-gcc13/pkg-plist.powerpc64le b/devel/freebsd-gcc13/pkg-plist.powerpc64le new file mode 100644 index 000000000000..007d815313db --- /dev/null +++ b/devel/freebsd-gcc13/pkg-plist.powerpc64le @@ -0,0 +1,35 @@ +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/altivec.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/amo.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/bmi2intrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/bmiintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/emmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmxlintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/immintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/mm_malloc.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/mmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/nmmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/pmmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppc-asm.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppu_intrinsics.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/rs6000-vecdefines.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/si2vmx.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/smmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/spu2vmx.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/tmmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/vec_types.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/x86gprintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/x86intrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/xmmintrin.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/gnu-user.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/default64.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/%%OPSYS%%64.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/option-defaults.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-cpus.def +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-modes.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-opts.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-protos.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/sysv4.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/sysv4le.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vxworks-dummy.h diff --git a/devel/freebsd-gcc14/Makefile b/devel/freebsd-gcc14/Makefile index 91d25938c510..d324f9f92c61 100644 --- a/devel/freebsd-gcc14/Makefile +++ b/devel/freebsd-gcc14/Makefile @@ -1,131 +1,131 @@ PORTNAME= gcc DISTVERSION= 14.1.0 CATEGORIES= devel MASTER_SITES= GCC PKGNAMEPREFIX= ${TARGETARCH}- PKGNAMESUFFIX= ${SUFFIX} MAINTAINER= jhb@FreeBSD.org COMMENT= Cross GNU Compiler ${SUFFIX} for FreeBSD/${TARGETARCH} WWW= https://gcc.gnu.org/ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR} \ objdump:devel/binutils LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libmpc.so:math/mpc RUN_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR} -FLAVORS= aarch64 amd64 armv7 i386 powerpc powerpc64 riscv64 +FLAVORS= aarch64 amd64 armv7 i386 powerpc powerpc64 powerpc64le riscv64 TARGETARCH= ${FLAVOR} USES= compiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz CPE_VENDOR= gnu PLIST_SUB= OPSYS=${OPSYS:tl} \ SUFFIX=${SUFFIX} \ TARGETARCH=${TARGETARCH} \ GCC_TARGET=${GCC_TARGET} \ GCC_VERSION=${PORTVERSION} SUB_FILES= xtoolchain.mk SUB_LIST= BU_PREFIX=${BU_PREFIX} \ GCC_TARGET=${GCC_TARGET} \ SUFFIX=${SUFFIX} SUFFIX= ${PORTVERSION:C/([0-9]+).*/\1/} GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_OUTSOURCE= yes CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ --enable-gnu-indirect-function \ --enable-initfini-array \ --program-prefix=${GCC_TARGET}- \ --program-suffix=${SUFFIX} \ --without-headers \ --with-gmp=${LOCALBASE} \ --with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ --with-system-zlib \ --without-zstd \ --with-gxx-libcxx-include-dir=//usr/include/c++/v1 \ --with-sysroot="/" \ --with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ --with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld .if ${TARGETARCH:Mpowerpc64*} CONFIGURE_ARGS+=--with-abi=elfv2 .endif CPPFLAGS+= -DLIBCXXABI=NULL CPPFLAGS+= -D__USE_ISOC11 ALL_TARGET= all-gcc INSTALL_TARGET= install-gcc .include .if ${TARGETARCH} == "armv7" TARGET_ABI= gnueabi BU_FLAVOR= arm_${TARGET_ABI} BU_PREFIX= arm-${TARGET_ABI}-${OPSYS:tl}${OSREL} .else TARGET_ABI= unknown BU_FLAVOR= ${TARGETARCH} BU_PREFIX= ${GCC_TARGET} .endif GCC_TARGET= ${TARGETARCH:S/amd64/x86_64/}-${TARGET_ABI}-${OPSYS:tl}${OSREL} post-patch: @${REINPLACE_CMD} -e '/LOCAL_INCLUDE_DIR/ d ' \ ${WRKSRC}//gcc/Makefile.in .if ${ARCH} == "amd64" CONFIGURE_TARGET= x86_64-unknown-${OPSYS:tl}${OSREL} .else CONFIGURE_TARGET= ${ARCH}-unknown-${OPSYS:tl}${OSREL} .endif .if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "powerpc64" CONFIGURE_ARGS+=--enable-multilib .endif .if ${ARCH} == "aarch64" PLIST_SUB+= PLUGINS="@comment plugin does not build" .else PLIST_SUB+= PLUGINS="" .endif .if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386" PLIST_SUB+= FLOAT_H="@comment " .else PLIST_SUB+= FLOAT_H="" .endif PLIST= ${.CURDIR}/pkg-plist \ ${.CURDIR}/pkg-plist.${TARGETARCH} .if ${TARGETARCH} == "aarch64" || ${TARGETARCH} == "armv7" PLIST+= ${.CURDIR}/pkg-plist.arm .endif .if ${TARGETARCH} == "amd64" PLIST+= ${.CURDIR}/pkg-plist.i386 .endif post-install: ${RM} ${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-${GCC_TARGET}-* ${RM} ${STAGEDIR}${PREFIX}/share/info/* ${RM} ${STAGEDIR}${PREFIX}/share/man/man7/* ${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed .if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386" # Conflicts with sys/x86/include/float.h ${RM} ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include/float.h .endif ${MKDIR} ${STAGEDIR}${PREFIX}/share/toolchains/ ${INSTALL_DATA} ${WRKDIR}/xtoolchain.mk \ ${STAGEDIR}${PREFIX}/share/toolchains/${TARGETARCH}-gcc${SUFFIX}.mk .include diff --git a/devel/freebsd-gcc14/pkg-plist.powerpc64le b/devel/freebsd-gcc14/pkg-plist.powerpc64le new file mode 100644 index 000000000000..007d815313db --- /dev/null +++ b/devel/freebsd-gcc14/pkg-plist.powerpc64le @@ -0,0 +1,35 @@ +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/altivec.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/amo.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/bmi2intrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/bmiintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/emmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmxlintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/immintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/mm_malloc.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/mmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/nmmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/pmmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppc-asm.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppu_intrinsics.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/rs6000-vecdefines.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/si2vmx.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/smmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/spu2vmx.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/tmmintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/vec_types.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/x86gprintrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/x86intrin.h +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/xmmintrin.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/gnu-user.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/default64.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/%%OPSYS%%64.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/option-defaults.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-cpus.def +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-modes.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-opts.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-protos.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/sysv4.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/sysv4le.h +%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vxworks-dummy.h