1994-11-20 18:04:03 +01:00
|
|
|
# New ports collection makefile for: screen
|
1994-12-02 02:10:29 +01:00
|
|
|
# Date created: 25 Nov 1994
|
|
|
|
# Whom: ache
|
1994-11-20 18:04:03 +01:00
|
|
|
#
|
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
|
2006-10-26 06:27:46 +02:00
|
|
|
PORTVERSION= 4.0.3
|
2008-07-25 06:53:02 +02:00
|
|
|
PORTREVISION= 5
|
2005-11-05 18:51:28 +01:00
|
|
|
CATEGORIES= sysutils
|
2001-01-16 18:33:20 +01:00
|
|
|
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/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/ \
|
1996-12-26 11:01:04 +01:00
|
|
|
${MASTER_SITE_GNU}
|
1999-01-27 08:41:29 +01:00
|
|
|
MASTER_SITE_SUBDIR= screen
|
1995-04-12 06:56:21 +02:00
|
|
|
|
2002-07-07 17:16:15 +02:00
|
|
|
MAINTAINER= cy@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A multi-screen window manager
|
1995-04-12 06:56:21 +02:00
|
|
|
|
2007-10-11 18:58:36 +02:00
|
|
|
OPTIONS= CJK "Treat CJK ambiguous characters as full width" OFF \
|
|
|
|
INFO "Build and install info documentation" ON \
|
|
|
|
MAN "Build and install man pages" ON \
|
|
|
|
NETHACK "Enable nethack-style messages" ON \
|
2008-06-10 07:53:18 +02:00
|
|
|
XTERM_256 "Enable support for 256 colour xterm" OFF \
|
2008-07-25 06:53:02 +02:00
|
|
|
HOSTINLOCKED "Print user@host in locked message" OFF \
|
|
|
|
SHOWENC "Show encoding on the status line" OFF
|
2007-10-11 18:58:36 +02:00
|
|
|
|
2007-10-25 20:01:51 +02:00
|
|
|
NO_PACKAGE= Tends to loop using 100% CPU when used from package - perhaps it hard-codes information about the build host
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1995-04-12 06:56:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-10-11 18:58:36 +02:00
|
|
|
.if defined(WITH_MAN)
|
1996-11-18 15:17:24 +01:00
|
|
|
MAN1= screen.1
|
2007-10-29 21:18:43 +01:00
|
|
|
MAKE_ARGS+= -DWITH_MAN
|
2007-10-11 18:58:36 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_INFO)
|
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
|
2007-10-29 21:18:43 +01:00
|
|
|
MAKE_ARGS+= -DWITH_INFO
|
2007-09-23 13:32:37 +02:00
|
|
|
.endif
|
1994-11-20 18:04:03 +01:00
|
|
|
|
2003-09-14 08:31:33 +02:00
|
|
|
.if ${ARCH} == "alpha"
|
|
|
|
CFLAGS+= -O0
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
#
|
|
|
|
.if defined(WITH_XTERM_256)
|
|
|
|
CFLAGS+= -DCOLORS256
|
|
|
|
.endif
|
|
|
|
|
2007-10-11 18:58:36 +02:00
|
|
|
.if !defined(WITH_NETHACK)
|
2005-09-16 18:24:19 +02:00
|
|
|
CFLAGS+= -DNONETHACK
|
|
|
|
.endif
|
|
|
|
|
2006-08-05 18:40:17 +02:00
|
|
|
# treat CJK ambiguous characters as full width via option "cjkwidth"
|
|
|
|
.if defined(WITH_CJK)
|
2007-10-29 19:02:50 +01:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/opt-cjkwidth
|
2006-08-05 18:40:17 +02:00
|
|
|
.endif
|
|
|
|
|
2008-06-10 07:53:18 +02:00
|
|
|
.if defined(WITH_HOSTINLOCKED)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/opt-hostinlocked
|
|
|
|
.endif
|
|
|
|
|
2008-07-25 06:53:02 +02:00
|
|
|
# show encoding on the status line via option "showenc"
|
|
|
|
.if defined(WITH_SHOWENC)
|
|
|
|
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
|
|
|
|
2002-09-02 16:14:00 +02:00
|
|
|
post-install:
|
2004-07-19 09:21:17 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${CP} ${WRKSRC}/etc/etcscreenrc ${EXAMPLESDIR}/screenrc
|
2002-09-02 16:14:00 +02:00
|
|
|
@if [ ! -f ${PREFIX}/etc/screenrc ]; then \
|
2004-07-19 09:21:17 +02:00
|
|
|
${CP} ${EXAMPLESDIR}/screenrc ${PREFIX}/etc/screenrc ; \
|
2002-09-02 16:14:00 +02:00
|
|
|
fi
|
|
|
|
|
2003-09-14 08:31:33 +02:00
|
|
|
.include <bsd.port.post.mk>
|