tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Does ncurses really need to depend on groff and ghostscript?



On Tue, 20 Aug 2013 06:42:13 +0900, Paul Ackersviller <pda%sdf.org@localhost> 
wrote:

Another area in current pkgsrc on HP-UX 11.31 I'm having trouble
with is ncurses, but really only because of ghostscript.  That may
be another subject (it seems to GNU linker options hard-coded,
while I only have HP's), but I'd sware ncurses didn't have this many
dependencies a year or two ago.  Is there a better workaround for
this than going back to older pkgsrc?

From configure script, --with-manpage-tbl is optional.
So how about change to be enabled it only builtin `tbl' command exists?

Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/devel/ncurses/Makefile.common,v
retrieving revision 1.19
diff -u -r1.19 Makefile.common
--- Makefile.common     10 May 2013 00:36:30 -0000      1.19
+++ Makefile.common     20 Aug 2013 02:12:48 -0000
@@ -17,7 +17,6 @@

 USE_LANGUAGES=         c c++
 USE_LIBTOOL=           yes
-USE_TOOLS+=            tbl
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-libtool
 CONFIGURE_ARGS+=       --enable-bsdpad
@@ -26,7 +25,6 @@
 CONFIGURE_ARGS+=       --without-ada
 CONFIGURE_ARGS+=       --without-gpm
 CONFIGURE_ARGS+=       --with-manpage-format=normal
-CONFIGURE_ARGS+=       --with-manpage-tbl
 CONFIGURE_ARGS+=       --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR}
 CONFIGURE_ARGS+=       --with-terminfo-dirs=${PREFIX}/${TERMINFODIR}
 CONFIGURE_ARGS+=       --includedir=${PREFIX}/include/ncurses
@@ -40,17 +38,13 @@
 CONFIGURE_ENV+=                ac_cv_path_TIC_PATH=${LOCALBASE}/bin/tic
 .endif

-.if !defined(TOOLS_TBL)
-# This means that groff needs to be built to get tbl(1).
-# We can only build groff if there is a builtin implementation of curses,
-# otherwise we get a circular dependency problem.
-# Additionally, Interix is special, see ../../mk/curses.buildlink3.mk
-.  if !(exists(/usr/include/curses.h) || exists(/usr/include/ncurses.h)) || \
-       ${OPSYS} == "Interix"
-# None was available, so disable use of tbl(1)
-USE_TOOLS:=            ${USE_TOOLS:Ntbl}
+.if defined(TOOLS_PLATFORM.tbl) && !empty(TOOLS_PLATFORM.tbl)
+USE_TOOLS+=            tbl
+CONFIGURE_ARGS+=       --with-manpage-tbl
+.else
+# This means that groff needs to be built to get tbl(1),
+# so disable use of tbl(1)
 CONFIGURE_ARGS+=       --without-manpage-tbl
-.  endif
 .endif

 .if ${OPSYS} == "SunOS"


--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index