summaryrefslogtreecommitdiff
path: root/www/w3m/Makefile.common
blob: 5bc8759643a761b63a59c22213d4c855a10a07d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# $NetBSD: Makefile.common,v 1.56 2011/01/21 23:34:13 wiz Exp $
#
# used by www/w3m/Makefile
# used by www/w3m-img/Makefile

DISTNAME=	w3m-${W3M_VERS}
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=w3m/}

MAINTAINER=	uebayasi@NetBSD.org
HOMEPAGE=	http://w3m.sourceforge.net/

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT=	user-destdir
MAKE_JOBS_SAFE=		no

GNU_CONFIGURE=	yes
USE_LANGUAGES=	c c++
USE_TOOLS+=	gmake	# Needed for some combinations of options...
USE_TOOLS+=	msgfmt
USE_PKGLOCALEDIR=       yes

W3M_VERS=	0.5.3

# For w3mman, xface2xpm, cgi scripts.
USE_TOOLS+=	perl:run pax

DOCDIR=		share/doc/w3m

_W3M_USE_IMAGE?=	NO

.include "options.mk"

.include "../../mk/bsd.prefs.mk"

# 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-m17n
CONFIGURE_ARGS+=	--enable-mouse
CONFIGURE_ARGS+=	--enable-unicode
CONFIGURE_ARGS+=	--with-browser=
CONFIGURE_ARGS+=	--with-termlib
CONFIGURE_ARGS+=	--with-editor=vi
CONFIGURE_ARGS+=	--with-gc=${BUILDLINK_PREFIX.boehm-gc:Q}
CONFIGURE_ARGS+=	--with-mailer=${MAIL_CMD:Q}
CONFIGURE_ARGS+=	--with-ssl=${SSLBASE:Q}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}

SUBST_CLASSES+=		man-ja
SUBST_MESSAGE.man-ja=	Fixing the path to Japanese manual pages.
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'

post-extract:
	cd ${WRKSRC}/doc; ${RM} -fr CVS
	cd ${WRKSRC}/doc-jp; ${RM} -fr CVS
	cd ${WRKSRC}; ${RM} -fr gc

INSTALLATION_DIRS+=	${DOCDIR}

INSTALL_TARGET=		install install-helpfile

post-install:
	# Use pax to discard uid/gid.  Exclude manuals (*.1).
	cd ${WRKSRC}; pax -w -s ',.*\.1$$,,' doc doc-jp | \
	    ( cd ${DESTDIR}${PREFIX}/${DOCDIR}; pax -r )

.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"