2014-05-30 01:35:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.46 2014/05/29 23:35:47 wiz Exp $
|
1998-07-13 17:50:36 +02:00
|
|
|
|
2014-04-12 11:00:36 +02:00
|
|
|
DISTNAME= Curses-1.29
|
Update p5-Curses to 1.05. Some changes in the new version:
o Added the missing support functions c_chstrlen, c_Screen2sv.
Oops. :)
o Updated DIAGNOSTICS section of pod.
o Added typedef detection support.
o Rearranged PANELS support a little.
o Removed support for wattr_get, wattr_off, wattr_on, and
wattr_set (for now). I got the prototypes from ncurses-1.9.9g,
but they apparently differ from the "standard" ones.
o Renamed "lines" everywhere, 'cause some curses library writer
was stupid enough to #define it. (Go figure.)
o Reworked "optional" arguments, which only affects newterm(),
panel_above() and panel_below(). Now, if you want to specify
"NULL" as an argument, use "undef" instead of omitting the
argument. (Don't worry if this doesn't make sense. You
probably aren't affected anyway.)
o Added the ncurses "curs_mouse" functions, but I have no idea
if they work. I couldn't even get the C versions to work, so
I had no way of testing them. Feedback on these functions
would be appreciated.
2000-08-28 20:20:37 +02:00
|
|
|
PKGNAME= p5-${DISTNAME}
|
2014-05-30 01:35:13 +02:00
|
|
|
PKGREVISION= 1
|
2001-10-18 17:20:01 +02:00
|
|
|
SVR4_PKGNAME= p5cur
|
1998-07-13 17:50:36 +02:00
|
|
|
CATEGORIES= devel perl5
|
1999-04-15 22:39:38 +02:00
|
|
|
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
|
1998-07-13 17:50:36 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
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/
|
2003-07-21 18:35:12 +02:00
|
|
|
COMMENT= Perl5 module for terminal screen handling and optimization
|
2010-02-23 21:26:24 +01:00
|
|
|
# really it's gnu-gpl-v1+ OR artistic-1.0, but currently we don't have gplv1
|
|
|
|
LICENSE= ${PERL5_LICENSE}
|
1998-07-13 17:50:36 +02:00
|
|
|
|
2004-04-25 05:29:44 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2005-07-13 20:01:18 +02:00
|
|
|
PERL5_PACKLIST= auto/Curses/.packlist
|
1998-07-13 17:50:36 +02:00
|
|
|
|
2013-10-16 18:27:26 +02:00
|
|
|
# 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'
|
Update p5-Curses to 1.05. Some changes in the new version:
o Added the missing support functions c_chstrlen, c_Screen2sv.
Oops. :)
o Updated DIAGNOSTICS section of pod.
o Added typedef detection support.
o Rearranged PANELS support a little.
o Removed support for wattr_get, wattr_off, wattr_on, and
wattr_set (for now). I got the prototypes from ncurses-1.9.9g,
but they apparently differ from the "standard" ones.
o Renamed "lines" everywhere, 'cause some curses library writer
was stupid enough to #define it. (Go figure.)
o Reworked "optional" arguments, which only affects newterm(),
panel_above() and panel_below(). Now, if you want to specify
"NULL" as an argument, use "undef" instead of omitting the
argument. (Don't worry if this doesn't make sense. You
probably aren't affected anyway.)
o Added the ncurses "curs_mouse" functions, but I have no idea
if they work. I couldn't even get the C versions to work, so
I had no way of testing them. Feedback on these functions
would be appreciated.
2000-08-28 20:20:37 +02:00
|
|
|
|
2013-10-16 18:27:26 +02:00
|
|
|
MAKE_PARAMS+= FORMS MENUS
|
1998-07-13 17:50:36 +02:00
|
|
|
|
2002-10-21 01:30:50 +02:00
|
|
|
.include "../../lang/perl5/module.mk"
|
2013-10-16 18:27:26 +02:00
|
|
|
.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
|
|
|
|
|
2014-04-15 22:57:35 +02:00
|
|
|
# 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
|
|
|
|
|
1998-07-13 18:55:58 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|