1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/lang/smalltalk/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.2 KiB
Makefile

PORTNAME= smalltalk
PORTVERSION= 3.2.5
PORTREVISION= 17
CATEGORIES= lang
MASTER_SITES= GNU
MAINTAINER= danfe@FreeBSD.org
COMMENT= GNU Smalltalk
WWW= https://smalltalk.gnu.org/
BROKEN_aarch64= Fails to link: undefined reference to sbrk
BROKEN_powerpc64= Fails to build: gst-package: did not understand #~
BROKEN_riscv64= Fails to link: undefined reference to sbrk
BROKEN_sparc64= Fails to install
BUILD_DEPENDS= zip:archivers/zip \
gawk:lang/gawk
LIB_DEPENDS= libgdbm.so:databases/gdbm \
libffi.so:devel/libffi \
libltdl.so:devel/libltdl \
libcairo.so:graphics/cairo \
libexpat.so:textproc/expat2
USES= gl gmake gnome iconv libtool makeinfo pathfix pkgconfig \
readline shebangfix sqlite tar:xz xorg
USE_GL= gl glu glut
USE_GNOME= pango
USE_XORG= ice sm x11 xi xmu
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_prog_EMACS=no ac_cv_prog_AWK=gawk
CONFIGURE_ARGS= --enable-generational-gc=no \
--enable-gtk=no \
--localstatedir="${PREFIX}/var" \
--with-emacs=no \
--with-gmp=no
USE_LDCONFIG= yes
SHEBANG_LANG= sed
sed_OLD_CMD= /bin/sed
sed_CMD= ${SED}
SHEBANG_FILES= packages/vfs/deb packages/vfs/mailfs \
examples/pepe.sed examples/xml.sed
PLIST_SUB= VERSION="${PORTVERSION}"
PORTDATA= *
INFO= gst gst-base gst-libs
OPTIONS_DEFINE= PGSQL SDL
OPTIONS_DEFAULT= PGSQL SDL
OPTIONS_SUB= yes
PGSQL_USES= pgsql
SDL_USES= sdl
SDL_USE= SDL=image,mixer,sdl,sound,ttf
post-patch:
@${REINPLACE_CMD} -e 's/ia64-\*-\* /&|amd64-*-* /' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's/lrintl (truncl/lroundl (truncl/' \
${WRKSRC}/libgst/prims.def \
${WRKSRC}/libgst/prims.inl
@${REINPLACE_CMD} -e '/^ac_include/s/\\$$/#include <wctype.h> \\/' \
${WRKSRC}/snprintfv/configure
post-build:
@${SED} -e 's|@bindir@|${PREFIX}/bin|g' \
${WRKSRC}/gst-mode.el.in > ${WRKSRC}/gst-mode.el
post-install:
@${LN} -sf gst-load.1 ${STAGEDIR}${MANPREFIX}/man/man1/gst-reload.1
@${MKDIR} ${STAGEDIR}${DATADIR}/gtk
${INSTALL_DATA} ${WRKSRC}/*.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp
@${LS} -1 ${STAGEDIR}${PREFIX}/bin/gst* |grep -v config|${XARGS} ${STRIP_CMD}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/smalltalk/*.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgst.so
.include <bsd.port.mk>