Subject: ncurses & 1.3 [was: Re: CVS commit: pkgsrc]
To: Christoph Badura <bad@oreilly.de>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-pkg
Date: 09/05/1999 04:37:57
yOn Sat, 4 Sep 1999, Christoph Badura wrote:
> >Remove --without-cxx configure option, as noted on tech-pkg a few weeks
> >ago. With this switch on, configure DTRT WRT the "bool" data type, resulting
> >in bizarre compile errors when using ncurses with c++ later:
> Uh, this makes the pkg break again on 1.3.x.  Please fix.

You should have mentioned this when it was asked here if that fix would
break anything. :/

Anyways, I don't have a 1.3 system handy any more, can you please test
this:

--- Makefile    1999/09/04 00:57:48     1.24
+++ Makefile    1999/09/05 02:34:29
@@ -10,9 +10,15 @@
 
 GNU_CONFIGURE=         yes
 USE_LIBTOOL=           yes
-CONFIGURE_ARGS+=       --with-normal --without-debug --enable-bsdpad
 MAKE_ENV+=             NCURSES_MAJOR="${NCURSES_MAJOR}" \
                        NCURSES_MINOR="${NCURSES_MINOR}"
+CONFIGURE_ARGS+=       --with-normal --without-debug --enable-bsdpad
+
+.include "../../mk/bsd.prefs.mk"
+OSREV!=                        uname -r
+.if (${OPSYS} == "NetBSD") && (${OSREV:C/^(...).*$/\1/} == "1.3")
+CONFIGURE_ARGS+=       --without-cxx
+.endif
 
 # Define these here so they can be conveniently changed when ncurses
 # is integrated into the NetBSD source tree.

If that works, feel free to commit this. Thanks!


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra