1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/devel/p5-Curses/Makefile
Steve Wills a5d8a34190 - Add an option to support UTF-8
PR:		ports/173755
Submitted by:	Po-Chien Lin <linpc@cs.nctu.edu.tw>
2013-01-21 02:38:35 +00:00

46 lines
1.1 KiB
Makefile

# New ports collection makefile for: p5-Curses
# Date created: October 17th 1996
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Curses
PORTVERSION= 1.28
PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
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"
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
@${MKDIR} ${WRKSRC}/usr/include/ncurses
.for i in form.h ncurses.h menu.h panel.h
@${LN} -fs /usr/include/${i} ${WRKSRC}/usr/include/ncurses/${i}
.endfor
.include <bsd.port.mk>