pkgsrc/converters/bibtex2html/Makefile
2009-02-21 15:53:04 +00:00

51 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.26 2009/02/21 15:53:04 tonio Exp $
DISTNAME= bibtex2html-1.89
PKGREVISION= 1
CATEGORIES= converters
MASTER_SITES= http://www.lri.fr/~filliatr/ftp/bibtex2html/
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://www.lri.fr/~filliatr/bibtex2html/
COMMENT= Collection of tools for translating from BibTeX to HTML
BUILD_DEPENDS+= hevea-[0-9]*:../../textproc/hevea
BUILD_DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_TOOLS+= perl:run
TEX_ACCEPTED= teTeX3
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= aux2bib.1
SUBST_SED.paths= -e 's,/usr/share,${PREFIX}/share,g'
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
INSTALLATION_DIRS+= share/doc/${PKGBASE}
post-build:
set -e; \
cd ${WRKSRC}; ${MAKE} doc
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/aux2bib ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bibtex2html ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bib2bib ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/bibtex2html.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/bibtex2html.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/bib2bib.1
${INSTALL_MAN} ${WRKSRC}/aux2bib.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/aux2bib.1
${INSTALL_DATA} ${WRKSRC}/manual.html \
${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/manual.ps \
${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/tex.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"