1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/devel/tig/Makefile
Rong-En Fan 0cd7cfe816 - Update to 0.10.1
- Conditionally depends on ncurses for wide character support

PR:		ports/121950
Submitted by:	Denise H. G. <darcsis at gmail.com> (maintainer)
2008-03-23 08:17:20 +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.10.1
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>