Due to popular demand sockets are back! Sockets are the default option.

Users should choose named pipes in a heterogeneous environement that uses
both screen 4.0.3 and 4.2.1.

PR:		191029, 191017
This commit is contained in:
Cy Schubert 2014-06-15 05:44:44 +00:00
parent 9fd4b0d01f
commit 03624ac11a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357827

View File

@ -20,13 +20,17 @@ COMMENT= Multi-screen window manager
LICENSE= GPLv3
OPTIONS_DEFINE= INFO MAN NETHACK XTERM_256 SHOWENC
OPTIONS_DEFAULT= INFO MAN NETHACK XTERM_256
OPTIONS_DEFINE= INFO MAN NETHACK XTERM_256 SHOWENC
OPTIONS_DEFAULT= INFO MAN NETHACK XTERM_256 SOCKETS
OPTIONS_SINGLE= IPC
OPTIONS_SINGLE_IPC= SOCKETS NAMED_PIPES
INFO_DESC= Build and install info documentation
MAN_DESC= Build and install man pages
NETHACK_DESC= Enable nethack-style messages
XTERM_256_DESC= Enable support for 256 colour xterm
SHOWENC_DESC= Show encoding on the status line
SOCKETS_DESC= Use new (4.2.1+) sockets for IPC (default)
NAMED_PIPES_DESC= Use legacy (4.0.3) named pipes for IPC (override)
OPTIONS_SUB=
@ -70,9 +74,16 @@ post-patch:
@${RM} ${WRKSRC}/doc/screen.info*
@${REINPLACE_CMD} -e 's|/dev/ptmx|/nonexistent|' ${WRKSRC}/configure
# Bug 191029: Users can choose whether to use sockets or named pipes.
# Choose sockets if you don't know what the difference is.
# Choose named pipes if your environment is heterogeneous,
# using both screen 4.0.3 and 4.2.1.
.if ! ${PORT_OPTIONS:MNAMED_PIPES}
# Bug 191017
post-configure:
@${ECHO_CMD} '#define NAMEDPIPE 1' >> ${WRKSRC}/config.h
@${ECHO_CMD} User selected named pipes override set.
.endif
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}