freebsd-ports/devel/arm-none-eabi-gcc492/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

77 lines
2.3 KiB
Makefile

PORTNAME= gcc
PORTVERSION= 4.9.2
PORTREVISION= 5
CATEGORIES= devel
MASTER_SITES= GCC/releases/gcc-${DISTVERSION}
PKGNAMEPREFIX?= arm-none-eabi-
PKGNAMESUFFIX= 492
MAINTAINER= ports@FreeBSD.org
COMMENT= GNU Compiler Collection for bare metal arm cross-development
WWW= https://gcc.gnu.org/
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
BROKEN_mips= configure: error: cannot compute suffix of object files: cannot compile
BROKEN_mips64= configure: error: cannot compute suffix of object files: cannot compile
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
libmpc.so:math/mpc
BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${PKGNAMEPREFIX:C/-$//:C/-/_/g} \
objdump:devel/binutils
RUN_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${PKGNAMEPREFIX:C/-$//:C/-/_/g}
USES= compiler cpe gmake iconv libtool makeinfo tar:bzip2
CPE_VENDOR= gnu
PLIST_SUB= TARGETARCH=${PKGNAMEPREFIX:C/-//g} \
OPSYS=${OPSYS:tl} \
GCC_TARGET=${GCC_TARGET}
GCC_TARGET= arm-none-eabi
BU_PREFIX?= ${GCC_TARGET}
GNU_CONFIGURE= yes
CONFIGURE_OUTSOURCE= yes
# libstdcxx won't build, but we don't need it or multiple float-abi libs.
CONFIGURE_ARGS= --target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \
--without-headers \
--with-gmp=${LOCALBASE} \
--with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \
--with-system-zlib \
--with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \
--with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld \
--disable-libstdcxx \
--disable-multilib
CONFLICTS_INSTALL= arm-none-eabi-gcc
PLIST= ${.CURDIR}/pkg-plist
# U-Boot requires libgcc, crossbuild and install it along with the compiler.
ALL_TARGET= all-gcc all-target-libgcc
INSTALL_TARGET= install-gcc install-target-libgcc
.include <bsd.port.pre.mk>
CONFIGURE_TARGET= ${ARCH}-portbld-${OPSYS:tl}${OSREL}
post-install:
@if [ -f ${STAGEDIR}${PREFIX}/bin/cpp ] ; then \
${MV} ${STAGEDIR}${PREFIX}/bin/cpp \
${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-cpp ; \
fi
.for f in c++ cpp g++ gcc gcc-ar gcc-nm gcc-ranlib gcov
@${RM} ${STAGEDIR}${PREFIX}/bin/$f
@${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1.gz
.endfor
@${RM} ${STAGEDIR}${PREFIX}/info/*
@${RM} ${STAGEDIR}${PREFIX}/man/man7/*
# The following is required for clang to bootstrap gcc.
.if ${COMPILER_TYPE} == clang
MAKE_ARGS+= CXXFLAGS=-fbracket-depth=512
.endif
.include <bsd.port.post.mk>