freebsd-ports/japanese/lynx-current/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

73 lines
2.1 KiB
Makefile

PORTNAME= lynx
DISTVERSION= ${VERSION}.${MINOR_VERSION:S/.//}
CATEGORIES= japanese www
MASTER_SITES= http://invisible-mirror.net/archives/lynx/tarballs/
PKGNAMESUFFIX= -current
DISTNAME= ${PORTNAME}${VERSION}${MINOR_VERSION}
MAINTAINER= CQG00620@nifty.ne.jp
COMMENT= Console WWW client (browser) with multi-byte encoding support (development release)
WWW= https://lynx.invisible-island.net/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe ncurses shebangfix tar:bzip2
VERSION= 2.9.0
MINOR_VERSION= dev.4
CONFLICTS= lynx-2.* lynx-current-2.* ja-lynx-2.*
SHEBANG_FILES= samples/mailto-form.pl
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-screen=ncursesw --with-zlib --libdir="${L_LIB}" \
--enable-nsl-fork --enable-ipv6 \
--enable-cjk --enable-internal-links \
--with-bzlib
MAKE_ARGS= helpdir=${L_HELP} docdir=${DOCSDIR}
MAKEFILE= makefile
INSTALL_TARGET= install-full
CPE_VERSION= ${PORTVERSION:R}
CPE_UPDATE= ${PORTVERSION:E:S/p/pre./:S/d/dev./}
L_LIB= ${PREFIX}/etc
L_HELP= ${PREFIX}/share/lynx_help
OPTIONS_DEFINE= COLOR_STYLE DEFAULT_COLORS DOCS JAPANESE_UTF8 IDN SSL EXPERIMENTAL_OPTS
OPTIONS_DEFAULT=JAPANESE_UTF8 IDN SSL EXPERIMENTAL_OPTS
OPTIONS_SUB= yes
COLOR_STYLE_DESC= Optional color style support
COLOR_STYLE_CONFIGURE_ENABLE= color-style
DEFAULT_COLORS_DESC= Default-color background support (ncurses)
DEFAULT_COLORS_CONFIGURE_ENABLE=default-colors
EXPERIMENTAL_OPTS_DESC= Use experimental options
EXPERIMENTAL_OPTS_CONFIGURE_ON= --enable-charset-choice --enable-nested-tables
IDN_LIB_DEPENDS= libidn.so:dns/libidn
IDN_CONFIGURE_ENABLE= idna
JAPANESE_UTF8_DESC= Experimental Japanese UTF-8 logic support
JAPANESE_UTF8_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG}
JAPANESE_UTF8_CONFIGURE_ENABLE= japanese-utf8
JAPANESE_UTF8_USES= iconv
SSL_CONFIGURE_ON= --with-ssl=${OPENSSLBASE}
SSL_USES= ssl
# Change "cd foo && $(MAKE_RECUR)" into "$(MAKE_RECUR) -C foo" to unbreak
# parallel builds
post-patch:
@${REINPLACE_CMD} -E 's|cd (.+) && (\$$\(MAKE_RECUR\))|\2 -C \1|' \
${WRKSRC}/${MAKEFILE}.in
post-install-DOCS-on:
.for doc in COPYHEADER COPYING
${RLN} ${STAGEDIR}${DOCSDIR}/${doc} ${STAGEDIR}${L_HELP}
.endfor
.include <bsd.port.mk>