blob: 2a2ef38031ae3cc33f2579b0ddff06bcb6bb0faa (
plain) (
blame)
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
|
# New ports collection makefile for: org-mode.el
# Date created: 2007-02-15
# Whom: Kai Wang <kaiw27@gmail.com>
#
# $FreeBSD$
#
PORTNAME= org-mode.el
PORTVERSION= 4.64
PORTREVISION= 3
CATEGORIES= deskutils elisp
MASTER_SITES= http://staff.science.uva.nl/~dominik/Tools/org/ \
http://web.student.chalmers.se/~kaiw/FreeBSD/disfiles/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
DISTNAME= org-${PORTVERSION}
MAINTAINER= kaiw27@gmail.com
COMMENT= An Emacs mode for notes and project planning
USE_EMACS= yes
USE_GMAKE= yes
EMACS_PORT_NAME?= emacs21
INFO= org
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html
.endif
.include <bsd.port.pre.mk>
.if (${EMACS_PORT_NAME} == "xemacs21") || \
(${EMACS_PORT_NAME} == "xemacs21-mule") || \
(${EMACS_PORT_NAME} == "xemacs-devel") || \
(${EMACS_PORT_NAME} == "xemacs-devel-mule") || \
(${EMACS_PORT_NAME} == "xemacs-mule-xft")
PLIST_SUB+= XEMACS=""
.else
PLIST_SUB+= XEMACS="@comment "
.endif
post-patch:
.if (${EMACS_PORT_NAME} == "xemacs21") || \
(${EMACS_PORT_NAME} == "xemacs21-mule") || \
(${EMACS_PORT_NAME} == "xemacs-devel") || \
(${EMACS_PORT_NAME} == "xemacs-devel-mule") || \
(${EMACS_PORT_NAME} == "xemacs-mule-xft")
${REINPLACE_CMD} -Ee \
's%^(EMACS=)emacs%\1xemacs%; \
s%^(lispdir =.*)/share/emacs%\1/lib/xemacs%' \
${WRKSRC}/Makefile
.endif
pre-build:
.if (${EMACS_PORT_NAME} == "xemacs21") || \
(${EMACS_PORT_NAME} == "xemacs21-mule") || \
(${EMACS_PORT_NAME} == "xemacs-devel") || \
(${EMACS_PORT_NAME} == "xemacs-devel-mule") || \
(${EMACS_PORT_NAME} == "xemacs-mule-xft")
cd ${WRKSRC} && ${GMAKE} PREFIX=${PREFIX} install-noutline
.endif
post-build:
${MV} ${WRKSRC}/org ${WRKSRC}/org.info
post-install:
.if !defined(NOPORTDOCS)
cd ${WRKSRC} && ${GMAKE} org.html
${MKDIR} ${DOCSDIR}
.for i in org.html org.pdf orgcard.pdf
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|