aboutsummaryrefslogtreecommitdiff
path: root/textproc/bibtool/Makefile
blob: 2f69d90c80556e8e67bdff4909ab2078d1b86d27 (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
35
36
37
38
39
40
PORTNAME=	bibtool
PORTVERSION=	2.68
CATEGORIES=	textproc print
MASTER_SITES=	TEX_CTAN/biblio/bibtex/utils/${PORTNAME}
DISTNAME=	BibTool-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Command line manipulation of BibTeX files
WWW=		https://ctan.org/tex-archive/biblio/bibtex/utils/bibtool/

LICENSE=	GPLv2+

BROKEN=		does not build: Failed to load "fontloader" module "basics-gen"

USES=	tex
USE_TEX=	latex:build luatex:build
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-kpathsea
CONFIGURE_ENV=	LOCALBASE=${LOCALBASE}
WRKSRC=		${WRKDIR}/BibTool

MAKEFILE=	makefile
INSTALL_TARGET=	install install.man

PORTDOCS=	bibtool.pdf ref_card.pdf c_lib.pdf

OPTIONS_DEFINE=	DOCS

post-patch:
	${REINPLACE_CMD} 's/bibtex$$/&8/' ${WRKSRC}/doc/Makefile

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

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>