1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/devel/p5-Curses/Makefile
2014-08-11 20:05:02 +00:00

39 lines
978 B
Makefile

# Created by: James FitzGibbon <jfitz@FreeBSD.org>
# $FreeBSD$
PORTNAME= Curses
PORTVERSION= 1.32
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
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
USES= perl5 tar:tgz
USE_PERL5= configure
CONFIGURE_ARGS= PANELS MENUS FORMS
CONFIGURE_ENV= CURSES_CFLAGS="-I${WRKSRC}/usr/include/ncurses"
.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>