35a7fb99ad
- patch-CursesFun.c is deleted, upstream fixed the problem, see 1.31 part in HISTORY below (upstream) - Update 1.29 to 1.32 ------------------- New in 1.32 (Released August 9, 2014) Makefile.PL: if /usr/include/ncurses/ncurses.h exists, use Ncurses regardless of what the $guess_cfg table says for the OS at hand. This fixes the former hybrid approach which didn't work for a Solaris 11 system that has both Ncurses and BSD curses. Typographical error in documentation fixed. New in 1.31 (Released April 26, 2014) Fix compile failure with some Curses libraries, introduced in 1.29 - undefined KEY_CODE_YES. Fix documentation: wide character functions exist back to Perl 5.6, not 5.16. New in 1.30 (Released April 19, 2014) Fix build failure: Use older substitutes if Perl is too old to have the 'utf8_to_uvchr_buf' function they use; don't include the wide character functions if Perl is even too old to have the substitutes. Broken in 1.29. Fix "constant not provided by your vendor" message when you refer to a function that does not exist in the Curses module. Minor fixes to documentation of new wide character functions. Fix warning about extra argument to c_setmevent . Fix documentation for "not defined in your Curses library" errors. (broken in 1.28). Fix demo programs' recognition of "not defined in your Curses library" errors (broken in 1.28).
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.50 2015/01/29 01:00:26 mef Exp $
|
|
|
|
DISTNAME= Curses-1.32
|
|
PKGNAME= p5-${DISTNAME}
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Curses/}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
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}
|
|
|
|
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"
|
|
. if ${OPSYS} == "Linux"
|
|
CURSES_LIBTYPE= ncurses
|
|
. else
|
|
CURSES_LIBTYPE= bsd
|
|
. endif
|
|
.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"
|