blob: 5309b91fd3736cf118e3b8253d0dd98f0e8129c2 (
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
|
# $NetBSD: Makefile,v 1.23 2008/10/11 09:31:58 uebayasi Exp $
DISTNAME= emacs-w3m-1.4.4
PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= ${HOMEPAGE}
MAINTAINER= uebayasi@NetBSD.org
HOMEPAGE= http://emacs-w3m.namazu.org/
COMMENT= Simple w3m interface for Emacs
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= ${ETCDIR}
USE_TOOLS+= makeinfo
INFO_FILES= YES
DEPENDS+= w3m>=0.5.1nb2:../../www/w3m
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=--with-emacs=${EMACS_BIN:Q}
CONFIGURE_ARGS+=--with-icondir=${ICONDIR}
BUILD_TARGET= default
INSTALL_TARGET= ${INSTALL_TARGET.${EMACS_FLAVOR}}
MAKE_FLAGS= prefix=${DESTDIR}${PREFIX} ICONDIR=${DESTDIR}${ICONDIR}
PLIST_SUBST+= ETCDIR=${ETCDIR:Q}
SUBST_CLASSES+= fix-icondir
SUBST_STAGE.fix-icondir= pre-configure
SUBST_FILES.fix-icondir= Makefile.in w3m.el w3mhack.el
SUBST_SED.fix-icondir= -e 's|etc/images/w3m|etc/w3m|g' \
-e 's|images/w3m|w3m|g'
.include "../../editors/emacs/modules.mk"
# GNU Emacs 21 or later and XEmacs have GUI support
PLIST_VARS+= gui
.if (${EMACS_FLAVOR} == "emacs" && ${EMACS_VERSION_MAJOR} > 20) || \
${EMACS_FLAVOR} == "xemacs"
PLIST.gui= yes
.endif
DOCUMENTS= COPYING ChangeLog ChangeLog.1 README README.ja
ETCDIR= ${ETCDIR.${EMACS_FLAVOR}}
ICONDIR= ${PREFIX}/${ETCDIR}
INSTALL_TARGET.emacs= install install-icons
INSTALL_TARGET.xemacs= install-package
ETCDIR.emacs= share/emacs/${_EMACS_VERSION_NOREV}/etc/w3m
ETCDIR.xemacs= lib/xemacs/site-packages/etc/w3m
post-install:
for f in ${DOCUMENTS}; do ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/${ETCDIR}; done
.include "options.mk"
.include "../../devel/apel/buildlink3.mk"
.include "../../devel/semi/buildlink3.mk"
.include "../../editors/mule-ucs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|