2007-01-30 19:54:44 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.44 2007/01/30 18:54:44 joerg Exp $
|
2002-05-10 08:27:22 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= w3m-${W3M_VERS}
|
|
|
|
CATEGORIES= www
|
2004-04-18 14:08:42 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=w3m/}
|
2002-05-10 08:27:22 +02:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= kei@NetBSD.org
|
2004-04-18 14:08:42 +02:00
|
|
|
HOMEPAGE= http://w3m.sourceforge.net/
|
2002-05-10 08:27:22 +02:00
|
|
|
|
2004-04-18 14:08:42 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2002-05-10 08:27:22 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake # Needed for some combinations of options...
|
2007-01-30 19:54:44 +01:00
|
|
|
USE_TOOLS+= msgfmt
|
2002-05-10 08:27:22 +02:00
|
|
|
|
2004-06-24 11:17:34 +02:00
|
|
|
W3M_VERS= 0.5.1
|
2002-05-10 08:27:22 +02:00
|
|
|
|
2004-05-14 10:42:29 +02:00
|
|
|
# For w3mman, xface2xpm, cgi scripts.
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2002-05-10 18:51:02 +02:00
|
|
|
|
2004-04-18 14:08:42 +02:00
|
|
|
DOCDIR= share/doc/w3m
|
2002-05-29 15:58:56 +02:00
|
|
|
|
2004-04-18 14:08:42 +02:00
|
|
|
_W3M_USE_IMAGE?= NO
|
|
|
|
|
2005-06-03 21:22:20 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2005-06-02 20:24:18 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-03-28 21:28:56 +01:00
|
|
|
.if ${OPSYS} == "Darwin"
|
2004-04-18 14:08:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-termlib=curses
|
2005-05-05 22:50:49 +02:00
|
|
|
.elif ${OPSYS} == "Linux"
|
|
|
|
.include "../../mk/curses.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-termlib=ncurses
|
2003-02-09 12:59:16 +01:00
|
|
|
.else
|
2004-04-18 14:08:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-termlib=termcap
|
2003-02-09 12:59:16 +01:00
|
|
|
.endif
|
2004-04-18 14:08:42 +02:00
|
|
|
|
|
|
|
# Configurable by environment variables at run-time.
|
|
|
|
CONFIGURE_ARGS+= --with-charset=US-ASCII
|
|
|
|
|
|
|
|
# This *should* be set at run-time.
|
|
|
|
CONFIGURE_ARGS+= --disable-messagel10n
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --disable-help_cgi
|
|
|
|
CONFIGURE_ARGS+= --enable-color
|
|
|
|
CONFIGURE_ARGS+= --enable-cookie
|
|
|
|
CONFIGURE_ARGS+= --enable-mouse
|
|
|
|
CONFIGURE_ARGS+= --with-browser=
|
|
|
|
CONFIGURE_ARGS+= --with-editor=vi
|
|
|
|
CONFIGURE_ARGS+= --with-gc=${BUILDLINK_PREFIX.boehm-gc}
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mailer=${MAIL_CMD:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2004-04-18 14:08:42 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= man-ja
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.man-ja= Fixing the path to Japanese manual pages.
|
2004-04-18 14:08:42 +02:00
|
|
|
SUBST_STAGE.man-ja= post-patch
|
|
|
|
SUBST_FILES.man-ja= Makefile.in config.h.dist
|
|
|
|
SUBST_SED.man-ja= -e 's|/ja/|/ja_JP.eucJP/|g'
|
|
|
|
|
2002-05-10 08:27:22 +02:00
|
|
|
post-extract:
|
2003-02-27 03:31:27 +01:00
|
|
|
@cd ${WRKSRC}/doc; ${RM} -fr CVS
|
|
|
|
@cd ${WRKSRC}/doc-jp; ${RM} -fr CVS
|
|
|
|
@cd ${WRKSRC}; ${RM} -fr gc
|
2002-05-10 08:27:22 +02:00
|
|
|
|
|
|
|
post-patch:
|
2004-01-27 01:53:10 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f -name '*.orig' -print | ${XARGS} ${RM}
|
2002-05-10 08:27:22 +02:00
|
|
|
|
|
|
|
post-install:
|
2004-04-18 14:08:42 +02:00
|
|
|
# Install help files.
|
|
|
|
@cd ${WRKSRC}; ${MAKE_PROGRAM} install-helpfile
|
|
|
|
# Use ${PAX} to discard uid/gid. Exclude manuals (*.1).
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
|
|
|
|
@cd ${WRKSRC}; ${PAX} -w -s ',.*\.1$$,,' doc doc-jp | \
|
|
|
|
( cd ${PREFIX}/${DOCDIR}; ${PAX} -r )
|
|
|
|
|
|
|
|
.include "../../devel/boehm-gc/buildlink3.mk"
|
2005-03-25 19:08:55 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2004-04-18 14:08:42 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
|
2002-05-10 08:27:22 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|