blob: faf8413034861d08fed0410b4342373341d15a16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Created by: 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
USES= perl5
USE_PERL5= configure
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>
|