pkgsrc/misc/screen/Makefile

68 lines
1.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.83 2010/05/07 12:02:43 jmmv Exp $
DISTNAME= screen-4.0.3
PKGREVISION= 4
CATEGORIES= misc shells
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
http://people.freebsd.org/~cy/distfiles/
# ${MASTER_SITE_GNU:=screen/}
2005-02-21 23:37:03 +01:00
MAINTAINER= kim@tac.nyc.ny.us
HOMEPAGE= http://www.gnu.org/software/screen/screen.html
COMMENT= Multi-screen window manager
2009-10-30 13:02:46 +01:00
LICENSE= gnu-gpl-v2
2004-01-05 12:53:39 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
2006-11-02 18:59:37 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
2004-01-05 12:53:39 +01:00
.include "options.mk"
NOT_FOR_PLATFORM= Interix-*-* # user auth and username size fixes needed
PLIST_SUBST+= DISTNAME=${DISTNAME:Q}
2005-09-28 21:35:36 +02:00
GNU_CONFIGURE= yes
2002-11-15 00:24:23 +01:00
CONFIGURE_ARGS+= --with-sys-screenrc=${PKG_SYSCONFDIR}/screenrc
CONFIGURE_ARGS+= --enable-telnet
PKG_SHELL= bin/screen
2007-05-24 01:49:24 +02:00
INFO_FILES= YES
.include "../../mk/bsd.prefs.mk"
2002-11-15 00:24:23 +01:00
2006-01-19 03:01:18 +01:00
SUBST_CLASSES+= paths
SUBST_FILES.paths= etc/etcscreenrc doc/screen.1
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
SUBST_SED.paths+= -e 's,@EXAMPLES@,${PREFIX}/share/examples/screen,g'
SUBST_STAGE.paths= post-patch
PLIST_VARS+= terminfo
.if (${OPSYS} == "SunOS") && exists(/usr/5bin/tic)
2006-09-21 22:23:38 +02:00
INSTALLATION_DIRS+= share/lib/terminfo
PLIST.terminfo= yes
post-install: screen-terminfo
.endif
.if empty(UNPRIVILEGED:M[Yy][Ee][Ss])
SPECIAL_PERMS+= bin/${DISTNAME} ${SETUID_ROOT_PERMS}
.endif
post-install:
2006-11-02 18:59:37 +01:00
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/screen
2002-11-15 00:24:23 +01:00
${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
2006-11-02 18:59:37 +01:00
${DESTDIR}${PREFIX}/share/examples/screen/etcscreenrc
${INSTALL_DATA} ${WRKSRC}/etc/screenrc \
2006-11-02 18:59:37 +01:00
${DESTDIR}${PREFIX}/share/examples/screen/screenrc
.if !empty(UNPRIVILEGED:M[Yy][Ee][Ss])
chmod -s ${DESTDIR}${PREFIX}/bin/${DISTNAME}
.endif
.PHONY: screen-terminfo
screen-terminfo:
2002-11-15 00:24:23 +01:00
cd ${WRKSRC}/terminfo && \
2008-06-06 19:14:01 +02:00
${SETENV} TERMINFO=${DESTDIR}${PREFIX}/share/lib/terminfo \
2002-11-15 00:24:23 +01:00
/usr/5bin/tic screeninfo.src
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"