summaryrefslogtreecommitdiff
path: root/devel/ncurses/Makefile
blob: e09727fc8163fc4bb2eaad8d7f7a24e4c356c502 (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
60
61
62
63
64
65
66
67
# $NetBSD: Makefile,v 1.44 2003/03/31 16:20:01 bouyer Exp $

DISTNAME=		ncurses-${NC_VERS}
NC_VERS=		5.3
CATEGORIES=		devel
MASTER_SITES=		${MASTER_SITE_GNU:=ncurses/} \
			ftp://dickey.his.com/ncurses/ \
			ftp://dickey.his.com/ncurses/${NC_VERS}/

MAINTAINER=		jlam@netbsd.org
HOMEPAGE=		http://dickey.his.com/ncurses/ncurses.html
COMMENT=		CRT screen handling and optimization package

USE_LIBTOOL=		YES
USE_BUILDLINK2=		YES

GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--with-libtool
CONFIGURE_ARGS+=	--enable-bsdpad
CONFIGURE_ARGS+=	--enable-overwrite
CONFIGURE_ARGS+=	--with-cxx-binding
CONFIGURE_ARGS+=	--without-ada
CONFIGURE_ARGS+=	--without-curses-h
CONFIGURE_ARGS+=	--without-gpm
CONFIGURE_ARGS+=	--with-manpage-format=normal
CONFIGURE_ARGS+=	--with-manpage-tbl

.include "../../mk/bsd.prefs.mk"

.if (${OPSYS} == SunOS)
PLIST_SUBST+=	NOT_SUNOS="@comment "
TERMINFO_SRC=	${WRKSRC}/misc/terminfo.src
TERMINFODIR=	share/lib/terminfo
.else
PLIST_SUBST+=	NOT_SUNOS=""
TERMINFODIR=	share/terminfo
.endif

PLIST_SUBST+=	TERMINFODIR="${TERMINFODIR}"

CONFIGURE_ARGS+=	--with-default-terminfo-dir=${PREFIX}/${TERMINFODIR}
CONFIGURE_ARGS+=	--with-terminfo-dirs=${PREFIX}/${TERMINFODIR}

# Remove these manpages from the distribution so they won't get installed
CURSES_NO_MAN=		clear.1 tput.1 tset.1

post-configure:
	cd ${WRKSRC}/man;					\
	${RM} -f ${CURSES_NO_MAN};				\
	for f in *.1m; do					\
		${MV} -f $${f} `basename $${f} .1m`.1; 	\
	done;							\
	for f in *.3x; do					\
		${MV} -f $${f} `basename $${f} .3x`.3; 	\
	done
.if (${OPSYS} == SunOS)
	${MV} ${TERMINFO_SRC} ${TERMINFO_SRC}.old
	${SED} -e "/^screen|/,/^$$/d"  -e "/^screen-w|/,/^$$/d" \
	    -e "/^screen.teraterm|/,/^$$/d" \
	   <${TERMINFO_SRC}.old >${TERMINFO_SRC}
.endif

post-install:
	${INSTALL_DATA} ${WRKSRC}/c++/demo.cc \
		${PREFIX}/share/examples/ncurses++demo.cc

.include "../../mk/bsd.pkg.mk"