diff options
author | swills <swills@FreeBSD.org> | 2013-01-21 10:38:35 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2013-01-21 10:38:35 +0800 |
commit | 37929a04e0a36957d89bc933f8763f68f7b85dc1 (patch) | |
tree | 50c116081850dc545345de7574a775078fd24fbd /devel | |
parent | a5681f16d45ff720d3c3f5201309efa3e52e8697 (diff) | |
download | freebsd-ports-gnome-37929a04e0a36957d89bc933f8763f68f7b85dc1.tar.gz freebsd-ports-gnome-37929a04e0a36957d89bc933f8763f68f7b85dc1.tar.zst freebsd-ports-gnome-37929a04e0a36957d89bc933f8763f68f7b85dc1.zip |
- Add an option to support UTF-8
PR: ports/173755
Submitted by: Po-Chien Lin <linpc@cs.nctu.edu.tw>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Curses/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/devel/p5-Curses/Makefile b/devel/p5-Curses/Makefile index 377c5f6bb7d9..4a78065aa830 100644 --- a/devel/p5-Curses/Makefile +++ b/devel/p5-Curses/Makefile @@ -7,6 +7,7 @@ PORTNAME= Curses PORTVERSION= 1.28 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -15,13 +16,24 @@ EXTRACT_SUFX= .tgz MAINTAINER= perl@FreeBSD.org COMMENT= Perl5 module for terminal screen handling and optimization +OPTIONS_DEFINE= NCURSESW +NCURSESW_DESC= Wide-character-capable support by ncursesw library + PERL_CONFIGURE= yes CONFIGURE_ARGS= PANELS MENUS FORMS -CONFIGURE_ENV= CURSES_CFLAGS="-I${WRKSRC}/usr/include/ncurses"\ - CURSES_LDFLAGS="-L/usr/lib/ -lncurses" +CONFIGURE_ENV= CURSES_CFLAGS="-I${WRKSRC}/usr/include/ncurses" MAN3= Curses.3 +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNCURSESW} +CONFIGURE_ENV+= CURSES_LDFLAGS="-L/usr/lib/ -lncursesw" \ + CURSES_LIBTYPE="ncursesw" +.else +CONFIGURE_ENV+= CURSES_LDFLAGS="-L/usr/lib/ -lncurses" +.endif + pre-configure: @${LN} -sf ${WRKSRC}/hints/c-freebsd.ncurses.h \ ${WRKSRC}/c-config.h |