blob: 9c69e789bb08eb827c6877142bc33932ac41cca2 (
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# New ports collection makefile for: emacs-w3m
# Date Created: 24 Mar 2001
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
#
# $FreeBSD$
#
PORTNAME= emacs-w3m
PORTVERSION= 1.0
CATEGORIES= www elisp
MASTER_SITES= http://emacs-w3m.namazu.org/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
DISTNAME= w3m_el-${PORTVERSION}
MAINTAINER= nobutaka@nobutaka.com
EMACS_PORT_NAME?= emacs20
CONFIGURE_ARGS?= --with-emacs=${EMACS_CMD}
LISPDIR?= ${EMACS_LIBDIR}/site-lisp/w3m
ETCDIR?= share/w3m
PKGINFODIR?= "@comment "
USE_AUTOCONF= yes
ALL_TARGET= default
PLIST_SUB+= EMACS_NAME=${EMACS_NAME} \
XEMACS_ONLY=${XEMACS_ONLY} \
EMACS_ONLY=${EMACS_ONLY} \
LISPDIR=${LISPDIR} \
ETCDIR=${ETCDIR} \
PKGINFODIR=${PKGINFODIR} \
SHIMBUN=${SHIMBUN}
DOCS= README
DOCS_JA= README.ja TIPS.ja
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
DOCSDIR_JA= ${PREFIX}/share/doc/ja/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${EMACS_NAME} == xemacs
XEMACS_ONLY?= ""
EMACS_ONLY?= "@comment "
SEMI_FILE= ${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/semi/mime-setup.el
.else
XEMACS_ONLY?= "@comment "
EMACS_ONLY?= ""
SEMI_FILE= ${LOCALBASE}/${EMACS_LIBDIR}/site-lisp/semi/mime-setup.el
.endif
.if defined(WITH_SHIMBUN)
HAVE_SEMI=yes
SHIMBUN= ""
.else
.if exists(${SEMI_FILE})
HAVE_SEMI=yes
SHIMBUN= ""
.else
SHIMBUN= "@comment "
.endif
.endif
.if defined(HAVE_SEMI)
BUILD_DEPENDS+= ${SEMI_FILE}:${PORTSDIR}/editors/semi-${EMACS_PORT_NAME}-current
RUN_DEPENDS+= ${SEMI_FILE}:${PORTSDIR}/editors/semi-${EMACS_PORT_NAME}-current
.endif
.if !defined(HAVE_SEMI)
pre-fetch:
@${ECHO_MSG}
@${ECHO_MSG} "NOTE: You can have shimbun support by adding \"WITH_SHIMBUN=yes\" to argument of make."
@${ECHO_MSG}
.endif
post-extract:
.if defined(EMACS_PACKAGESDIR)
@${CP} ${FILESDIR}/_pkg.el ${WRKSRC}
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${MKDIR} ${DOCSDIR_JA}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.for i in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR_JA}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|