summaryrefslogtreecommitdiff
path: root/print/bibtool/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/bibtool/Makefile')
-rw-r--r--print/bibtool/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/print/bibtool/Makefile b/print/bibtool/Makefile
index d491cb7e7e4..a51ac089f4f 100644
--- a/print/bibtool/Makefile
+++ b/print/bibtool/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2007/02/22 19:27:03 wiz Exp $
+# $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/}
@@ -7,6 +7,8 @@ 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
@@ -20,6 +22,11 @@ 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"
@@ -33,12 +40,9 @@ post-build:
# cd ${WRKSRC:Q}/BibTcl && make
post-install:
- cd ${WRKSRC:Q} && make install.man
- ${MKDIR} ${DOCDIR}
- for i in ${WRKSRC:Q}/Doc/*.dvi; do ${INSTALL_DATA} $$i ${DOCDIR}; done
- ${MKDIR} ${EXAMPLEDIR}
- ${INSTALL_DATA} ${WRKSRC:Q}/Perl/bibtool.pl ${EXAMPLEDIR}
- ${INSTALL_DATA} ${WRKSRC:Q}/Tcl/bibtool.tcl ${EXAMPLEDIR}
+ 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"