freebsd-ports/devel/tig/Makefile
Philippe Audeoud 13cbbd02e1 - Update to 0.12
PR:		ports/127706
Submitted by:	Denise H. G. <darcsis _AT_ gmail _DOT_ com> (maintainer)
2008-09-29 13:32:04 +00:00

48 lines
1.0 KiB
Makefile

# New ports collection makefile for: tig
# Date created: 18 Mar 2008
# Whom: Denise H. G. <darcsis@gmail.com>
#
# $FreeBSD$
#
PORTNAME= tig
PORTVERSION= 0.12
CATEGORIES= devel
MASTER_SITES= http://jonas.nitro.dk/tig/releases/
MAINTAINER= darcsis@gmail.com
COMMENT= Text-mode interface for git
RUN_DEPENDS= git:${PORTSDIR}/devel/git
MAN1= tig.1
MAN5= tigrc.5
MANCOMPRESSED= no
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libiconv=${LOCALBASE}
USE_GMAKE= yes
USE_ICONV= yes
PLIST_FILES= bin/tig
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}rc.5 ${MANPREFIX}/man/man5
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 602107
LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/ncurses" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
post-patch:
@${REINPLACE_CMD} -e 's/<curses.h>/<ncurses.h>/' ${WRKSRC}/tig.c
.endif
.include <bsd.port.post.mk>