aboutsummaryrefslogtreecommitdiff
path: root/sysutils/byobu/Makefile
blob: 4a17708893a2729db6e1e9347716618969f9a571 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Gea-Suan Lin <gslin@gslin.org>

PORTNAME=	byobu
PORTVERSION=	5.133
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://launchpad.net/${PORTNAME}/trunk/${PORTVERSION}/+download/
DISTNAME=	${PORTNAME}_${PORTVERSION}.orig

MAINTAINER=	jcoffman@xsecure.io
COMMENT=	Profile and configuration utilities for GNU Screen and/or tmux

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	bash:shells/bash \
		gsed:textproc/gsed

USES=		autoreconf python shebangfix ncurses:port

SHEBANG_FILES=	usr/lib/byobu/include/notify_osd \
		usr/lib/byobu/include/config.py.in \
		usr/lib/byobu/include/select-session.py

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE=	yes

OPTIONS_DEFINE=	DOCS NEWT

OPTIONS_MULTI=	BACKEND
OPTIONS_MULTI_BACKEND=	TMUX SCREEN

OPTIONS_DEFAULT=	DOCS NEWT TMUX

NEWT_DESC=	Python-based windowing toolkit (required for config menu)
NEWT_LIB_DEPENDS=	libnewt.so:devel/newt

TMUX_DESC=	Terminal Multiplexer (byobu default)
TMUX_RUN_DEPENDS=	tmux:sysutils/tmux

SCREEN_DESC=	Multi-screen window manager
SCREEN_RUN_DEPENDS=	screen:sysutils/screen

NO_ARCH=	yes

post-patch:
	${FIND} ${WRKSRC} -type f | ${XARGS} \
		${REINPLACE_CMD} \
			-e "s@/bin/bash@${LOCALBASE}/bin/bash@" \
			-e "s@/usr/bin/python@${PYTHON_CMD}@"
	${REINPLACE_CMD} -e 's,@sysconfdir@/profile.d,$$(datadir)/@PACKAGE@,' \
		${WRKSRC}/etc/profile.d/Makefile.am

.include <bsd.port.mk>