summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjoerg <joerg>2009-08-18 15:43:58 +0000
committerjoerg <joerg>2009-08-18 15:43:58 +0000
commitd95f4151e0ca104ba0a6dc1f80f4499108617b61 (patch)
tree035e6f7b1a77ba2a1de78733567448cc368c8e8d /print
parentad920978b9fb4afa96f4a669f2a738da3df07993 (diff)
downloadpkgsrc-d95f4151e0ca104ba0a6dc1f80f4499108617b61.tar.gz
destdir support
Diffstat (limited to 'print')
-rw-r--r--print/tex-hlatex/Makefile41
1 files changed, 23 insertions, 18 deletions
diff --git a/print/tex-hlatex/Makefile b/print/tex-hlatex/Makefile
index bd1c74d8516..c30db69b429 100644
--- a/print/tex-hlatex/Makefile
+++ b/print/tex-hlatex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2009/07/22 09:01:44 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2009/08/18 15:43:58 joerg Exp $
DISTNAME= HLaTeX-1.0.1
PKGNAME= tex-hlatex-${DISTNAME:S/HLaTeX-//}
@@ -10,6 +10,8 @@ MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://project.ktug.or.kr/hlatex/
COMMENT= LaTeX package to typeset Hangul
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= tex-uhc-fonts-base>=1.0:../../fonts/tex-uhc-fonts-base
WRKSRC= ${WRKDIR}/HLaTeX
@@ -22,35 +24,38 @@ do-build:
${CC} ${CPPFLAGS} ${CFLAGS} -o ${WRKSRC}/hmakeindex \
${WRKSRC}/contrib/hmakeindex.c
+INSTALLATION_DIRS= bin \
+ ${PKG_LOCALTEXMFPREFIX}/bibtex/bst/hlatex \
+ ${PKG_LOCALTEXMFPREFIX}/omega/ocp/hlatex \
+ ${PKG_LOCALTEXMFPREFIX}/omega/otp/hlatex \
+ ${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex \
+ ${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex \
+ ${PKG_LOCALTEXMFPREFIX}/makeindex/
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/hbibtex ${PREFIX}/bin/
- ${INSTALL_PROGRAM} ${WRKSRC}/hmakeindex ${PREFIX}/bin/
- ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex
+ ${INSTALL_PROGRAM} ${WRKSRC}/hbibtex ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/hmakeindex ${DESTDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/latex/* \
- ${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex/
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex/
${INSTALL_DATA} ${WRKSRC}/contrib/hbname-k.tex \
- ${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex/
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex/
${INSTALL_DATA} ${WRKSRC}/contrib/*.sty ${WRKSRC}/contrib/hfn-k.tex \
- ${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex/
- ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex/
.for f in u8hangul.tex uhc-test.tex uhc*.fd
${INSTALL_DATA} ${WRKSRC}/lambda/${f} \
- ${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex/
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex/
.endfor
${INSTALL_DATA} ${WRKSRC}/contrib/hbname-u.tex \
- ${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex/
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex/
${INSTALL_DATA} ${WRKSRC}/contrib/hfn-u.tex \
- ${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex/
- ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/omega/ocp/hlatex
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex/
${INSTALL_DATA} ${WRKSRC}/lambda/hlatex.ocp \
- ${PKG_LOCALTEXMFPREFIX}/omega/ocp/hlatex/
- ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/omega/otp/hlatex
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/omega/ocp/hlatex/
${INSTALL_DATA} ${WRKSRC}/lambda/hlatex.otp \
- ${PKG_LOCALTEXMFPREFIX}/omega/otp/hlatex/
- ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/bibtex/bst/hlatex
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/omega/otp/hlatex/
${INSTALL_DATA} ${WRKSRC}/contrib/halpha.bst \
- ${PKG_LOCALTEXMFPREFIX}/bibtex/bst/hlatex/
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/bibtex/bst/hlatex/
${INSTALL_DATA} ${WRKSRC}/contrib/*.ist \
- ${PKG_LOCALTEXMFPREFIX}/makeindex/
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/makeindex/
.include "../../mk/bsd.pkg.mk"