From owner-freebsd-perl@FreeBSD.ORG Fri Feb 29 14:00:23 2008 Return-Path: Delivered-To: perl@Freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD25C106566C for ; Fri, 29 Feb 2008 14:00:23 +0000 (UTC) (envelope-from jeffrey.smith@futurecis.com) Received: from mail1.futurecis.com (static-72-66-21-14.washdc.fios.verizon.net [72.66.21.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3E9A38FC1A for ; Fri, 29 Feb 2008 14:00:22 +0000 (UTC) (envelope-from jeffrey.smith@futurecis.com) Received: (qmail 25556 invoked from network); 29 Feb 2008 13:31:13 -0000 Received: from unknown (HELO [10.0.0.44]) ([10.0.0.44]) (envelope-sender ) by mail1.futurecis.com (qmail-ldap-1.03) with SMTP for ; 29 Feb 2008 13:31:13 -0000 From: Jeffrey Smith To: perl@Freebsd.org Content-Type: multipart/mixed; boundary="=-ZYQ8bw/oLFBYur5GB62C" Organization: FutureCIS Date: Fri, 29 Feb 2008 08:33:41 -0500 Message-Id: <1204292021.6758.33.camel@mrwizard.futurecis.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Cc: Subject: devel/p5-Curses X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 14:00:23 -0000 --=-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 --=-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 --=-ZYQ8bw/oLFBYur5GB62C--