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


1.1
date	2003.07.31.17.37.30;	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:	preview-latex (for emacs21)
# Date Created:		27 Jan 2002
# Whom:			Yoichi NAKAYAMA <yoichi@@FreeBSD.org>
#
# $FreeBSD$
# $ports: ports/print/preview-latex/Makefile,v 1.9 2003/03/28 00:44:10 yoichi Exp $
#

PORTNAME=	preview-latex
PORTVERSION=	0.7.8
CATEGORIES=	print elisp
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMESUFFIX=	-${EMACS_PORT_NAME}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	LaTeX previewer on Emacs

BUILD_DEPENDS=	${LOCALBASE}/${EMACS_SITE_LISPDIR}/auctex/latex.el:${PORTSDIR}/print/auctex \
		gs:${PORTSDIR}/print/ghostscript-gnu
RUN_DEPENDS=	${LOCALBASE}/${EMACS_SITE_LISPDIR}/auctex/latex.el:${PORTSDIR}/print/auctex \
		gs:${PORTSDIR}/print/ghostscript-gnu \
		mktexlsr:${PORTSDIR}/print/teTeX

EMACS_PORT_NAME?=	emacs21

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-emacs=${EMACS_CMD} \
		--with-lispdir=${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/preview \
		--with-texmf=${PREFIX}/share/texmf
CONFIGURE_ARGS+=	--disable-8bit-test

DOCS=	ChangeLog INSTALL PROBLEMS README latex/README-preview RELEASE TODO

post-install:
	mktexlsr
	${INSTALL_DATA} ${WRKSRC}/preview-latex.el ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/preview/
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@
