diff options
Diffstat (limited to 'textproc/latex2html/Makefile')
-rw-r--r-- | textproc/latex2html/Makefile | 57 |
1 files changed, 18 insertions, 39 deletions
diff --git a/textproc/latex2html/Makefile b/textproc/latex2html/Makefile index aa4c6c8..520a5c8 100644 --- a/textproc/latex2html/Makefile +++ b/textproc/latex2html/Makefile @@ -7,49 +7,37 @@ PORTNAME= latex2html PORTVERSION= 2002.2.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_TEX_CTAN} MASTER_SITE_SUBDIR= support/${PORTNAME} -DISTNAME= ${PORTNAME}-${PORTVERSION:S/./-/g} +DISTNAME= ${PORTNAME}-${PORTVERSION:S,.,-,g} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= hrs@FreeBSD.org COMMENT= Convert LaTeX documents to HTML -.include <bsd.port.pre.mk> - -# Global variables -# - -.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes -GSPORT?= print/ghostscript-afpl -.else -GSPORT?= print/ghostscript-gnu -.endif - -BUILD_DEPENDS= ${LOCALBASE}/bin/latex:${PORTSDIR}/print/teTeX \ - ${LOCALBASE}/bin/gs:${PORTSDIR}/${GSPORT} \ +BUILD_DEPENDS= ${LOCALBASE}/bin/latex:${PORTSDIR}/print/teTeX-base \ ${LOCALBASE}/bin/anytopnm:${PORTSDIR}/graphics/netpbm RUN_DEPENDS= ${BUILD_DEPENDS} -USE_PERL5= yes -GNU_CONFIGURE= yes +USE_PERL5= yes +USE_GHOSTSCRIPT= yes +GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-perl=${PERL} \ --disable-gif \ - --shlibdir=${DATADIR} - -MAN1= latex2html.1 - -MSG_FILE= ${PKGDIR}/pkg-message + --shlibdir=${DATADIR} \ + --with-texpath=${PREFIX}/${TEXMFLOCAL}/tex/latex/html PKGMESSAGE= ${WRKDIR}/pkg-message +PKGMESSAGE_IN= ${PKGDIR}/pkg-message +PLIST_SUB= TEXMFLOCAL=${TEXMFLOCAL} MKTEXLSR=${MKTEXLSR} -# Local variables -# +MAN1= latex2html.1 +TEXMFLOCAL= share/texmf-local +MKTEXLSR= ${LOCALBASE}/bin/mktexlsr DOC_FILES= FAQ INSTALL LICENSE README -# Inform message -# +.include <bsd.port.pre.mk> pre-everything:: .if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes @@ -59,18 +47,10 @@ pre-everything:: @${ECHO_MSG} "" .endif -# Port-patch -# - post-patch: - @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE} + @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGMESSAGE_IN} > ${PKGMESSAGE} -# Post-install -# - -post-install: install-docs display-message - -install-docs: +post-install: ${INSTALL_MAN} ${FILESDIR}/latex2html.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @@ -78,8 +58,7 @@ install-docs: @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} .endfor .endif - -display-message: + @${MKTEXLSR} @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> |