aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/bibtool/Makefile
blob: fbe706c3f63cbb6daec1d6776753b2b70ee0207a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Created by: Rong-En Fan <rafan@infor.org>
# $FreeBSD$

PORTNAME=   bibtool
PORTVERSION=    2.48
PORTREVISION=   5
CATEGORIES= textproc print
MASTER_SITES=   ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= biblio/bibtex/utils/${PORTNAME}
DISTNAME=   BibTool-${PORTVERSION}

MAINTAINER= rafan@FreeBSD.org
COMMENT=    Command line manipulation of BibTeX files

USE_TEX=    latex:build
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-kpathsea
CONFIGURE_ENV=  LOCALBASE=${LOCALBASE}

MAKEFILE=   makefile
INSTALL_TARGET= install install.man

PORTDOCS=   bibtool.dvi ref_card.dvi c_lib.dvi

post-build:
    cd ${WRKSRC} && ${MAKE} doc && ${MAKE} doc

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    for f in ${PORTDOCS}; do \
      ${INSTALL_MAN} ${WRKSRC}/Doc/$$f ${STAGEDIR}${DOCSDIR}; \
    done

.include <bsd.port.mk>