blob: a8ffd341680a667731ffc10556017a05f92f8b93 (
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
|
# New ports collection makefile for: auctex
# Date created: 21 November 1999
# Whom: Martin Kammerhofer
#
# $FreeBSD$
#
PORTNAME= auctex
PORTVERSION= 9.9p
CATEGORIES= print elisp
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= support/auctex
MAINTAINER= mkamm@gmx.net
# EMACS_NAME must be 'emacs' or 'xemacs' - it is used for byte compiling
# emacs lisp files (*.el => *.elc)
# EMACS_PORT is only used for dependency registration, the installed bits
# are always the same (regardless of what [x]emacs version is used)
.if !defined(EMACS_NAME)
.if exists(${LOCALBASE}/bin/xemacs)
EMACS_NAME = xemacs
EMACS_PORT = xemacs21
.else
EMACS_NAME = emacs
EMACS_PORT = emacs20
.endif
.endif
MAKE_ENV += EMACS='${EMACS_NAME}'
BUILD_DEPENDS = ${EMACS_NAME}:${PORTSDIR}/editors/${EMACS_PORT}
RUN_DEPENDS = ${EMACS_NAME}:${PORTSDIR}/editors/${EMACS_PORT} \
latex:${PORTSDIR}/print/teTeX
.include <bsd.port.pre.mk>
.if ${PREFIX} != /usr/local
# adjust a hardcoded '/usr/local' string
post-patch:
@${ECHO_MSG} "===> Substituting hardcoded '/usr/local' paths"
${PERL} -wpi -e 's�/usr/local�${PREFIX}�g' ${WRKSRC}/tex.el
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/auctex
.for file in CHANGES INSTALLATION README
${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/share/doc/auctex
.endfor
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} install-info >/dev/null
install-info --entry='* AUC-Tex mode: (auctex). Emacs mode for editing TeX and LaTeX files.' --section='TeX' ${PREFIX}/info/auctex ${PREFIX}/info/dir
.endif
@${CAT} ${PKGDIR}/MESSAGE | ${SED} 's�/usr/local�${PREFIX}�g'
.include <bsd.port.post.mk>
|