View | Details | Raw Unified | Return to bug 200069
Collapse All | Expand All

(-)Makefile (-41 / +22 lines)
Lines 5-19 Link Here
5
PORTVERSION=	4.2.1
5
PORTVERSION=	4.2.1
6
PORTREVISION=	5
6
PORTREVISION=	5
7
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
8
MASTER_SITES=	http://ftp.gnu.org/gnu/screen/ \
8
MASTER_SITES=	GNU \
9
		ftp://ftp.gnu.org/gnu/screen/ \
10
		ftp://gnu.mirror.iweb.com/screen/ \
9
		ftp://gnu.mirror.iweb.com/screen/ \
11
		http://gnu.mirror.iweb.com/screen/ \
10
		http://gnu.mirror.iweb.com/screen/ \
12
		http://mirror.sdunix.com/gnu/ \
11
		http://mirror.sdunix.com/gnu/ \
13
		ftp://mirrors.kernel.org/gnu/screen/ \
12
		ftp://mirrors.kernel.org/gnu/screen/ \
14
		http://komquats.com/distfiles/ \
13
		http://komquats.com/distfiles/ \
15
		http://people.freebsd.org/~cy/distfiles/ \
14
		http://people.freebsd.org/~cy/distfiles/
16
		GNU
17
15
18
MAINTAINER=	cy@FreeBSD.org
16
MAINTAINER=	cy@FreeBSD.org
19
COMMENT=	Multi-screen window manager
17
COMMENT=	Multi-screen window manager
Lines 20-31 Link Here
20
18
21
LICENSE=	GPLv3
19
LICENSE=	GPLv3
22
20
23
OPTIONS_DEFINE=		INFO MAN NETHACK XTERM_256 SHOWENC SYSTEM_SCREENRC
21
ETCDIR?=	${PREFIX}/etc
24
OPTIONS_DEFAULT=	INFO MAN NETHACK XTERM_256 SOCKETS SYSTEM_SCREENRC
22
23
USES=		gmake cpe
24
CPE_VENDOR=	gnu
25
GNU_CONFIGURE=	yes
26
CONFIGURE_ARGS=	--sysconfdir=${ETCDIR}
27
28
OPTIONS_DEFINE=		EXAMPLES INFO MANPAGES NETHACK XTERM_256 SHOWENC SYSTEM_SCREENRC
29
OPTIONS_DEFAULT=	INFO MANPAGES NETHACK XTERM_256 SOCKETS SYSTEM_SCREENRC
25
OPTIONS_SINGLE=		IPC
30
OPTIONS_SINGLE=		IPC
26
OPTIONS_SINGLE_IPC=	SOCKETS NAMED_PIPES
31
OPTIONS_SINGLE_IPC=	SOCKETS NAMED_PIPES
32
27
INFO_DESC=		Build and install info documentation
33
INFO_DESC=		Build and install info documentation
28
MAN_DESC=		Build and install man pages
29
NETHACK_DESC=		Enable nethack-style messages
34
NETHACK_DESC=		Enable nethack-style messages
30
XTERM_256_DESC=		Enable support for 256 colour xterm
35
XTERM_256_DESC=		Enable support for 256 colour xterm
31
SHOWENC_DESC=		Show encoding on the status line
36
SHOWENC_DESC=		Show encoding on the status line
Lines 35-78 Link Here
35
40
36
OPTIONS_SUB=
41
OPTIONS_SUB=
37
42
38
USES=		gmake cpe
43
INFO_MAKE_ARGS=	WITH_INFO=1
39
44
INFO_INFO=	screen
40
CPE_VENDOR=	gnu
45
MANPAGES_MAKE_ARGS=	WITH_MAN=1
41
46
NETHACK_CFLAGS=	-DNONETHACK
42
.include <bsd.port.options.mk>
43
44
GNU_CONFIGURE=	yes
45
.if ${PORT_OPTIONS:MMAN}
46
MAKE_ARGS+=	WITH_MAN=1
47
PLIST_SUB+=	MAN=""
48
.else
49
PLIST_SUB+=	MAN="@comment"
50
.endif
51
.if ${PORT_OPTIONS:MINFO}
52
.if !exists(/usr/bin/install-info)
53
RUN_DEPENDS+=	install-info:${PORTSDIR}/print/texinfo
54
.endif
55
INFO=		screen
56
MAKE_ARGS+=	WITH_INFO=1
57
.endif
58
59
# Enables support for 256 colour xterm.  Note that you may need to
47
# Enables support for 256 colour xterm.  Note that you may need to
60
# set up a custom termcap entry or .screenrc which modifies termcap
48
# set up a custom termcap entry or .screenrc which modifies termcap
61
# to contain the following: Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm
49
# to contain the following: Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm
62
#
50
#
63
.if ${PORT_OPTIONS:MXTERM_256}
51
XTERM_256_CFLAGS=	-DCOLORS256
64
CFLAGS+=	-DCOLORS256
52
# show encoding on the status line via option "showenc"
65
.endif
53
SHOWENC_EXTRA_PATCHES=	${FILESDIR}/opt-showencoding
66
54
67
.if ! ${PORT_OPTIONS:MNETHACK}
55
.include <bsd.port.options.mk>
68
CFLAGS+=	-DNONETHACK
69
.endif
70
56
71
# show encoding on the status line via option "showenc"
72
.if ${PORT_OPTIONS:MSHOWENC}
73
EXTRA_PATCHES+=	${FILESDIR}/opt-showencoding
74
.endif
75
76
post-patch:
57
post-patch:
77
	@${RM} ${WRKSRC}/doc/screen.info*
58
	@${RM} ${WRKSRC}/doc/screen.info*
78
	@${REINPLACE_CMD} -e 's|/dev/ptmx|/nonexistent|' ${WRKSRC}/configure
59
	@${REINPLACE_CMD} -e 's|/dev/ptmx|/nonexistent|' ${WRKSRC}/configure
Lines 88-101 Link Here
88
	@${ECHO_CMD} User selected named pipes override set.
69
	@${ECHO_CMD} User selected named pipes override set.
89
.endif
70
.endif
90
71
91
ETCDIR?=	${PREFIX}/etc
92
93
post-install:
72
post-install:
73
.if ${PORT_OPTIONS:MEXAMPLES}
94
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
74
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
95
	${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
75
	${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
96
		${STAGEDIR}${EXAMPLESDIR}/screenrc.sample-1
76
		${STAGEDIR}${EXAMPLESDIR}/screenrc.sample-1
97
	${INSTALL_DATA} ${FILESDIR}/screenrc.sample \
77
	${INSTALL_DATA} ${FILESDIR}/screenrc.sample \
98
		${STAGEDIR}${EXAMPLESDIR}/screenrc.sample-2
78
		${STAGEDIR}${EXAMPLESDIR}/screenrc.sample-2
79
.endif
99
	@${MKDIR} ${STAGEDIR}${ETCDIR}
80
	@${MKDIR} ${STAGEDIR}${ETCDIR}
100
.if ${PORT_OPTIONS:MSYSTEM_SCREENRC}
81
.if ${PORT_OPTIONS:MSYSTEM_SCREENRC}
101
	${INSTALL_DATA} ${FILESDIR}/screenrc.sample \
82
	${INSTALL_DATA} ${FILESDIR}/screenrc.sample \
(-)pkg-plist (-3 / +3 lines)
Lines 1-5 Link Here
1
bin/screen
1
bin/screen
2
%%MAN%%man/man1/screen.1.gz
2
%%MANPAGES%%man/man1/screen.1.gz
3
%%DATADIR%%/utf8encodings/01
3
%%DATADIR%%/utf8encodings/01
4
%%DATADIR%%/utf8encodings/02
4
%%DATADIR%%/utf8encodings/02
5
%%DATADIR%%/utf8encodings/03
5
%%DATADIR%%/utf8encodings/03
Lines 21-25 Link Here
21
@comment are installing the the one bundled with source, or the one from
21
@comment are installing the the one bundled with source, or the one from
22
@comment FILESDIR/screenrc.sample
22
@comment FILESDIR/screenrc.sample
23
@sample %%ETCDIR%%/screenrc.sample
23
@sample %%ETCDIR%%/screenrc.sample
24
%%EXAMPLESDIR%%/screenrc.sample-1
24
%%EXAMPLES%%%%EXAMPLESDIR%%/screenrc.sample-1
25
%%EXAMPLESDIR%%/screenrc.sample-2
25
%%EXAMPLES%%%%EXAMPLESDIR%%/screenrc.sample-2

Return to bug 200069