summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-10-07 17:34:53 +0000
committerjoerg <joerg@pkgsrc.org>2009-10-07 17:34:53 +0000
commit59d170625ac2729bfa768d5fb214bc9ffc2968a6 (patch)
tree8b331d5029d2f00f4dd1c9c236c7be25a7b93fed /print
parent6ad340ffa39edf3cfb95233738d15811602c2347 (diff)
downloadpkgsrc-59d170625ac2729bfa768d5fb214bc9ffc2968a6.tar.gz
Fix build. Prepare for DESTDIR.
Diffstat (limited to 'print')
-rw-r--r--print/tex-musixtex/Makefile41
1 files changed, 15 insertions, 26 deletions
diff --git a/print/tex-musixtex/Makefile b/print/tex-musixtex/Makefile
index 232f62f68b7..f155d0da374 100644
--- a/print/tex-musixtex/Makefile
+++ b/print/tex-musixtex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2009/07/22 09:01:44 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2009/10/07 17:34:53 joerg Exp $
#
DISTNAME= musixtex-112
@@ -19,7 +19,12 @@ TEX_ACCEPTED= teTeX3
WRKSRC= ${WRKDIR}/musixtex-T112
NO_CONFIGURE= yes
-INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 texmf-local/web2c \
+ ${PKG_LOCALTEXMFPREFIX}/doc/musixtex \
+ ${PKG_LOCALTEXMFPREFIX}/fonts/tfm/musixtex \
+ ${PKG_LOCALTEXMFPREFIX}/fonts/source/musixtex \
+ ${PKG_LOCALTEXMFPREFIX}/tex/latex/musixtex \
+ ${PKG_LOCALTEXMFPREFIX}/web2c
.include "../../print/teTeX/module.mk"
@@ -33,37 +38,21 @@ do-build:
cd ${WRKSRC}/system/c-source; ${CC} -o musixflx musixflx.c
do-install:
- ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/doc/musixtex
- ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/fonts/tfm/musixtex
- ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/fonts/source/musixtex
- ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/musixtex
-
${INSTALL_DATA} ${WRKSRC}/doc/* \
- ${PKG_LOCALTEXMFPREFIX}/doc/musixtex
-
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/doc/musixtex
${INSTALL_DATA} ${WRKSRC}/tex/musixtex.fmt \
- ${PKG_LOCALTEXMFPREFIX}/web2c
-
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/web2c
${INSTALL_DATA} ${WRKSRC}/tex/* \
- ${PKG_LOCALTEXMFPREFIX}/tex/latex/musixtex
-
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/musixtex
${INSTALL_DATA} ${WRKSRC}/mf/*.mf \
- ${PKG_LOCALTEXMFPREFIX}/fonts/source/musixtex
-
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/fonts/source/musixtex
${INSTALL_DATA} ${WRKSRC}/tfm/*.tfm \
- ${PKG_LOCALTEXMFPREFIX}/fonts/tfm/musixtex
-
+ ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/fonts/tfm/musixtex
${INSTALL_PROGRAM} ${WRKSRC}/system/c-source/musixflx \
- ${PREFIX}/bin
-
+ ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/system/c-source/musixflx.1 \
- ${PREFIX}/${PKGMANDIR}/man1
-
-.if exists(${LOCALBASE}/bin/virtex)
- cd ${PREFIX}/bin ; ${LN} -sf virtex musixtex # teTeX2
-.else
- cd ${PREFIX}/bin ; ${LN} -sf tex musixtex # teTeX3
-.endif
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${LN} -s tex ${DESTDIR}${PREFIX}/bin/musixtex
${LOCALBASE}/bin/mktexlsr ${PKG_LOCALTEXMFPREFIX}