diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2021-03-08 21:21:14 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2021-03-08 21:21:14 +0000 |
| commit | 42bdb19a9877c81dd854a1314468084c00e51fbc (patch) | |
| tree | 502ceadfc465bfa8a4c44468768e1b8088db83f9 | |
| parent | Update to a new snapshot (now on the 13.0.0 line). (diff) | |
Tidy the Makefiles for devel/freebsd-gcc*. No functional change.
- Sort BUILD_DEPENDS before LIB_DEPENDS and RUN_DEPENDS.
- Quiet other warnings noted by portlint.
- Sort USES.
Requested by: mat (1), lwhsu (3)
Reviewed by: lwhsu
Differential Revision: https://reviews.freebsd.org/D29072
| -rw-r--r-- | devel/freebsd-gcc6/Makefile | 13 | ||||
| -rw-r--r-- | devel/freebsd-gcc6/pkg-descr | 3 | ||||
| -rw-r--r-- | devel/freebsd-gcc9/Makefile | 13 | ||||
| -rw-r--r-- | devel/freebsd-gcc9/pkg-descr | 3 |
4 files changed, 18 insertions, 14 deletions
diff --git a/devel/freebsd-gcc6/Makefile b/devel/freebsd-gcc6/Makefile index 3bbd7b9745a3..350d17f7fcd2 100644 --- a/devel/freebsd-gcc6/Makefile +++ b/devel/freebsd-gcc6/Makefile @@ -4,7 +4,7 @@ PORTNAME= gcc PORTVERSION= 6.5.0 PORTREVISION= 2 CATEGORIES= devel -MASTER_SITES= GCC/releases/gcc-${DISTVERSION} +MASTER_SITES= GCC PKGNAMEPREFIX= ${TARGETARCH}- PKGNAMESUFFIX= ${SUFFIX} @@ -14,19 +14,20 @@ COMMENT= Cross GNU Compiler Collection for ${TARGETARCH} LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi +BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${TARGETARCH} \ + objdump:devel/binutils LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libmpc.so:math/mpc -BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${TARGETARCH} \ - objdump:devel/binutils RUN_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${TARGETARCH} FLAVORS= aarch64 amd64 i386 mips mips64 powerpc64 sparc64 TARGETARCH= ${FLAVOR} +USES= compiler:c++11-lang gmake iconv libtool makeinfo tar:xz + CONFLICTS= ${TARGETARCH}-gcc -USES= gmake iconv libtool tar:xz makeinfo compiler:c++11-lang PLIST_SUB= OPSYS=${OPSYS:tl} \ SUFFIX=${SUFFIX} \ TARGETARCH=${TARGETARCH} \ @@ -124,8 +125,8 @@ post-install: # 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 \ + ${MKDIR} ${STAGEDIR}${PREFIX}/share/toolchains/ + ${INSTALL_DATA} ${WRKDIR}/xtoolchain.mk \ ${STAGEDIR}${PREFIX}/share/toolchains/${TARGETARCH}-gcc${SUFFIX}.mk .include <bsd.port.post.mk> diff --git a/devel/freebsd-gcc6/pkg-descr b/devel/freebsd-gcc6/pkg-descr index 16ba2e8b9e58..bd98f2760f48 100644 --- a/devel/freebsd-gcc6/pkg-descr +++ b/devel/freebsd-gcc6/pkg-descr @@ -1,3 +1,4 @@ -GCC, the GNU Compiler Collection supporting C and C++ for targetting crossbuilding. +GCC, the GNU Compiler Collection, supporting C and C++ for building the +FreeBSD base system. WWW: http://gcc.gnu.org/ diff --git a/devel/freebsd-gcc9/Makefile b/devel/freebsd-gcc9/Makefile index 008e5d8eeba9..6c9c5d821cff 100644 --- a/devel/freebsd-gcc9/Makefile +++ b/devel/freebsd-gcc9/Makefile @@ -3,7 +3,7 @@ PORTNAME= gcc PORTVERSION= 9.3.0 CATEGORIES= devel -MASTER_SITES= GCC/releases/gcc-${DISTVERSION} +MASTER_SITES= GCC PKGNAMEPREFIX= ${TARGETARCH}- PKGNAMESUFFIX= ${SUFFIX} @@ -13,17 +13,18 @@ COMMENT= Cross GNU Compiler Collection for ${TARGETARCH} LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi +BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${TARGETARCH} \ + objdump:devel/binutils LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libmpc.so:math/mpc -BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${TARGETARCH} \ - objdump:devel/binutils RUN_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${TARGETARCH} FLAVORS= aarch64 amd64 i386 mips mips64 powerpc powerpc64 riscv64 sparc64 TARGETARCH= ${FLAVOR} -USES= gmake iconv libtool tar:xz makeinfo compiler:c++11-lang +USES= compiler:c++11-lang gmake iconv libtool makeinfo tar:xz + PLIST_SUB= OPSYS=${OPSYS:tl} \ SUFFIX=${SUFFIX} \ TARGETARCH=${TARGETARCH} \ @@ -131,8 +132,8 @@ post-install: # 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 \ + ${MKDIR} ${STAGEDIR}${PREFIX}/share/toolchains/ + ${INSTALL_DATA} ${WRKDIR}/xtoolchain.mk \ ${STAGEDIR}${PREFIX}/share/toolchains/${TARGETARCH}-gcc${SUFFIX}.mk .include <bsd.port.post.mk> diff --git a/devel/freebsd-gcc9/pkg-descr b/devel/freebsd-gcc9/pkg-descr index 16ba2e8b9e58..bd98f2760f48 100644 --- a/devel/freebsd-gcc9/pkg-descr +++ b/devel/freebsd-gcc9/pkg-descr @@ -1,3 +1,4 @@ -GCC, the GNU Compiler Collection supporting C and C++ for targetting crossbuilding. +GCC, the GNU Compiler Collection, supporting C and C++ for building the +FreeBSD base system. WWW: http://gcc.gnu.org/ |
