summaryrefslogtreecommitdiff
path: root/devel/ncurses/Makefile
blob: 15056a52751d8b1f77369969235c1e0f1512be08 (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
# $NetBSD: Makefile,v 1.18 1999/05/24 20:39:38 tv Exp $

DISTNAME=		ncurses-1.9.9g
CATEGORIES=		devel
# XXX this should be moved to ftp.netcom.com:/pub/zm/zmbenhal/ncurses/
# XXX once upgraded to the latest version - hubertf
MASTER_SITES=		ftp://ftp.fu-berlin.de/unix/gnu/ncurses/

MAINTAINER=		hubertf@netbsd.org
HOMEPAGE=		http://www.gnu.org/software/ncurses/ncurses.html

NOT_FOR_PLATFORM=	*-*-alpha	# needs to be libtooled

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-normal --with-shared --enable-bsdpad
WRKSRC=			${WRKDIR}/ncurses_1.9.9g

post-patch:
	( cd ${WRKSRC}/man ; ${RM} -f tput.1 tset.1 clear.1 )
	( cd ${WRKSRC}/man ; for i in *.1m ; do \
	  ${SED} -e '/#include/s/curses.h/ncurses.h/' <$$i >`basename $$i .1m`.1 ; \
	  ${RM} -f $$i ; done )
	( cd ${WRKSRC}/man ; for i in *.3x ; do \
	  ${SED} -e '/#include/s/curses.h/ncurses.h/' <$$i >`basename $$i .3x`.3 ; \
	  ${RM} -f $$i ; done )

post-install:
	${MV} ${PREFIX}/include/curses.h ${PREFIX}/include/ncurses.h
	${RM} -f ${PREFIX}/lib/libcurses.a
	( cd ${PREFIX}/include ; for i in form.h menu.h panel.h ; do \
	  ${SED} '/#include/s|curses.h|ncurses.h|g' $$i >$$i.BAK ; \
	  ${MV} $$i.BAK $$i ; done )

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