blob: 86891555f53b12a144c32f87c59421a1bce58445 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# $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/}
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}
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"
|