freebsd-ports/net/rdesktop/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

81 lines
2.0 KiB
Makefile

PORTNAME= rdesktop
PORTVERSION= 1.9.0
DISTVERSIONPREFIX= v
CATEGORIES= net comms
MAINTAINER= freebsd@gregv.net
COMMENT= RDP client for Windows NT/2000/2003 Terminal Server
WWW= http://www.rdesktop.org/
LICENSE= GPLv3
LIB_DEPENDS= libgmp.so:math/gmp \
libgnutls.so:security/gnutls \
libnettle.so:security/nettle \
libtasn1.so:security/libtasn1
USES= autoreconf cpe gmake iconv pkgconfig xorg
USE_XORG= x11 xcursor xrandr
USE_GITHUB= yes
CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG} \
--disable-credssp
GNU_CONFIGURE= yes
DOCS= doc/*.txt doc/AUTHORS doc/TODO
OPTIONS_DEFINE= AO DEBUG DOCS IPV6 SAMPLERATE SMARTCARD
SMARTCARD_DESC= Enable SmartCard login via PCSC-lite
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAO}
LIB_DEPENDS+= libao.so:audio/libao
CONFIGURE_ARGS+= --with-sound=libao
.else
CONFIGURE_ARGS+= --with-sound=oss
.endif
.if exists(${LOCALBASE}/lib/libsamplerate.so) || ${PORT_OPTIONS:MSAMPLERATE}
LIB_DEPENDS+= libsamplerate.so:audio/libsamplerate
.endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --with-ipv6
.endif
.if ${PORT_OPTIONS:MSMARTCARD}
LIB_DEPENDS+= libpcsclite.so:devel/pcsc-lite
.else
CONFIGURE_ARGS+= --disable-smartcard
.endif
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --with-debug \
--with-debug-channel \
--with-debug-clipboard \
--with-debug-kbd \
--with-debug-rdp5 \
--with-debug-seamless \
--with-debug-sound
.if ${PORT_OPTIONS:MSMARTCARD}
CONFIGURE_ARGS+= --with-debug-smartcard
.endif
post-configure:
${ECHO} "#define WITH_DEBUG_SERIAL 1" >> ${WRKSRC}/rdesktop.h
.endif
post-patch:
@${REINPLACE_CMD} -e '/-o rdesktop/s,-lX11,& -lgmp,' \
${WRKSRC}/Makefile.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rdesktop ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/rdesktop.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DATADIR}/keymaps
${INSTALL_DATA} ${WRKSRC}/keymaps/* ${STAGEDIR}${DATADIR}/keymaps
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>