freebsd-ports/lang/racket-minimal/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

96 lines
2.7 KiB
Makefile

PORTNAME= racket
PORTVERSION= 8.5
PORTREVISION= 1
CATEGORIES= lang scheme
MASTER_SITES= http://mirror.racket-lang.org/installers/${PORTVERSION}/ \
http://www.cs.utah.edu/plt/installers/${PORTVERSION}/ \
http://www.eecs.northwestern.edu/racket/${PORTVERSION}/ \
http://mirror.csclub.uwaterloo.ca/racket/racket-installers/${PORTVERSION}/ \
http://mirror.informatik.uni-tuebingen.de/mirror/racket/${PORTVERSION}/ \
http://racket.infogroep.be/${PORTVERSION}/
PKGNAMESUFFIX= -minimal
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}-src-builtpkgs
DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX}/${PORTVERSION}
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Interactive, integrated, graphical Scheme programming environment
WWW= https://racket-lang.org/
LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
NOT_FOR_ARCHS= riscv64
NOT_FOR_ARCHS_REASON= unsupported platform
LIB_DEPENDS= libffi.so:devel/libffi
USES= cpe gmake iconv libtool localbase tar:tgz
CPE_VENDOR= ${PORTNAME}-lang
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-libffi \
--enable-places \
--enable-pthread \
--mandir=${MANPREFIX}/man
WRKSRC= ${WRKDIR}/racket-${PORTVERSION}/src
PATCH_WRKSRC= ${WRKDIR}/racket-${PORTVERSION}
USE_LDCONFIG= yes
REINPLACE_ARGS= -i ""
CONFLICTS= racket
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT= CS
OPTIONS_SUB= yes
OPTIONS_DEFAULT_powerpc= BC
OPTIONS_DEFAULT_powerpc64= BC
OPTIONS_DEFINE_amd64= FUTURES JIT
OPTIONS_DEFINE_i386= FUTURES JIT
OPTIONS_EXCLUDE_powerpc= CS
OPTIONS_EXCLUDE_powerpc64= CS
OPTIONS_SINGLE= BACKEND
OPTIONS_SINGLE_BACKEND= BC CS
BACKEND_DESC= Racket Backend
BC_DESC= Build ByteCode backend (legacy)
CS_DESC= Build ChezScheme backend
FUTURES_DESC= Enable futures (only for BC backend)
JIT_DESC= Enable JIT compiler (only for BC backend)
BC_CONFIGURE_ON= --enable-bconly \
--enable-libffi \
--enable-places
CS_CONFIGURE_ON= --enable-csonly \
--enable-mach=${CHEZ_MACHTYPE}
FUTURES_CONFIGURE_ENABLE= futures
FUTURES_IMPLIES= JIT
FUTURES_PREVENTS= CS
FUTURES_PREVENTS_MSG= CS enables futures by default
JIT_CONFIGURE_ENABLE= jit
JIT_PREVENTS= CS
JIT_PREVENTS_MSG= CS enables jit by default
.include <bsd.port.options.mk>
.if ${ARCH} == "amd64"
CHEZ_MACHTYPE= ta6fb
.elif ${ARCH} == "arm"
CHEZ_MACHTYPE= tarm32fb
.elif ${ARCH} == "arm64"
CHEZ_MACHTYPE= tarm64fb
.elif ${ARCH} == "i386"
CHEZ_MACHTYPE= ti3fb
.elif ${ARCH} == "powerpc"
CHEZ_MACHTYPE= tppc32fb
.endif
post-patch:
@${REINPLACE_CMD} -e 's/-liconv/${ICONV_LIB}/' ${WRKSRC}/ChezScheme/configure ${WRKSRC}/bc/configure ${WRKSRC}/cs/c/configure
post-install:
${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/racket/gracket
.include <bsd.port.mk>