aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-02-05 23:30:38 +0800
committermarino <marino@FreeBSD.org>2016-02-05 23:30:38 +0800
commit3b4b6bfba9b8418c8157f5e974ab18a66f07e2d5 (patch)
tree8cb3c555ab4ecb6d9e08c878ab3f20643586817e /chinese
parentfbc05ae2d29a2a16dd4b6cda4b1202c1190c5c5f (diff)
downloadfreebsd-ports-graphics-3b4b6bfba9b8418c8157f5e974ab18a66f07e2d5.tar.gz
freebsd-ports-graphics-3b4b6bfba9b8418c8157f5e974ab18a66f07e2d5.tar.zst
freebsd-ports-graphics-3b4b6bfba9b8418c8157f5e974ab18a66f07e2d5.zip
chinese/cless: USES+= ncurses, link to libncurses, not libtermcap
Diffstat (limited to 'chinese')
-rw-r--r--chinese/cless/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/chinese/cless/Makefile b/chinese/cless/Makefile
index 8151a590703..2fb9525345f 100644
--- a/chinese/cless/Makefile
+++ b/chinese/cless/Makefile
@@ -11,12 +11,16 @@ COMMENT= Better pager utility (and it speaks Chinese)
LICENSE= BSD2CLAUSE
+USES= ncurses
GNU_CONFIGURE= yes
CFLAGS+= -DHANZI # LDFLAGS=-s datadir=/usr/local/lib/less
CPP= #
OPTIONS_DEFINE= DOCS
+post-patch:
+ @${REINPLACE_CMD} -e 's|-ltermcap|-lncurses|' ${WRKSRC}/configure
+
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.CLESS ${STAGEDIR}${DOCSDIR}