Date: Fri, 29 Feb 2008 08:33:41 -0500 From: Jeffrey Smith <jeffrey.smith@futurecis.com> To: perl@Freebsd.org Subject: devel/p5-Curses Message-ID: <1204292021.6758.33.camel@mrwizard.futurecis.com>
next in thread | raw e-mail | index | archive | help
--=-ZYQ8bw/oLFBYur5GB62C Content-Type: text/plain Content-Transfer-Encoding: 7bit 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> --=-ZYQ8bw/oLFBYur5GB62C Content-Disposition: attachment; filename=Makefile.patch Content-Type: text/x-patch; name=Makefile.patch; charset=us-ascii Content-Transfer-Encoding: 7bit --- 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> --=-ZYQ8bw/oLFBYur5GB62C--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1204292021.6758.33.camel>