freebsd-ports/lang/chez-scheme/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

79 lines
2.1 KiB
Makefile

PORTNAME= chez-scheme
PORTVERSION= 9.5.8
DISTVERSIONPREFIX= v
CATEGORIES= lang
MASTER_SITES= http://distfiles.pirateparty.in/ashish/:boot \
LOCAL/ashish:boot
DISTFILES= ${PORTNAME}-boot-ta6fb-${PORTVERSION}.tar.xz:boot \
${PORTNAME}-boot-ti3fb-${PORTVERSION}.tar.xz:boot
MAINTAINER= ashish@FreeBSD.org
COMMENT= Chez Scheme system
WWW= https://cisco.github.io/ChezScheme
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64 i386
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid \
libossp-uuid.so:misc/ossp-uuid
USES= gmake iconv:lib ncurses
USE_GITHUB= yes
GH_ACCOUNT= cisco
GH_PROJECT= ChezScheme
GH_TUPLE= nanopass:nanopass-framework-scheme:v1.9.2:nanopass/nanopass \
madler:zlib:v1.2.12:zlib/zlib \
dybvig:stex:v1.2.2:stex/stex \
lz4:lz4:v1.9.3:lz4/lz4
OPTIONS_DEFAULT= X11
OPTIONS_DEFINE= X11
HAS_CONFIGURE= yes
ALL_TARGET= build
CONFLICTS_INSTALL= petite-chez
STRIP_FILES= bin/petite bin/${PORTNAME} bin/${PORTNAME}-script
CHEZ_LIBDIR=lib/csv${PORTVERSION}
CFLAGS+= -fPIC
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -luuid
CONFIGURE_ARGS= --installprefix=${PREFIX} \
--temproot=${STAGEDIR} \
--installschemename=${PORTNAME} \
--installscriptname=${PORTNAME}-script
PLIST_SUB= PORTNAME=${PORTNAME} \
CHEZ_ARCH=${CHEZ_ARCH} \
CHEZ_LIBDIR=${CHEZ_LIBDIR}
X11_USES= xorg
X11_USE= XORG=x11
.include <bsd.port.pre.mk>
.if (${ARCH} == "amd64")
CONFIGURE_ARGS+= --threads --64 -m=ta6fb
CHEZ_ARCH= ta6fb
.elif (${ARCH} == "i386")
CONFIGURE_ARGS+= --threads --32 -m=ti3fb
CHEZ_ARCH= ti3fb
.endif
post-patch:
${LN} -sf ${WRKDIR}/${CHEZ_ARCH} ${WRKSRC}/boot/
${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
-e 's,/usr/local,${LOCALBASE},g' \
-e 's,-liconv,${ICONV_LIB},g' ${WRKSRC}/c/Mf-${CHEZ_ARCH}
pre-build-X11-off:
${ECHO_CMD} '#undef LIBX11' >>${WRKSRC}/c/version.h
post-install:
.for f in ${STRIP_FILES}
@${CHMOD} +w ${STAGEDIR}${PREFIX}/${f}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${f}
@${CHMOD} -w ${STAGEDIR}${PREFIX}/${f}
.endfor
@${LN} -sf scheme.boot ${STAGEDIR}${PREFIX}/${CHEZ_LIBDIR}/${CHEZ_ARCH}/${PORTNAME}-script.boot
.include <bsd.port.post.mk>