freebsd-ports/x11/x3270/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 KiB
Makefile

PORTNAME?= x3270
PORTVERSION= 4.2
CATEGORIES?= x11 net
MASTER_SITES= http://x3270.bgp.nu/download/04.02/
DISTFILES= suite3270-${PORTVERSION}ga4-src.tgz
MAINTAINER= kbowling@FreeBSD.org
COMMENT?= 3270 Terminal emulator
WWW= https://x3270.miraheze.org/wiki/Main_Page
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= tclsh:lang/tcl-wrapper
LIB_DEPENDS= libexpat.so:textproc/expat2
USES= cpe iconv gmake readline shebangfix tcl
# x3270 includes c3270
CONFLICTS_INSTALL?= c3270
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-unix
.if defined(WITHOUT_OPENSSL)
CONFIGURE_ARGS+= --disable-tls
.else
USES+= ssl
.endif
CPE_VENDOR= paul_mattes
WRKSRC= ${WRKDIR}/suite3270-${PORTVERSION}
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES DBCS
DBCS_DESC= EBCDIC double-byte character set support
.include <bsd.port.options.mk>
.if ! defined(C3270)
BUILD_DEPENDS+= bdftopcf:x11-fonts/bdftopcf \
mkfontscale:x11-fonts/mkfontscale
USES+= fonts xorg
USE_XORG= ice sm x11 xaw xext xmu xt xorgproto
CONFIGURE_ARGS+= --with-fontdir=${FONTSDIR} \
--with-x=${LOCALBASE}
SHEBANG_FILES= x3270/x3270a.in
PLIST_SUB+= X3270=""
.else
CONFIGURE_ARGS+= --disable-x3270 \
--disable-x3270if
PLIST_SUB+= X3270="@comment "
.endif
# EBCDIC double-byte character set support is disabled by default
.if ${PORT_OPTIONS:DBCS}
CONFIGURE_ARGS+= --enable-dbcs
PLIST_SUB+= DBCS=""
.else
PLIST_SUB+= DBCS="@comment "
.endif
post-install:
.for m in b3270 c3270 pr3287 s3270 tcl3270
@(cd ${WRKSRC} ; ${INSTALL_MAN} ${m}/${m}.man ${STAGEDIR}${MAN1PREFIX}/man/man1/${m}.1)
.endfor
.if ! defined(C3270)
${INSTALL_MAN} ${WRKSRC}/x3270/x3270.man ${STAGEDIR}${MAN5PREFIX}/man/man1/x3270.1
${INSTALL_MAN} ${WRKSRC}/x3270if/x3270if.man ${STAGEDIR}${MAN5PREFIX}/man/man1/x3270if.1
.endif
${INSTALL_MAN} ${WRKSRC}/c3270/ibm_hosts.man ${STAGEDIR}${MAN5PREFIX}/man/man5/ibm_hosts.5
@(cd ${WRKSRC}/x3270/Examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
@(cd ${WRKSRC}/x3270 && ${COPYTREE_SHARE} html ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>