Subject: pkgsrc/www/w3m and curses and sysconfdir and mailer
To: None <kei@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
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'
...
terms.o(.text+0x2933):/tmp/pkgsrc/www/w3m/work.montecristo/w3m-0.5.1/terms.c:1395:
undefined reference to `tgoto'
I don't see any -lncurses or -ltermcap for the W3M_LIBS.
I tried adding
.include "../../mk/curses.buildlink3.mk"
and also
.include "../../devel/ncurses/buildlink3.mk"
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.
Maybe:
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
But then I don't know if ETC_DIR is correct or not for mime.types or
urimethodmap.
Also, where should mailcap be?
SYS_MAILCAP CONF_DIR "/mailcap"
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
http://www.bsdnewsletter.com/