freebsd-ports/editors/the/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.3 KiB
Makefile

PORTNAME= the
PORTVERSION= 3.3.r4
PORTREVISION= 2
CATEGORIES= editors
MASTER_SITES= http://downloads.sourceforge.net/hessling-editor/
DISTNAME= THE-${PORTVERSION:S/.r/RC/}
MAINTAINER= comet.berkeley@gmail.com
COMMENT= The Hessling Editor, like the VM/CMS xedit editor
WWW= http://hessling-editor.sourceforge.net/
LICENSE= GPLv2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-rexxincdir=${LOCALBASE}/include \
--with-rexxlibdir=${LOCALBASE}/lib
ALL_TARGET= all html
CPPFLAGS+= -I${LOCALBASE}/include
OPTIONS_DEFINE= DOCS XAW3D
OPTIONS_SINGLE= DISPLAY REXX
OPTIONS_SINGLE_DISPLAY= NCURSES XCURSES
OPTIONS_SINGLE_REXX= REXX_IMC REGINA
OPTIONS_DEFAULT= NCURSES REGINA
OPTIONS_SUB= yes
XAW3D_DESC= Enable Xaw3D
NCURSES_DESC= Build standard NCurses version
XCURSES_DESC= Build XCurses (X11) version
REXX_IMC_DESC= Use Rexx/imc interpreter
REGINA_DESC= Use Regina Rexx interpreter
XAW3D_CONFIGURE_WITH= xaw3d
XAW3D_BUILD_DEPENDS= ${LOCALBASE}/lib/libXaw3d.a:x11-toolkits/Xaw3d
NCURSES_USES= ncurses
NCURSES_CONFIGURE_ON= --with-ncurses \
--with-cursesincdir=${NCURSESINC} \
--with-curseslibdir=${NCURSESLIB}
XCURSES_LIB_DEPENDS= libXCurses.so:devel/pdcurses
XCURSES_CONFIGURE_ON= --with-xcurses \
--with-cursesincdir=${LOCALBASE}/include \
--with-curseslibdir=${LOCALBASE}/lib
XCURSES_CFLAGS= -I${LOCALBASE}/include \
-I${LOCALBASE}/include/xcurses
REXX_IMC_CONFIGURE_ON= --with-rexx=rexximc
REXX_IMC_BUILD_DEPENDS= rexx:lang/rexx-imc
REXX_IMC_RUN_DEPENDS= rexx:lang/rexx-imc
REXX_IMC_BROKEN= fails to build with REXX_IMC option
REGINA_CONFIGURE_ON= --with-rexx=regina
REGINA_BUILD_DEPENDS= regina:lang/rexx-regina
REGINA_RUN_DEPENDS= regina:lang/rexx-regina
post-extract:
${REINPLACE_CMD} -e 's|(datadir)/THE|(datadir)/the|g' \
-e 's|/share/THE|/share/the|g' ${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's|ltermcap|lncurses|g' ${WRKSRC}/configure
${REINPLACE_CMD} -e '/FUNCTION_KEY/d' ${WRKSRC}/the.c
pre-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/the64.gif ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/the64.png ${STAGEDIR}${DOCSDIR}
do-install-XCURSES-on:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xthe
${LN} -sf xthe ${STAGEDIR}${PREFIX}/bin/the
do-install-NCURSES-on:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nthe
${LN} -sf nthe ${STAGEDIR}${PREFIX}/bin/the
.include <bsd.port.mk>