aboutsummaryrefslogtreecommitdiff
path: root/devel/tig
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-03-23 08:17:20 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-03-23 08:17:20 +0000
commit0cd7cfe816b47ff7f7ecd11474d8a00e7615aa1f (patch)
treef36a97d46b6e8dbbe0916478971d50ec42d12eec /devel/tig
parent0bafb6084bf91cc8038e75a58baef5e4b961032b (diff)
downloadports-0cd7cfe816b47ff7f7ecd11474d8a00e7615aa1f.tar.gz
ports-0cd7cfe816b47ff7f7ecd11474d8a00e7615aa1f.zip
Notes
Diffstat (limited to 'devel/tig')
-rw-r--r--devel/tig/Makefile16
-rw-r--r--devel/tig/distinfo6
2 files changed, 17 insertions, 5 deletions
diff --git a/devel/tig/Makefile b/devel/tig/Makefile
index c3c8c58d96e3..3dce59dec173 100644
--- a/devel/tig/Makefile
+++ b/devel/tig/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= tig
-PORTVERSION= 0.10
+PORTVERSION= 0.10.1
CATEGORIES= devel
MASTER_SITES= http://jonas.nitro.dk/tig/releases/
@@ -32,4 +32,16 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}rc.5 ${MANPREFIX}/man/man5
-.include <bsd.port.mk>
+.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>
diff --git a/devel/tig/distinfo b/devel/tig/distinfo
index e1610f01d201..6b06bd8b844d 100644
--- a/devel/tig/distinfo
+++ b/devel/tig/distinfo
@@ -1,3 +1,3 @@
-MD5 (tig-0.10.tar.gz) = cea0c80cfe1575510ceaba81669363ce
-SHA256 (tig-0.10.tar.gz) = bdbb05e4b1c15c0f630f620a75a7fff5c3fb4dc7e8c9fbc780e489f3da77c08b
-SIZE (tig-0.10.tar.gz) = 102920
+MD5 (tig-0.10.1.tar.gz) = ff2c0c3d34b52a665421684d1fe7c221
+SHA256 (tig-0.10.1.tar.gz) = 728950a15b3b39b5131f6da0f4cdd8f8e1dddcfc3b46b0d8cccd92d848bc3b0d
+SIZE (tig-0.10.1.tar.gz) = 104006