2014-01-28 15:45:30 +01:00
|
|
|
# Created by: Andrey Chernov <ache@FreeBSD.org>
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1994-11-20 18:04:03 +01:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTNAME= screen
|
2014-04-30 06:22:34 +02:00
|
|
|
PORTVERSION= 4.2.1
|
2014-06-14 06:07:56 +02:00
|
|
|
PORTREVISION= 2
|
2005-11-05 18:51:28 +01:00
|
|
|
CATEGORIES= sysutils
|
2014-04-30 03:26:30 +02:00
|
|
|
MASTER_SITES= http://ftp.gnu.org/gnu/screen/ \
|
|
|
|
ftp://ftp.gnu.org/gnu/screen/ \
|
|
|
|
ftp://gnu.mirror.iweb.com/screen/ \
|
|
|
|
http://gnu.mirror.iweb.com/screen/ \
|
2014-04-30 03:33:33 +02:00
|
|
|
http://mirror.sdunix.com/gnu/ \
|
2014-04-30 03:26:30 +02:00
|
|
|
ftp://mirrors.kernel.org/gnu/screen/ \
|
2006-12-27 17:39:13 +01:00
|
|
|
http://komquats.com/distfiles/ \
|
2006-12-27 17:51:21 +01:00
|
|
|
http://people.freebsd.org/~cy/distfiles/ \
|
2014-01-28 15:45:30 +01:00
|
|
|
GNU
|
1995-04-12 06:56:21 +02:00
|
|
|
|
2002-07-07 17:16:15 +02:00
|
|
|
MAINTAINER= cy@FreeBSD.org
|
2014-01-28 15:45:30 +01:00
|
|
|
COMMENT= Multi-screen window manager
|
1995-04-12 06:56:21 +02:00
|
|
|
|
2014-05-23 08:16:30 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2014-06-15 07:44:44 +02:00
|
|
|
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
|
2013-04-28 22:01:07 +02:00
|
|
|
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
|
2014-06-15 07:44:44 +02:00
|
|
|
SOCKETS_DESC= Use new (4.2.1+) sockets for IPC (default)
|
|
|
|
NAMED_PIPES_DESC= Use legacy (4.0.3) named pipes for IPC (override)
|
2007-10-11 18:58:36 +02:00
|
|
|
|
2013-10-22 22:15:16 +02:00
|
|
|
OPTIONS_SUB=
|
|
|
|
|
2014-04-30 06:22:34 +02:00
|
|
|
USES= gmake
|
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2007-10-25 20:01:51 +02:00
|
|
|
|
1995-04-12 06:56:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MMAN}
|
2014-04-30 06:22:34 +02:00
|
|
|
MAKE_ARGS+= WITH_MAN=1
|
|
|
|
PLIST_SUB+= MAN=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MAN="@comment"
|
2007-10-11 18:58:36 +02:00
|
|
|
.endif
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MINFO}
|
2007-09-23 13:32:37 +02:00
|
|
|
.if !exists(/usr/bin/install-info)
|
|
|
|
RUN_DEPENDS+= install-info:${PORTSDIR}/print/texinfo
|
|
|
|
.endif
|
2003-10-13 05:28:04 +02:00
|
|
|
INFO= screen
|
2014-04-30 06:22:34 +02:00
|
|
|
MAKE_ARGS+= WITH_INFO=1
|
2007-09-23 13:32:37 +02:00
|
|
|
.endif
|
1994-11-20 18:04:03 +01:00
|
|
|
|
2005-09-16 18:30:21 +02:00
|
|
|
# Enables support for 256 colour xterm. Note that you may need to
|
|
|
|
# set up a custom termcap entry or .screenrc which modifies termcap
|
|
|
|
# to contain the following: Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm
|
|
|
|
#
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MXTERM_256}
|
2005-09-16 18:30:21 +02:00
|
|
|
CFLAGS+= -DCOLORS256
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MNETHACK}
|
2005-09-16 18:24:19 +02:00
|
|
|
CFLAGS+= -DNONETHACK
|
|
|
|
.endif
|
|
|
|
|
2008-07-25 06:53:02 +02:00
|
|
|
# show encoding on the status line via option "showenc"
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MSHOWENC}
|
2008-07-25 06:53:02 +02:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/opt-showencoding
|
|
|
|
.endif
|
|
|
|
|
2002-10-28 17:29:24 +01:00
|
|
|
post-patch:
|
|
|
|
@${RM} ${WRKSRC}/doc/screen.info*
|
2008-06-10 07:20:09 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/dev/ptmx|/nonexistent|' ${WRKSRC}/configure
|
2002-10-28 17:29:24 +01:00
|
|
|
|
2014-06-15 07:44:44 +02:00
|
|
|
# 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}
|
2014-06-14 06:07:56 +02:00
|
|
|
# Bug 191017
|
|
|
|
post-configure:
|
|
|
|
@${ECHO_CMD} '#define NAMEDPIPE 1' >> ${WRKSRC}/config.h
|
2014-06-15 07:44:44 +02:00
|
|
|
@${ECHO_CMD} User selected named pipes override set.
|
|
|
|
.endif
|
2014-06-14 06:07:56 +02:00
|
|
|
|
2002-09-02 16:14:00 +02:00
|
|
|
post-install:
|
2013-10-22 22:15:16 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2014-01-28 15:45:30 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}/screenrc
|
2002-09-02 16:14:00 +02:00
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.include <bsd.port.mk>
|