# $NetBSD: Makefile,v 1.21 2001/02/17 17:22:44 wiz Exp $ DISTNAME= w3m-0.1.11-pre PKGNAME= w3m-0.1.10.pre11 CATEGORIES= www MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/dev/ MAINTAINER= tech-pkg-ja@jp.netbsd.org HOMEPAGE= http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/ COMMENT= Terminal-based WWW browser with HTML tables and frames support DEPENDS= boehm-gc>=5:../../devel/boehm-gc HELPDIR= share/doc/w3m HELPERDIR= lib/w3m HAS_CONFIGURE= yes # configure will check IPv6 readiness automatically BUILD_DEFS+= USE_INET6 .include "../../mk/bsd.prefs.mk" .if defined(EXTRACT_USING_PAX) EXTRACT_ELEMENTS= -c ${DISTNAME}/gc/\* .else EXTRACT_ELEMENTS= --exclude ${DISTNAME}/gc/\* .endif # Set this to NO for ISO-8859-1 support (exclusive to Japanese). W3M_USE_JAPANESE?= YES # Set this to YES if you want to use Japanese symbol/messages. W3M_USE_JAPANESE_SYMBOL?=NO # Set this to YES to use lynx like key binding. W3M_USE_LYNX_KEY?= NO # set this to YES if you want HTTPS support. W3M_USE_SSL?= YES # set this to YES if you want HTTP cookie support. W3M_USE_COOKIE?= YES # set this to YES if you want mouse support. W3M_USE_MOUSE?= NO # set this to YES if you want color support. W3M_USE_COLOR?= NO .if defined(W3M_USE_COLOR) && ${W3M_USE_COLOR} == YES CONFIGURE_ENV+= use_color=y .else CONFIGURE_ENV+= use_color=n .endif .if defined(W3M_USE_MOUSE) && ${W3M_USE_MOUSE} == YES CONFIGURE_ENV+= use_mouse=y .else CONFIGURE_ENV+= use_mouse=n .endif .if defined(W3M_USE_COOKIE) && ${W3M_USE_COOKIE} == YES CONFIGURE_ENV+= use_cookie=y .else CONFIGURE_ENV+= use_cookie=n .endif .if defined(W3M_USE_SSL) && ${W3M_USE_SSL} == YES USE_SSL= YES CONFIGURE_ENV+= use_ssl=y use_ssl_verify=n .else CONFIGURE_ENV+= use_ssl=n use_ssl_verify=n .endif .if defined(W3M_USE_JAPANESE) && ${W3M_USE_JAPANESE} == YES CONFIGURE_ENV+= def_lg=1 CONFIGURE_ENV+= def_dcode=n .else CONFIGURE_ENV+= def_lg=2 .endif .if defined(W3M_USE_JAPANESE_SYMBOL) && ${W3M_USE_JAPANESE_SYMBOL} == YES CONFIGURE_ENV+= kanji_symbols=y HELP_LANG= _ja .else CONFIGURE_ENV+= kanji_symbols=n HELP_LANG= _en .endif .if defined(W3M_USE_LYNX_KEY) && ${W3M_USE_LYNX_KEY} == YES CONFIGURE_ENV+= lynx_key=y HELP_W3M= -lynx .else CONFIGURE_ENV+= lynx_key=n HELP_W3M= -w3m .endif CONFIGURE_ENV+= def_bindir=${LOCALBASE}/bin CONFIGURE_ENV+= def_libdir=${LOCALBASE}/${HELPERDIR} CONFIGURE_ENV+= def_helpdir=${LOCALBASE}/${HELPDIR} CONFIGURE_ENV+= use_menu=n use_matrix=n CONFIGURE_ENV+= ded=vi dmail=Mail dbrowser= CONFIGURE_ENV+= dcc="${CC}" dtermlib="-ltermcap" CONFIGURE_ENV+= dldflags="-Wl,-rpath,${LOCALBASE}/lib -L${LOCALBASE}/lib" CONFIGURE_ENV+= dmodel=6 CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}" post-extract: @(cd ${WRKSRC}/doc; ${RM} -fr CVS) @(cd ${WRKSRC}/doc-jp; ${RM} -fr CVS) # do not look at previous configuration pre-configure: ${RM} ${WRKSRC}/config.param do-configure: @yes '' | (cd ${WRKSRC} && CC="${CC}" ac_cv_path_CC="${CC}" \ INSTALL="${INSTALL_SCRIPT}" \ CFLAGS="${CFLAGS}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}) pre-build: @(cd ${WRKSRC}; \ ${MAKE} XXMakefile; \ ${MV} XXMakefile XXMakefile.gen; \ ${SED} -e '/^GCLIB/s|gc/gc.a|-lgc|' -e '/^GCTARGET/s|gc/gc.a||' \ XXMakefile.gen > XXMakefile) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/w3m ${LOCALBASE}/bin ${INSTALL_MAN} ${WRKSRC}/doc/w3m.1 ${LOCALBASE}/man/man1 ${INSTALL_MAN} ${WRKSRC}/doc-jp/w3m.1 ${LOCALBASE}/man/ja_JP.EUC/man1 ${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPDIR} ${INSTALL_DATA} ${WRKSRC}/w3mhelp-w3m_en.html ${LOCALBASE}/${HELPDIR} ${INSTALL_DATA} ${WRKSRC}/w3mhelp-w3m_ja.html ${LOCALBASE}/${HELPDIR} ${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_en.html ${LOCALBASE}/${HELPDIR} ${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_ja.html ${LOCALBASE}/${HELPDIR} # Use pax to discard uid/gid (cd ${WRKSRC}; ${PAX} -w doc doc-jp) | \ (cd ${LOCALBASE}/${HELPDIR}; ${PAX} -r) ${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPERDIR} ${INSTALL_PROGRAM} ${WRKSRC}/w3mbookmark ${LOCALBASE}/${HELPERDIR} ${INSTALL_PROGRAM} ${WRKSRC}/w3mhelperpanel ${LOCALBASE}/${HELPERDIR} post-install: (cd ${LOCALBASE}/${HELPDIR}; \ ${RM} -f w3mhelp.html; \ ${LN} -s w3mhelp${HELP_W3M}${HELP_LANG}.html w3mhelp.html) .include "../../mk/bsd.pkg.mk"