aboutsummaryrefslogblamecommitdiff
path: root/textproc/latex2html/Makefile
blob: cdb1bc9fe1afdca4f34d4b5fd28297ade38f11e4 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                               
           
 
                          
                    
                 
                        

                                           
 
                               
                                               
 
                                                                       
                                                                     
                                
 

                                    
                             
                           
                                    
                           
                                     
                               
                                       


                                                                   
 
                    
 
                           
                                         
                                          
 
                   
                          
 
             
                                                                     
                        
                            
                        
                                                     

       
                                          
                             
 
                           
# Created by: brett@peloton.physics.montana.edu
# $FreeBSD$

PORTNAME=	latex2html
PORTVERSION=	2008
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR=	support/${PORTNAME}

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Convert LaTeX documents to HTML

BUILD_DEPENDS=	${LOCALBASE}/bin/dvips:${PORTSDIR}/print/dvipsk-tetex \
		${LOCALBASE}/bin/anytopnm:${PORTSDIR}/graphics/netpbm
RUN_DEPENDS:=	${BUILD_DEPENDS}

CONFLICTS=	ja-latex2html-[0-9]*

USES=			perl5
USE_GHOSTSCRIPT=	yes
USE_TEX=		latex dvipsk
GNU_CONFIGURE=		yes
CONFIGURE_ARGS=	--with-perl=${PERL} \
		--disable-gif \
		--shlibdir=${DATADIR} \
		--with-texpath=${PREFIX}/${TEXMFDIR}/tex/latex/html
SUB_FILES=	pkg-message
PLIST_SUB=	TEXMFDIR=${TEXMFDIR} MKTEXLSR=${MKTEXLSR}

MAN1=	latex2html.1

TEXMFDIR=	share/texmf
MKTEXLSR=	${LOCALBASE}/bin/mktexlsr
PORTDOCS=	FAQ INSTALL LICENSE README

NO_STAGE=	yes
.include <bsd.port.pre.mk>

post-install:
	${INSTALL_MAN} ${FILESDIR}/latex2html.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
	@${MKTEXLSR} ${PREFIX}/${TEXMFDIR}
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>