freebsd-ports/devel/linux-c7-devtools/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

72 lines
2.3 KiB
Makefile

PORTNAME= devtools
PORTVERSION= ${LINUX_DIST_VER}
CATEGORIES= devel
MAINTAINER= emulation@FreeBSD.org
COMMENT= Linux compilers and base libraries (CentOS ${LINUX_DIST_VER})
WWW= https://gcc.gnu.org/
# LICENSE= Various GNU
USES= linux:c7
USE_LDCONFIG= yes
USE_LINUX= libgfortran
USE_LINUX_RPM= yes
BUVERSION= 2.27-44.base.el7
BIN_DISTNAMES= binutils-${BUVERSION} \
glibc-headers-2.17-323.el7_9 \
mpfr-3.1.1-4.el7 \
cpp-4.8.5-44.el7 \
gcc-4.8.5-44.el7 \
gcc-c++-4.8.5-44.el7 \
gcc-gfortran-4.8.5-44.el7 \
libstdc++-devel-4.8.5-44.el7
LIB_DISTNAMES= binutils-devel-${BUVERSION} \
glibc-devel-2.17-323.el7_9 \
glibc-static-2.17-323.el7_9 \
libgomp-4.8.5-44.el7 \
libmpc-1.0.1-3.el7
DISTFILES_aarch64=${LIB_DISTNAMES:S/$/${EXTRACT_SUFX_aarch64}:aarch64/} \
${BIN_DISTNAMES:S/$/${EXTRACT_SUFX_aarch64}:aarch64/} \
kernel-headers-4.18.0-193.28.1.el7${EXTRACT_SUFX_aarch64}:aarch64
DISTFILES_amd64=${LIB_DISTNAMES:S/$/${EXTRACT_SUFX_i386}:amd64,i386/} \
${LIB_DISTNAMES:S/$/${EXTRACT_SUFX_amd64}:amd64/} \
${BIN_DISTNAMES:S/$/${EXTRACT_SUFX_amd64}:amd64/} \
kernel-headers-3.10.0-1160.15.2.el7${EXTRACT_SUFX_amd64}:amd64
DISTFILES_i386= ${LIB_DISTNAMES:S/$/${EXTRACT_SUFX_i386}:amd64,i386/} \
${BIN_DISTNAMES:S/$/${EXTRACT_SUFX_i386}:i386/} \
kernel-headers-3.10.0-1160.15.2.el7.centos.plus${EXTRACT_SUFX_i386}:i386
SRC_DISTFILES= binutils-${BUVERSION}${SRC_SUFX}:SOURCE \
glibc-2.17-323.el7_9${SRC_SUFX}:SOURCE \
kernel-3.10.0-1160.15.2.el7${SRC_SUFX}:SOURCE \
libmpc-1.0.1-3.el7${SRC_SUFX}:SOURCE \
mpfr-3.1.1-4.el7${SRC_SUFX}:SOURCE \
gcc-4.8.5-44.el7${SRC_SUFX}:SOURCE
CONFLICTS= linux-c6-${PORTNAME}
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
PLIST_SUB= BUVERSION=${BUVERSION}
.include <bsd.port.options.mk>
post-install:
${LN} -sf ld.bfd ${STAGEDIR}${PREFIX}/usr/bin/ld
.if ${ARCH} == aarch64
${LN} -sfh ../../../../lib64/libgcc_s.so.1 \
${STAGEDIR}${PREFIX}/usr/lib/gcc/aarch64-redhat-linux/4.8.2/libgcc_s.so
.elif ${ARCH} == amd64
${LN} -sfh ../../../../lib64/libgcc_s.so.1 \
${STAGEDIR}${PREFIX}/usr/lib/gcc/x86_64-redhat-linux/4.8.2/libgcc_s.so
${LN} -sfh ../../../../libgcc_s.so.1 \
${STAGEDIR}${PREFIX}/usr/lib/gcc/x86_64-redhat-linux/4.8.2/32/libgcc_s.so
.else
${LN} -sfh ../../../libgcc_s.so.1 \
${STAGEDIR}${PREFIX}/usr/lib/gcc/i686-redhat-linux/4.8.2/libgcc_s.so
.endif
.include <bsd.port.mk>