1998-05-05 03:00:22 +02:00
|
|
|
# New ports collection makefile for: latex2html
|
|
|
|
# Date created: 3 May 1998
|
|
|
|
# Whom: brett@peloton.physics.montana.edu
|
|
|
|
#
|
1999-08-31 04:11:56 +02:00
|
|
|
# $FreeBSD$
|
1998-05-05 03:00:22 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 23:54:47 +02:00
|
|
|
PORTNAME= latex2html
|
2002-10-27 16:00:19 +01:00
|
|
|
PORTVERSION= 2002.2.1
|
2007-01-18 06:54:50 +01:00
|
|
|
PORTREVISION= 5
|
1998-05-05 03:00:22 +02:00
|
|
|
CATEGORIES= textproc
|
2000-12-11 17:44:46 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
|
|
|
|
MASTER_SITE_SUBDIR= support/${PORTNAME}
|
2004-07-25 16:51:17 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S,.,-,g}
|
1998-05-05 03:00:22 +02:00
|
|
|
|
2004-07-25 16:51:17 +02:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
2003-02-20 20:21:36 +01:00
|
|
|
COMMENT= Convert LaTeX documents to HTML
|
1998-05-05 03:00:22 +02:00
|
|
|
|
2004-07-25 16:51:17 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/latex:${PORTSDIR}/print/teTeX-base \
|
2006-01-26 17:19:00 +01:00
|
|
|
${LOCALBASE}/bin/dvips:${PORTSDIR}/print/dvipsk-tetex \
|
2000-09-05 03:25:20 +02:00
|
|
|
${LOCALBASE}/bin/anytopnm:${PORTSDIR}/graphics/netpbm
|
2000-12-11 17:44:46 +01:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
1998-05-05 03:00:22 +02:00
|
|
|
|
2007-01-18 06:54:50 +01:00
|
|
|
CONFLICTS= ja-latex2html-[0-9]*
|
|
|
|
|
2004-07-25 16:51:17 +02:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_GHOSTSCRIPT= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2000-12-11 17:44:46 +01:00
|
|
|
CONFIGURE_ARGS= --with-perl=${PERL} \
|
2001-02-03 20:12:11 +01:00
|
|
|
--disable-gif \
|
2004-07-25 16:51:17 +02:00
|
|
|
--shlibdir=${DATADIR} \
|
2007-01-18 06:54:50 +01:00
|
|
|
--with-texpath=${PREFIX}/${TEXMFDIR}/tex/latex/html
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PLIST_SUB= TEXMFDIR=${TEXMFDIR} MKTEXLSR=${MKTEXLSR}
|
2001-10-15 12:50:20 +02:00
|
|
|
|
2004-07-25 16:51:17 +02:00
|
|
|
MAN1= latex2html.1
|
2001-10-15 12:50:20 +02:00
|
|
|
|
2007-01-18 06:54:50 +01:00
|
|
|
TEXMFDIR= share/texmf
|
2004-07-25 16:51:17 +02:00
|
|
|
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
|
2007-01-18 06:54:50 +01:00
|
|
|
PORTDOCS= FAQ INSTALL LICENSE README
|
2001-10-15 12:50:20 +02:00
|
|
|
|
2004-07-25 16:51:17 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-08-31 03:21:41 +02:00
|
|
|
|
2003-09-27 03:01:08 +02:00
|
|
|
pre-everything::
|
2003-08-31 03:21:41 +02:00
|
|
|
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
|
2003-09-27 03:01:08 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
|
|
|
|
@${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one"
|
|
|
|
@${ECHO_MSG} ""
|
2003-08-31 03:21:41 +02:00
|
|
|
.endif
|
|
|
|
|
2004-07-25 16:51:17 +02:00
|
|
|
post-install:
|
2002-09-17 18:44:15 +02:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/latex2html.1 ${MANPREFIX}/man/man1
|
2000-12-11 17:44:46 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-10-15 12:50:20 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2007-01-18 06:54:50 +01:00
|
|
|
.for file in ${PORTDOCS}
|
2001-10-15 12:50:20 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
2000-12-11 17:44:46 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
2007-01-18 06:54:50 +01:00
|
|
|
@${MKTEXLSR} ${PREFIX}/${TEXMFDIR}
|
2000-12-11 17:44:46 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-05-05 03:00:22 +02:00
|
|
|
|
2001-10-15 12:50:20 +02:00
|
|
|
.include <bsd.port.post.mk>
|