summaryrefslogtreecommitdiff
path: root/devel/ncurses/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>1999-07-06 07:51:03 +0000
committerjlam <jlam@pkgsrc.org>1999-07-06 07:51:03 +0000
commit573317f6c010251455bb6b866d89e55e95b56c7c (patch)
tree00d165f562d24abb5b358bb7c378086d61e98556 /devel/ncurses/Makefile
parentdf0757f64ec1da6749323a0aba69d48037281878 (diff)
downloadpkgsrc-573317f6c010251455bb6b866d89e55e95b56c7c.tar.gz
* Update "devel/ncurses" to latest release 4.2.
* Libtoolize library build.
Diffstat (limited to 'devel/ncurses/Makefile')
-rw-r--r--devel/ncurses/Makefile50
1 files changed, 22 insertions, 28 deletions
diff --git a/devel/ncurses/Makefile b/devel/ncurses/Makefile
index 72f1dea7ebb..e536613f20c 100644
--- a/devel/ncurses/Makefile
+++ b/devel/ncurses/Makefile
@@ -1,41 +1,35 @@
-# $NetBSD: Makefile,v 1.19 1999/06/14 00:08:59 cgd Exp $
+# $NetBSD: Makefile,v 1.20 1999/07/06 07:51:03 jlam Exp $
-DISTNAME= ncurses-1.9.9g
+DISTNAME= ncurses-4.2
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/
+MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} \
+ ftp://ftp.clark.net/pub/dickey/ncurses/
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://www.gnu.org/software/ncurses/ncurses.html
-# XXX The following comment is somewhat incorrect. The package will build
-# XXX correctly on alpha, and even build shared libs, but not quite correctly:
-# XXX The shlibs have no SONAME, so references to them from programs
-# XXX will end up being to libfoo.so. This may cause upgrade problems in the
-# XXX future. However, an ncurses binary package appeared e.g. with 1.4,
-# XXX seemingly built from these bits, so it's probably best to just enable
-# XXX it for now. -- cgd 19990613
-#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
+USE_LIBTOOL= yes
+CONFIGURE_ARGS+= --with-normal --without-debug --enable-bsdpad
+MAKE_ENV+= NCURSES_MAJOR="${NCURSES_MAJOR}" \
+ NCURSES_MINOR="${NCURSES_MINOR}"
+
+# Define these here so they can be conveniently changed when ncurses
+# is integrated into the NetBSD source tree.
+#
+NCURSES_MAJOR= 4
+NCURSES_MINOR= 2
post-patch:
- ( cd ${WRKSRC}/man ; ${RM} -f tput.1 tset.1 clear.1 )
+ ${LN} -sf curses.h ${WRKSRC}/include/ncurses.h
+ ( cd ${WRKSRC}/man ; ${RM} -f clear.1 tput.1 tset.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 )
+ ${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 )
+ ${SED} -e '/#include/s/curses.h/ncurses.h/' \
+ <$$i >`basename $$i .3x`.3; \
+ ${RM} -f $$i; done )
.include "../../mk/bsd.pkg.mk"