svn commit: r310731 - head/devel/p5-Curses

Steve Wills swills at FreeBSD.org
Mon Jan 21 02:38:36 UTC 2013


Author: swills
Date: Mon Jan 21 02:38:35 2013
New Revision: 310731
URL: http://svnweb.freebsd.org/changeset/ports/310731

Log:
  - Add an option to support UTF-8
  
  PR:		ports/173755
  Submitted by:	Po-Chien Lin <linpc at cs.nctu.edu.tw>

Modified:
  head/devel/p5-Curses/Makefile   (contents, props changed)

Modified: head/devel/p5-Curses/Makefile
==============================================================================
--- head/devel/p5-Curses/Makefile	Mon Jan 21 02:32:06 2013	(r310730)
+++ head/devel/p5-Curses/Makefile	Mon Jan 21 02:38:35 2013	(r310731)
@@ -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 at 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


More information about the svn-ports-head mailing list