devel/p5-Curses
Jeffrey Smith
jeffrey.smith at futurecis.com
Fri Feb 29 14:00:23 UTC 2008
On a wim I decided to play with curses. The only tutorial I found was
for C, and I was adapting that to perl. I noticed on the build from
ports that menus, panels and forms were disabled, and I didn't seem to
understand why. This is a patch to the Makefile so it builds these
extensions, there doesn't seem to be any run time problems with them.
All of the demo files run. This may not be the best solution but I was
hoping that it can make it into the port somehow.
Thank you
Jeff
--- Makefile 2008-02-28 22:08:10.000000000 -0500
+++ Makefile 2008-02-28 23:21:49.000000000 -0500
@@ -16,11 +16,23 @@
COMMENT= Perl5 module for terminal screen handling and optimization
PERL_CONFIGURE= yes
+CONFIGURE_ARGS= PANELS MENUS FORMS
+CONFIGURE_ENV= CURSES_CFLAGS="-I${WRKSRC}/usr/include/ncurses"\
+ CURSES_LDFLAGS="-L/usr/lib/ -lncurses"
MAN3= Curses.3
pre-configure:
@${LN} -sf ${WRKSRC}/hints/c-freebsd.ncurses.h \
${WRKSRC}/c-config.h
+ @${MKDIR} -p ${WRKSRC}/usr/include/ncurses
+ @${LN} -sf /usr/include/curses.h \
+ ${WRKSRC}/usr/include/ncurses/ncurses.h
+ @${LN} -sf /usr/include/panel.h \
+ ${WRKSRC}/usr/include/ncurses
+ @${LN} -sf /usr/include/menu.h \
+ ${WRKSRC}/usr/include/ncurses
+ @${LN} -sf /usr/include/form.h \
+ ${WRKSRC}/usr/include/ncurses
.include <bsd.port.mk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.patch
Type: text/x-patch
Size: 829 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-perl/attachments/20080229/068b3ee2/Makefile.bin
More information about the freebsd-perl
mailing list