summaryrefslogtreecommitdiff
path: root/print/tex-musixtex/Makefile
blob: 35b22f8e26a69b1839b9e7bd6b238df052a4c662 (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
# $NetBSD: Makefile,v 1.4 2003/04/27 17:16:15 sommerfeld Exp $
#

DISTNAME=	musixtex-109
PKGNAME=	tex-${DISTNAME}
WRKSRC=		${WRKDIR}/musixtex-T109
CATEGORIES=	print
#MASTER_SITES=	ftp://ftp.tex.ac.uk/tex-archive/macros/musixtex/taupin/
MASTER_SITES=	${MASTER_SITE_TEX_CTAN:=macros/musixtex/taupin/}
DISTFILES=	musixtex-T109.tar.gz

MAINTAINER=	dgriffi@cs.csubak.edu
HOMEPAGE=	http://icking-music-archive.sunsite.dk/
COMMENT=	TeX macros to typeset music

DEPENDS+=       teTeX-1.0*:../../print/teTeX

NO_CONFIGURE=	yes

TEXMF=		${LOCALBASE}/share/texmf
TEXMF_CNF=	${LOCALBASE}/share/texmf/web2c/texmf.cnf

do-build:
	@${ECHO} "======> Building musixtex.fmt"
	cd ${WRKSRC}/tex ; \
		(TEXFONTS=${WRKSRC}/tfm initex '&tex musixtex.ins \dump')
	@${ECHO} "======> Building musixflx executable"
	cd ${WRKSRC}/systems/c-source; ${CC} -o musixflx musixflx.c

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/texmf/doc/musixtex
	${INSTALL_DATA_DIR} ${PREFIX}/share/texmf/fonts/tfm/musixtex
	${INSTALL_DATA_DIR} ${PREFIX}/share/texmf/fonts/source/musixtex
	${INSTALL_DATA_DIR} ${PREFIX}/share/texmf/tex/latex/musixtex
	${INSTALL_DATA} ${WRKSRC}/doc/* \
		${PREFIX}/share/texmf/doc/musixtex
	${INSTALL_DATA} ${WRKSRC}/tex/musixtex.fmt \
		${PREFIX}/share/texmf/web2c
	${INSTALL_DATA} ${WRKSRC}/mf/*.mf \
		${PREFIX}/share/texmf/fonts/source/musixtex
	${INSTALL_DATA} ${WRKSRC}/tfm/*.tfm \
		${PREFIX}/share/texmf/fonts/tfm/musixtex
	${INSTALL_DATA} ${WRKSRC}/tex/* \
		${PREFIX}/share/texmf/tex/latex/musixtex
	${INSTALL_PROGRAM} ${WRKSRC}/systems/c-source/musixflx \
		${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/systems/c-source/musixflx.1 \
		${PREFIX}/man/man1
	cd ${PREFIX}/bin ; ${LN} -sf virtex musixtex
	${LOCALBASE}/bin/texconfig rehash

post-install:
	@${ECHO} "======> Building musixdoc.ps"
	cd ${PREFIX}/share/texmf/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/bsd.pkg.mk"