Subject: pkgsrc/www/w3m and curses and sysconfdir and mailer
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 05/03/2005 12:57:34
Building pkgsrc/www/w3m failed for me under Linux with:

terms.o(.text+0x14): In function `writestr':
/tmp/pkgsrc/www/w3m/work.montecristo/w3m-0.5.1/terms.c:414: undefined
reference to `tputs'
undefined reference to `tgoto'

I don't see any -lncurses or -ltermcap for the W3M_LIBS.

I tried adding
 .include "../../mk/"
and also
.include "../../devel/ncurses/"
but that didn't help.

And I see that it defaults to --with-termlib=termcap for non-Darwin. Not
all systems have termcap, but our wrapper framework should work to make
ncurses provide though so I guess this is okay.

I also tried --with-termlib=curses too.

Also, the CONF_DIR by default is PREFIX/etc instead of PKG_SYSCONFDIR.

+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}

But then I don't know if ETC_DIR is correct or not for mime.types or

Also, where should mailcap be?
It seems like ETC_DIR "/mailcap" would be better. Or should there be a w3m
specific mailcap?

Also, maybe use MAIL_CMD.

-CONFIGURE_ARGS+=       --with-mailer=Mail
+CONFIGURE_ARGS+=       --with-mailer=${MAIL_CMD}

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links