2019-08-11 15:17:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.63 2019/08/11 13:19:08 wiz Exp $
|
1998-07-13 17:50:36 +02:00
|
|
|
|
2016-08-16 02:38:25 +02:00
|
|
|
DISTNAME= Curses-1.36
|
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}
|
2019-08-11 15:17:48 +02:00
|
|
|
PKGREVISION= 3
|
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/}
|
1998-07-13 17:50:36 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2019-06-30 22:14:13 +02:00
|
|
|
HOMEPAGE= https://metacpan.org/release/Curses
|
2003-07-21 18:35:12 +02:00
|
|
|
COMMENT= Perl5 module for terminal screen handling and optimization
|
2017-01-03 17:44:20 +01:00
|
|
|
LICENSE= gnu-gpl-v1 OR artistic
|
1998-07-13 17:50:36 +02:00
|
|
|
|
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
|
|
|
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"
|
2016-07-09 11:47:11 +02:00
|
|
|
# We should really work out the location of the system forms.h
|
2013-10-16 18:27:26 +02:00
|
|
|
SUBST_CLASSES+= h_form
|
2016-07-09 11:47:11 +02:00
|
|
|
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'
|
|
|
|
|
2013-10-16 18:27:26 +02:00
|
|
|
.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"
|
2014-09-22 12:49:57 +02:00
|
|
|
. if ${OPSYS} == "Linux"
|
|
|
|
CURSES_LIBTYPE= ncurses
|
|
|
|
. else
|
2014-04-15 22:57:35 +02:00
|
|
|
CURSES_LIBTYPE= bsd
|
2014-09-22 12:49:57 +02:00
|
|
|
. endif
|
2014-04-15 22:57:35 +02:00
|
|
|
.elif ${CURSES_TYPE} == "ncurses"
|
|
|
|
CURSES_LIBTYPE= ncurses
|
|
|
|
.elif ${CURSES_TYPE} == "ncursesw"
|
|
|
|
CURSES_LIBTYPE= ncursesw
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(CURSES_LIBTYPE)
|
2018-05-14 18:58:33 +02:00
|
|
|
MAKE_ENV+= CURSES_LIBTYPE=${CURSES_LIBTYPE}
|
|
|
|
MAKE_ENV+= CURSES_CFLAGS=${BUILDLINK_INCDIRS.${CURSES_TYPE}:@dir@-I${dir}@:Q}
|
|
|
|
MAKE_ENV+= CURSES_LDFLAGS="-L${BUILDLINK_PREFIX.${CURSES_TYPE}}/lib ${BUILDLINK_LDADD.${CURSES_TYPE}}"
|
2014-04-15 22:57:35 +02:00
|
|
|
.endif
|
|
|
|
|
1998-07-13 18:55:58 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|