freebsd-ports/textproc/bib2html/Makefile
2006-09-11 05:27:00 +00:00

48 lines
1.4 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: bib2html
# Date created: Jan 5, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= bib2html
DISTVERSION= 5.0-1
CATEGORIES= textproc print
MASTER_SITES= http://www.arakhne.org/IMG/gz/ \
http://fresh.t-systems-sfr.com/fresh/unix/src/privat2/
DISTNAME= ${PORTNAME}_${DISTVERSION}
MAINTAINER= clsung@FreeBSD.org
COMMENT= The BibTeX to HTML Translator
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/-[0-9]$//}/src
USE_PERL5_RUN= yes
NO_BUILD= yes
post-patch:
@${SED} -e \
's:= "$$0";:= "${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML";:g' \
< ${WRKSRC}/bib2html.pl > ${WRKSRC}/bib2html
@${SED} -e \
's:= "$$0";:= "${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML";:g' \
< ${WRKSRC}/bib2xml.pl > ${WRKSRC}/bib2xml
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bib2html ${TARGETDIR}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bib2xml ${TARGETDIR}/bin
@${MKDIR} ${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML
@cd ${WRKSRC}/Bib2HTML && ${FIND} . | \
${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} \
${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML
${FIND} ${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML -type f | \
${XARGS} ${CHMOD} ${LIBMODE}
${FIND} ${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML -type d | \
${XARGS} ${CHMOD} a+rx
@${FIND} ${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML -type f | \
${SED} "s,^${TARGETDIR}/,," >> ${TMPPLIST}
@${FIND} ${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML -type d | ${SORT} -r | \
${SED} "s,^${TARGETDIR}/,@dirrm ," >> ${TMPPLIST}
.include <bsd.port.mk>