aboutsummaryrefslogtreecommitdiff
path: root/deskutils/org-mode.el/Makefile
blob: 21e7e37de6342951eb26d2bdb9b1b40f7ee14080 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# 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=	7.4
PORTREVISION=	1
CATEGORIES=	deskutils elisp
MASTER_SITES=	http://orgmode.org/
PKGNAMESUFFIX=	-${EMACS_PORT_NAME}
DISTNAME=	org-${PORTVERSION}

MAINTAINER=	jhein@symmetricom.com
COMMENT=	An Emacs mode for notes and project planning

DOCSDIR=	${PREFIX}/share/doc/org-mode
USE_EMACS=	yes

INFO=		org${PORTVERSION}

CONTRIBS=	\
	babel/langs/ob-oz.el \
	babel/library-of-babel.org \
	lisp/htmlize.el \
	lisp/org-annotate-file.el \
	lisp/org-bookmark.el \
	lisp/org-checklist.el \
	lisp/org-choose.el \
	lisp/org-collector.el \
	lisp/org-contribdir.el \
	lisp/org-depend.el \
	lisp/org-drill.el \
	lisp/org-elisp-symbol.el \
	lisp/org-eval-light.el \
	lisp/org-eval.el \
	lisp/org-exp-bibtex.el \
	lisp/org-expiry.el \
	lisp/org-export-generic.el \
	lisp/org-git-link.el \
	lisp/org-interactive-query.el \
	lisp/org-invoice.el \
	lisp/org-jira.el \
	lisp/org-learn.el \
	lisp/org-mac-iCal.el \
	lisp/org-mac-link-grabber.el \
	lisp/org-mairix.el \
	lisp/org-man.el \
	lisp/org-mime.el \
	lisp/org-mtags.el \
	lisp/org-panel.el \
	lisp/org-registry.el \
	lisp/org-screen.el \
	lisp/org-secretary.el \
	lisp/org-special-blocks.el \
	lisp/org-static-mathjax.el \
	lisp/org-toc.el \
	lisp/org-track.el \
	lisp/org-velocity.el \
	lisp/org-wikinodes.el \
	lisp/org2rem.el \
	lisp/orgtbl-sqlinsert.el \
	lisp/test-org-export-preproc.el \
	README \
	scripts/dir2org.zsh \
	scripts/ditaa.jar \
	scripts/org2hpda \
	scripts/StartOzServer.oz \
	scripts/staticmathjax/application.ini \
	scripts/staticmathjax/chrome/chrome.manifest \
	scripts/staticmathjax/chrome/content/main.js \
	scripts/staticmathjax/chrome/content/main.xul \
	scripts/staticmathjax/defaults/preferences/prefs.js \
	scripts/staticmathjax/README.org \
	scripts/staticmathjax/README.txt \

post-patch:
	@${REINPLACE_CMD} -i .pv 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/Makefile
	${SED} 's|\(Org Mode\):|\1 (${PORTVERSION}):|; \
	    s|\(File: \)org,|\1${INFO},|; \
	    s|(org)|(${INFO})|' ${WRKSRC}/doc/org > ${WRKSRC}/doc/${INFO}.info

post-install:
	${INSTALL} -d ${DOCSDIR} \
	    ${DOCSDIR}/contrib/babel/langs \
	    ${DOCSDIR}/contrib/lisp \
	    ${DOCSDIR}/contrib/scripts/staticmathjax/chrome/content \
	    ${DOCSDIR}/contrib/scripts/staticmathjax/defaults/preferences
.for i in ${CONTRIBS}
	${INSTALL_DATA} ${WRKSRC}/contrib/${i} ${DOCSDIR}/contrib/$$(dirname ${i})
.endfor
.if !defined(NOPORTDOCS)
.for i in org.pdf orgcard.pdf orgguide.pdf
	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>