head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2003.07.31.17.37.29;	author shige;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Add elisp/emacsen ports in the ports tree @@ 2003/07/31
@
text
@# New ports collection makefile for:	auctex
# Date created:				21 November 1999
# Whom:					Martin Kammerhofer
#
# $FreeBSD$
# $ports: ports/print/auctex/Makefile,v 1.13 2003/06/09 16:36:44 erwin Exp $
#

PORTNAME=		auctex
PORTVERSION=		11.13
CATEGORIES=		print elisp
MASTER_SITES=		http://savannah.nongnu.org/download/auctex/stable.pkg/${PORTVERSION}/ \
			http://wuarchive.wustl.edu/mirrors/gnu/auctex/ \
			http://mirror.telentente.com/pub/gnu/auctex/

MAINTAINER=		ports@@FreeBSD.org
COMMENT=	Integrated environment for writing LaTeX using GNU Emacs

RUN_DEPENDS=	latex:${PORTSDIR}/print/teTeX

EMACS_PORT_NAME?=	emacs21
EMACS_NO_RUN_DEPENDS=	yes
LISPDIR=	${EMACS_SITE_LISPDIR}
ALL_TARGET=	all contrib
INSTALL_TARGET=	install install-contrib
MAKE_ARGS+=	lispdir=${PREFIX}/${LISPDIR}
PLIST_SUB+=	LISPDIR=${LISPDIR}
USE_REINPLACE=	yes

# adjust a hardcoded '/usr/local' string
post-patch:
	@@${ECHO_MSG} "===>  Substituting hardcoded '/usr/local' paths"
	${REINPLACE_CMD} -e 's?/usr/local?${PREFIX}?g' ${WRKSRC}/tex.el

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} ${PKGMESSAGE} | ${SED} 's?/usr/local?${PREFIX}?g'

.include <bsd.port.mk>
@
