1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/lang/ecl/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

76 lines
2.4 KiB
Makefile

PORTNAME= ecl
PORTVERSION= 21.2.1
PORTREVISION= 1
CATEGORIES= lang lisp
MASTER_SITES= https://common-lisp.net/project/ecl/static/files/release/
MAINTAINER= olgeni@FreeBSD.org
COMMENT= ANSI Common Lisp implementation
WWW= https://common-lisp.net/project/ecl/main.html
LICENSE= LGPL20
BROKEN_mips= fails to build: qemu: uncaught target signal 11 (Segmentation fault) - core dumped
BROKEN_mips64= fails to build: qemu: uncaught target signal 11 (Segmentation fault) - core dumped
BUILD_DEPENDS= ${LOCALBASE}/lib/libatomic_ops.a:devel/libatomic_ops
LIB_DEPENDS= libgc.so:devel/boehm-gc \
libgmp.so:math/gmp
RUN_DEPENDS= ${LOCALBASE}/lib/libatomic_ops.a:devel/libatomic_ops
USES= autoreconf gmake localbase makeinfo perl5 tar:tgz
USE_CSTD= c99
USE_LDCONFIG= yes
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-boehm=system \
--enable-libatomic=system \
--with-gmp-prefix=${LOCALBASE} \
--with-system-gmp
MAKE_JOBS_UNSAFE= yes
AUTORECONF_WRKSRC= ${WRKSRC}/src
INFO= ecl
PLIST_SUB= VERSION="${PORTVERSION}"
OPTIONS_DEFINE= ASDF DFFI SAGE SOCKETS THREADS X11
OPTIONS_DEFAULT= ASDF DFFI SAGE SOCKETS THREADS
OPTIONS_SUB= yes
ASDF_DESC= Enable ASDF building facility
DFFI_DESC= Dynamic foreign-function support
SAGE_DESC= Build with patches for sage
SOCKETS_DESC= Enable socket interface
ASDF_CONFIGURE_ON= --with-asdf=yes
ASDF_CONFIGURE_OFF= --with-asdf=no
DFFI_LIB_DEPENDS= libffi.so:devel/libffi
DFFI_CONFIGURE_ON= --with-dffi=system
DFFI_CONFIGURE_OFF= --with-dffi=no
SAGE_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_aclocal.m4 \
${PATCHDIR}/extra-patch-src_c_file.d \
${PATCHDIR}/extra-patch-src_compile.lsp.in \
${PATCHDIR}/extra-patch-src_configure.ac \
${PATCHDIR}/extra-patch-src_Makefile.in
SOCKETS_CONFIGURE_ON= --with-tcp=yes
SOCKETS_CONFIGURE_OFF= --with-tcp=no
THREADS_LIB_DEPENDS= libgc-threaded.so:devel/boehm-gc-threaded
THREADS_CONFIGURE_ON= --enable-threads=yes
THREADS_CONFIGURE_OFF= --enable-threads=no
THREADS_LDFLAGS= -lpthread -lgc-threaded
X11_USES= xorg
X11_USE= XORG=x11
X11_CONFIGURE_ON= --with-x=yes
X11_CONFIGURE_OFF= --with-x=no
post-patch-THREADS-on:
@${REINPLACE_CMD} -e 's|-lgc|-lgc-threaded|' ${WRKSRC}/src/configure
post-install:
${RMDIR} ${STAGEDIR}${PREFIX}/include/ecl/gc/private
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libecl.so.${PORTVERSION}
${LN} -sf ecl-${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/ecl
.include <bsd.port.mk>