summaryrefslogtreecommitdiff
path: root/misc/screen/Makefile
blob: c1b7b3dfdc60854adda6b464fc0db984fd85a10e (plain)
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
# $NetBSD: Makefile,v 1.55 2005/02/21 20:26:12 hubertf Exp $

DISTNAME=	screen-4.0.2
PKGREVISION=	1
CATEGORIES=	misc
MASTER_SITES=	ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
		${MASTER_SITE_GNU:=screen/}

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.gnu.org/software/screen/screen.html
COMMENT=	Multi-screen window manager

PKG_INSTALLATION_TYPES=	overwrite pkgviews

NOT_FOR_PLATFORM=	Interix-*-* # user auth and username size fixes needed

USE_BUILDLINK3=		YES
USE_PKGINSTALL=		YES
INFO_FILES=		screen.info
PLIST_SUBST=		DISTNAME=${DISTNAME}

GNU_CONFIGURE=		# defined
CONFIGURE_ARGS+=	--with-sys-screenrc=${PKG_SYSCONFDIR}/screenrc
CONFIGURE_ARGS+=	--enable-telnet

.include "../../mk/bsd.prefs.mk"

post-patch:
	@for file in etc/etcscreenrc doc/screen.1; do 			\
		${MV} ${WRKSRC}/$$file ${WRKSRC}/$$file.orig;		\
		${SED} ${FILES_SUBST_SED}				\
			${WRKSRC}/$$file.orig > ${WRKSRC}/$$file;	\
	done

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/screen
	${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc			\
		${PREFIX}/share/examples/screen/screenrc
.if ${OPSYS} == "SunOS"
	cd ${WRKSRC}/terminfo &&					\
	${SETENV} TERMINFO=${PREFIX}/share/lib/terminfo			\
		/usr/5bin/tic screeninfo.src
.endif

.include "../../mk/bsd.pkg.mk"