Subject: pkg/20453: new pkgsrc/mk/curses.buildlink2.mk file
To: None <firstname.lastname@example.org>
From: None <email@example.com>
Date: 02/21/2003 00:23:10
>Synopsis: new pkgsrc/mk/curses.buildlink2.mk file
>Arrival-Date: Fri Feb 21 00:24:00 PST 2003
>Release: NetBSD 1.6
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 firstname.lastname@example.org:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Some packages are built using some curses (which may not be included
with the system) but still not registered as a DEPENDS.
This is discussed on tech-pkg.
Build pkgsrc for:
shells/bash2 -- but on some systems uses libtermcap instead
games/defendguin (I packaged that!)
(and probably many others).
and they may depend on ncurses, but ncurses is not registered as
a DEPENDS (so when transfering package to another system
it may not work).
Here is a pkgsrc/mk/curses.buildlink2.mk file and below is
a patch for misc/less. This less build was tested under NetBSD
and my Linux. Under NetBSD it didn't register the ncurses
(which is fine) unless USE_NCURSES was defined.
# This Makefile fragment is included by packages that use a curses.
# If USE_NCURSES is defined or missing system curses header, then it
# will always depend on devel/ncurses.
CURSES_BUILDLINK2_MK= # defined
endif # CURSES_BUILDLINK2_MK
And the patch for misc/less ...
RCS file: /cvsroot/pkgsrc/misc/less/Makefile,v
retrieving revision 1.7
diff -b -u -r1.7 Makefile
--- less/Makefile 2003/02/17 12:54:25 1.7
+++ less/Makefile 2003/02/21 08:15:28
@@ -13,4 +13,5 @@