e25b2bd4ac
Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
66 lines
1.2 KiB
Makefile
66 lines
1.2 KiB
Makefile
# New ports collection makefile for: latex2html
|
|
# Date created: 3 May 1998
|
|
# Whom: brett@peloton.physics.montana.edu
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= latex2html
|
|
PORTVERSION= 99.2b8
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
|
|
MASTER_SITE_SUBDIR= support/${PORTNAME}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/b/beta/}
|
|
|
|
MAINTAINER= brett@peloton.runet.edu
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# Global variables
|
|
#
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/latex:${PORTSDIR}/print/teTeX \
|
|
${LOCALBASE}/bin/gs:${PORTSDIR}/print/ghostscript-gnu \
|
|
${LOCALBASE}/bin/anytopnm:${PORTSDIR}/graphics/netpbm
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
USE_PERL5= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-perl=${PERL} \
|
|
--disable-gif \
|
|
--libdir=${DATADIR}
|
|
|
|
MSG_FILE= ${PKGDIR}/pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
# Local variables
|
|
#
|
|
|
|
DOC_FILES= FAQ INSTALL LICENSE README
|
|
|
|
# Port-patch
|
|
#
|
|
|
|
post-patch: patch-message
|
|
|
|
patch-message:
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
|
|
|
|
# Post-install
|
|
#
|
|
|
|
post-install: install-docs display-message
|
|
|
|
install-docs:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in ${DOC_FILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
display-message:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|