pkgsrc/devel/p5-Curses/Makefile

60 lines
1.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.46 2014/05/29 23:35:47 wiz Exp $
DISTNAME= Curses-1.29
PKGNAME= p5-${DISTNAME}
PKGREVISION= 1
SVR4_PKGNAME= p5cur
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Curses/}
Update to 1.08b. Closes PR 29583. New in 1.08 (November 2004) - perl.syms more verbose so you can diagnose failures. - You can use environment variables instead of modifying Makefile.PL to set your -I, -L, etc. options for the Curses libraries. - c-linux.ncurses.h hints file includes ncurses.h, not curses.h. - New c-darwin-thread-multi-2level.h hints file. New in 1.07 (September 2004) - Call to Perl_isa_sv() changed to isa_sv() because the former doesn't work on some systems (causes a build failure). New in 1.06 (July 2001) o Now requires perl5.005 or better to run. (You can probably run it in perl5.002-perl5.004 by grabbing newCONSTSUB out of the IO distribution on CPAN and editing all uses of "foreach my $var" in my perl scripts.) o Did lots of fiddling with the file generation in an effort to make it more comprehensible. In doing so, I moved around the way some things were done and probably broke it on some systems with weird compilers. Please let me know. o changed the "Curses->new()" function to be a bit less clever. o Support for libmenu! Many thanks to Yury Pshenichny <yura at zp.ua> who did most of the actual work. Update: Well, sort of support. For some reason beyond my ken, it doesn't work with Solaris (2.6) libmenu. (The items won't attach to the menu.) ncurses menu, both 1.9.9 and 5.2, seem to work fine. o libform support added, too. Ho hum. ;) This one does appear to work with Solaris libform. o Added the following ncurses extension functions: use_default_colors() assume_default_colors() define_key() keybound() keyok() resizeterm() (Thanks to neild at misago.org, hans at kolej.mff.cuni.cz) o Re-enabled the functions: attr_get() attr_off() attr_on() attr_set() o Between the functions supported and the functions listed in the pod as not supported, those are all the ones I know about. Got any more? Let me know. o Fixed 64 bit issue with getch() and possibly others, truncating returns of `chtype' to 32 bits. Note that this could possibly break some OSes. Please let me know. (Thanks to Randall.G.Steiner at bankofamerica.com) o Fixed bug where @ARGV was always being cleared, and so no arguments ever got to MakeMaker. (Thanks to bdlow at nortelnetworks.com) o Added hints for Darwin/Mac OS X system. (Thanks to sdietrich at emlab.com) o Added note to NETBSD users at the bottom of this README. o Added a security notice to the README and pod. (Thanks to connor at ing.umu.se) o Has anyone successfully used the mouse event stuff? pkgsrc: MENUS and FORMS support not enabled because of compilation problems.
2005-03-04 13:09:03 +01:00
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
Update to 1.08b. Closes PR 29583. New in 1.08 (November 2004) - perl.syms more verbose so you can diagnose failures. - You can use environment variables instead of modifying Makefile.PL to set your -I, -L, etc. options for the Curses libraries. - c-linux.ncurses.h hints file includes ncurses.h, not curses.h. - New c-darwin-thread-multi-2level.h hints file. New in 1.07 (September 2004) - Call to Perl_isa_sv() changed to isa_sv() because the former doesn't work on some systems (causes a build failure). New in 1.06 (July 2001) o Now requires perl5.005 or better to run. (You can probably run it in perl5.002-perl5.004 by grabbing newCONSTSUB out of the IO distribution on CPAN and editing all uses of "foreach my $var" in my perl scripts.) o Did lots of fiddling with the file generation in an effort to make it more comprehensible. In doing so, I moved around the way some things were done and probably broke it on some systems with weird compilers. Please let me know. o changed the "Curses->new()" function to be a bit less clever. o Support for libmenu! Many thanks to Yury Pshenichny <yura at zp.ua> who did most of the actual work. Update: Well, sort of support. For some reason beyond my ken, it doesn't work with Solaris (2.6) libmenu. (The items won't attach to the menu.) ncurses menu, both 1.9.9 and 5.2, seem to work fine. o libform support added, too. Ho hum. ;) This one does appear to work with Solaris libform. o Added the following ncurses extension functions: use_default_colors() assume_default_colors() define_key() keybound() keyok() resizeterm() (Thanks to neild at misago.org, hans at kolej.mff.cuni.cz) o Re-enabled the functions: attr_get() attr_off() attr_on() attr_set() o Between the functions supported and the functions listed in the pod as not supported, those are all the ones I know about. Got any more? Let me know. o Fixed 64 bit issue with getch() and possibly others, truncating returns of `chtype' to 32 bits. Note that this could possibly break some OSes. Please let me know. (Thanks to Randall.G.Steiner at bankofamerica.com) o Fixed bug where @ARGV was always being cleared, and so no arguments ever got to MakeMaker. (Thanks to bdlow at nortelnetworks.com) o Added hints for Darwin/Mac OS X system. (Thanks to sdietrich at emlab.com) o Added note to NETBSD users at the bottom of this README. o Added a security notice to the README and pod. (Thanks to connor at ing.umu.se) o Has anyone successfully used the mouse event stuff? pkgsrc: MENUS and FORMS support not enabled because of compilation problems.
2005-03-04 13:09:03 +01:00
HOMEPAGE= http://search.cpan.org/dist/Curses/
COMMENT= Perl5 module for terminal screen handling and optimization
# really it's gnu-gpl-v1+ OR artistic-1.0, but currently we don't have gplv1
LICENSE= ${PERL5_LICENSE}
PKG_INSTALLATION_TYPES= overwrite pkgviews
PERL5_PACKLIST= auto/Curses/.packlist
# We should really work out the location of the system forms.h
SUBST_STAGE.h_form = post-configure
SUBST_MESSAGE.h_form = Hard wiring form.h
SUBST_FILES.h_form = c-config.h
SUBST_SED.h_form = -e 's,<form.h>,"/usr/include/form.h",g'
MAKE_PARAMS+= FORMS MENUS
.include "../../lang/perl5/module.mk"
.include "../../mk/curses.buildlink3.mk"
.if ${CURSES_TYPE} == "curses"
SUBST_CLASSES+= h_form
.elif ${CURSES_TYPE} == "ncurses" || ${CURSES_TYPE} == "ncursesw"
MAKE_PARAMS+= PANELS
# Don't link to system termcap as we're using ncurses
BUILDLINK_TRANSFORM+= rm:-ltermcap
# Use the FreeBSD ncurses config as that works fine for pkgsrc
pre-configure:
${LN} -sf ${WRKSRC}/hints/c-freebsd.ncurses.h ${WRKSRC}/c-config.h
.endif
# Pass appropriate CURSES_LIBTYPE so Curses will link to the matching panel/menu/form library
.if ${CURSES_TYPE} == "curses"
CURSES_LIBTYPE= bsd
.elif ${CURSES_TYPE} == "ncurses"
CURSES_LIBTYPE= ncurses
.elif ${CURSES_TYPE} == "ncursesw"
CURSES_LIBTYPE= ncursesw
.endif
.if defined(CURSES_LIBTYPE)
MAKE_ENV+= CURSES_LIBTYPE=${CURSES_LIBTYPE}
MAKE_ENV+= CURSES_CFLAGS=${BUILDLINK_INCDIRS.${CURSES_TYPE}:S/^/-I/}
MAKE_ENV+= CURSES_LDFLAGS=${BUILDLINK_LDADD.${CURSES_TYPE}}
.endif
.include "../../mk/bsd.pkg.mk"