freebsd-ports/sysutils/tmux/Makefile
Wen Heping 271057f0f1 - Fix the bug that tmux don't assume \177 as backspace char
PR:		ports/140339
Submitted by:	Anonymous <swell.k@gmail.com>
2010-06-04 01:26:22 +00:00

61 lines
1.3 KiB
Makefile

# New ports collection makefile for: tmux
# Date created: 28 May 2008
# Whom: Wen Heping <wenheping@gmail.com>
#
# $FreeBSD$
#
PORTNAME= tmux
PORTVERSION= 1.2
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= A Terminal Multiplexer
LIB_DEPENDS= event-1.4.3:${PORTSDIR}/devel/libevent
HAS_CONFIGURE= yes
MAN1= tmux.1
PLIST_FILES= bin/tmux
PORTDOCS= CHANGES FAQ NOTES
PORTEXAMPLES= *
CFLAGS+= -I${LOCALBASE}/include
#LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} <= 703100
EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure
.endif
post-patch:
@${REINPLACE_CMD} -e '/^#define HAVE_TREE_H/d' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' \
${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/tmux ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/tmux.1 ${MANPREFIX}/man/man1
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>