blob: 737557cac21c6b5a06dfec0f3e813d6aeeb5a212 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# $NetBSD: Makefile,v 1.13 2005/11/11 18:50:25 tonio Exp $
#
DISTNAME= musixtex-112
PKGNAME= tex-${DISTNAME}
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=macros/musixtex/taupin/}
DISTFILES= musixtex-T112.tar.gz
MAINTAINER= dgriffi@cs.csubak.edu
HOMEPAGE= http://icking-music-archive.sunsite.dk/
COMMENT= TeX macros to typeset music
TEX_ACCEPTED= teTeX2 teTeX3
WRKSRC= ${WRKDIR}/musixtex-T112
NO_CONFIGURE= yes
TEXMF= ${PKG_TEXMFPREFIX}
TEXMF_CNF= ${PKG_TEXMFPREFIX}/web2c/texmf.cnf
.include "../../mk/bsd.prefs.mk"
.if exists(${LOCALBASE}/bin/initex)
INITEX= initex # teTeX2
.else
INITEX= tex -ini # teTeX3
.endif
INSTALLATION_DIRS= bin man/man1
do-build:
@${ECHO} "======> Building musixtex.fmt"
${CP} -f ${WRKSRC}/system/dos/musixtex.ins \
${WRKSRC}/tex
cd ${WRKSRC}/tex ; \
(TEXFONTS=${WRKSRC}/tfm ${INITEX} '&tex musixtex.ins \dump')
@${ECHO} "======> Building musixflx executable"
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
${INSTALL_DATA} ${WRKSRC}/tex/musixtex.fmt \
${PKG_LOCALTEXMFPREFIX}/web2c
${INSTALL_DATA} ${WRKSRC}/tex/* \
${PKG_LOCALTEXMFPREFIX}/tex/latex/musixtex
${INSTALL_DATA} ${WRKSRC}/mf/*.mf \
${PKG_LOCALTEXMFPREFIX}/fonts/source/musixtex
${INSTALL_DATA} ${WRKSRC}/tfm/*.tfm \
${PKG_LOCALTEXMFPREFIX}/fonts/tfm/musixtex
${INSTALL_PROGRAM} ${WRKSRC}/system/c-source/musixflx \
${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/system/c-source/musixflx.1 \
${PREFIX}/man/man1
.if exists(${LOCALBASE}/bin/virtex)
cd ${PREFIX}/bin ; ${LN} -sf virtex musixtex # teTeX2
.else
cd ${PREFIX}/bin ; ${LN} -sf tex musixtex # teTeX3
.endif
${LOCALBASE}/bin/texconfig rehash
post-install:
@${ECHO} "======> Building musixdoc.ps"
cd ${PKG_LOCALTEXMFPREFIX}/doc/musixtex ; \
latex musixdoc ; \
musixflx musixdoc ; \
latex musixdoc ; \
makeindex musixdoc.idx ; \
latex musixdoc ; \
makeindex musixdoc.idx ; \
latex musixdoc ; \
dvips musixdoc.dvi -o musixdoc.ps
.include "../../mk/tex.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|