Fix installation and add destdir support.

This commit is contained in:
joerg 2009-08-18 16:29:21 +00:00
parent 4421ab3e15
commit cd7cad2056

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2009/07/22 09:01:44 wiz Exp $
# $NetBSD: Makefile,v 1.4 2009/08/18 16:29:21 joerg Exp $
DISTNAME= memhangul-ucs-1.4.4f
PKGNAME= tex-${DISTNAME}
@ -10,6 +10,8 @@ MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://faq.ktug.or.kr/faq/MemhangulClass
COMMENT= Korean support in memoir
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= tex-dhucs>=2.6:../../print/tex-dhucs
DEPENDS+= tex-memoir>=1.618:../../print/tex-memoir
@ -18,18 +20,21 @@ NO_BUILD= yes
.include "../../print/teTeX/module.mk"
INSTALLATION_DIRS= ${PKG_LOCALTEXMFPREFIX}/doc/latex/memhangul \
${PKG_LOCALTEXMFPREFIX}/tex/latex/memhangul \
${PKG_LOCALTEXMFPREFIX}/fonts/cmap \
${PKG_LOCALTEXMFPREFIX}/makeindex/
do-install:
${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/doc/latex/memhangul
.for f in appendixtest.tex doeun.bb doeun.png memucstest.tex
${INSTALL_DATA} ${WRKSRC}/doc/memhangul-ucs/${f} \
${PKG_LOCALTEXMFPREFIX}/doc/latex/memhangul
${DESTDIR}${PKG_LOCALTEXMFPREFIX}/doc/latex/memhangul
.endfor
${INSTALL_DATA} ${WRKSRC}/fonts/cmap/UTF8-UCS2 \
${PKG_LOCALTEXMFPREFIX}/fonts/cmap/
${DESTDIR}${PKG_LOCALTEXMFPREFIX}/fonts/cmap/
${INSTALL_DATA} ${WRKSRC}/makeindex/memucs-manual.ist \
${PKG_LOCALTEXMFPREFIX}/makeindex/
${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/memhangul
${DESTDIR}${PKG_LOCALTEXMFPREFIX}/makeindex/
${INSTALL_DATA} ${WRKSRC}/tex/latex/memhangul/*.sty \
${PKG_LOCALTEXMFPREFIX}/tex/latex/memhangul/
${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/memhangul/
.include "../../mk/bsd.pkg.mk"