openbsd-ports/www/w3m/Makefile
naddy d33058c6c2 Update to 0.2.2; w3m is now hosted on SourceForge.
Radical pruning to make this port manageable again:
- Remove image and m17n flavors.  The corresponding functionality
  may eventually return in some other form.
- Rename kanji flavor to "japanese".
2001-11-16 21:35:44 +00:00

65 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.31 2001/11/16 21:35:44 naddy Exp $
ONLY_FOR_ARCHS= i386 sparc m68k
COMMENT= "text-based web browser/pager"
COMMENT-japanese= "Japanese text-based web browser/pager"
DISTNAME= w3m-0.2.2
CATEGORIES= www
NEED_VERSION= 1.498
HOMEPAGE= http://w3m.sourceforge.net/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= w3m
FLAVORS= japanese
FLAVOR?=
CONFIGURE_STYLE= simple
CONFIGURE_ARGS= -nonstop -prefix="${PREFIX}" -cflags="${CFLAGS}" \
-model=monster
CONFIGURE_ENV= use_nntp=y use_ssl_verify=y \
dmail=mail ded=vi dbrowser=lynx dcc="${CC}" \
dtermlib="${TERMLIB}" def_helpdir="${PREFIX}/share/w3m" \
def_libdir="${PREFIX}/libexec/w3m"
DOCS= FAQ.html HISTORY MANUAL.html \
README README.dict README.func STORY.html \
keymap.default keymap.lynx menu.default menu.submenu
.if ${FLAVOR:L:Mjapanese}
FULLPKGNAME= ja-${PKGNAME}
CATEGORIES+= japanese
CONFIGURE_ARGS+= -lang=ja -code=n
DOCS+= README.SSL README.cookie README.keymap \
README.mailcap README.menu
DOCSRC= ${WRKSRC}/doc-jp
.else
CONFIGURE_ARGS+= -lang=en
DOCSRC= ${WRKSRC}/doc
.endif
pre-build:
@cd ${WRKBUILD}/gc; ${MAKE_PROGRAM} clean
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/w3m
${INSTALL_MAN} ${WRKSRC}/doc/w3m.1 ${PREFIX}/man/man1
cd ${DOCSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/w3m
NO_REGRESS= Yes
.include <bsd.port.mk>