freebsd-ports/devel/tig/Makefile
Sunpoet Po-Chuan Hsieh 0518c5b9db - Update to 0.16.2
- Add LICENSE

PR:		ports/151302
Submitted by:	Denise H. G. <darcsis@gmail.com> (maintainer)
Approved by:	pgollucci (mentor, implicit)
2010-10-09 04:19:48 +00:00

48 lines
1 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.16.2
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
LICENSE= GPLv2
MAN1= tig.1
MAN5= tigrc.5
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>