summaryrefslogtreecommitdiff
path: root/print/bibtool/Makefile
blob: a51ac089f4f95a4f73d46aa76d31ce6f1931630c (plain)
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
41
42
43
44
45
46
47
48
# $NetBSD: Makefile,v 1.6 2008/06/12 02:14:43 joerg Exp $
DISTNAME=	BibTool-2.48
CATEGORIES=	print
MASTER_SITES=	${MASTER_SITE_TEX_CTAN:=biblio/bibtex/utils/bibtool/}

MAINTAINER=	smb@NetBSD.org
HOMEPAGE=	http://www.gerd-neugebauer.de/software/TeX/BibTool.en.html
COMMENT=	Tool to manipulate BibTeX databases

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=		yes
MAKE_FILE=	makefile
#CONFIGURE_DIRS=	${WRKSRC} ${WRKSRC}/BibTcl

REPLACE_INTERPRETER+=	tcl
REPLACE.tcl.old=	/usr/local/bin/tclsh
REPLACE.tcl.new=	/usr/pkg/bin/tclsh
REPLACE_FILES.tcl=	Tcl/bibtool.tcl
REPLACE_PERL+=		Perl/bibtool.pl

DOCDIR=		${LOCALBASE}/share/doc/BibTool
EXAMPLEDIR=	${LOCALBASE}/share/examples/BibTool

INSTALL_MAKE_FLAGS=	prefix=${DESTDIR}${PREFIX} \
			MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
INSTALL_TARGET=	install install.man
INSTALLATION_DIRS=	${DOCDIR} ${EXAMPLEDIR}

TEX_ACCEPTED=	teTeX3
TEX_DEPMETHOD=	build
.include "../../mk/tex.buildlink3.mk"

#pre-configure:
#	rm ${WRKSRC:Q}/BibTcl/Makefile
#	mv ${WRKSRC:Q}/BibTcl/Makefile.in ${WRKSRC:Q}/BibTcl/makefile.in

post-build:
	cd ${WRKSRC:Q}/Doc && make
#	cd ${WRKSRC:Q}/BibTcl && make

post-install:
	for i in ${WRKSRC:Q}/Doc/*.dvi; do ${INSTALL_DATA} $$i ${DESTDIR}${DOCDIR}; done
	${INSTALL_DATA} ${WRKSRC:Q}/Perl/bibtool.pl ${DESTDIR}${EXAMPLEDIR}
	${INSTALL_DATA} ${WRKSRC:Q}/Tcl/bibtool.tcl ${DESTDIR}${EXAMPLEDIR}
#	cd ${WRKSRC:Q}/BibTcl && make install

.include "../../mk/bsd.pkg.mk"