aboutsummaryrefslogtreecommitdiffstats
path: root/print/musixtex/scripts/configure
blob: 3b1dd04241847cf182bdc3c87e53dff404eb30e1 (plain) (blame)
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
#!/bin/sh
set +x
cd $WRKSRC || exit 1

examples="angescao.tex angescax.tex avemaria.tex avemario.tex avemarix.tex \
         canticor.tex canticox.tex fantaisc.tex fantaisd.tex fantaisi.tex \
         gloriab.tex glorias.tex gloriax.tex gymnoman.tex ilestne.tex \
         ilestnex.tex marcello.tex onuitbri.tex parnasum.tex souvenir.tex \
         souvenix.tex traeumer.tex widor.tex widor_16.tex widor_20.tex"
              
cat > Makefile <<END
all:
    (cd systems/c-source; cc -O2 -o ../../musixflx musixflx.c)
    (cd tex; export TEXFONTS=${WRKSRC}/tfm:; \\
        initex '&tex musixtex.ins \dump')

install:
    install -c -s -o bin -g bin musixflx $PREFIX/bin/
    (cd $PREFIX/bin; ln -sf virtex musixtex)
    install -c -o bin -g bin mf/*.mf $PREFIX/share/texmf/mf/
    install -c -o bin -g bin tfm/*.tfm $PREFIX/share/texmf/fonts/tfm/
    install -c -o bin -g bin tex/musixtex.fmt $PREFIX/share/texmf/ini/
    install -c -o bin -g bin tex/*.tex tex/*.sty $PREFIX/share/texmf/tex/
    install -c -o bin -g bin doc/musixdoc.tex  doc/musixdoc.sty doc/backgrnd.sty \\
        $PREFIX/share/texmf/documentation/
    mkdir -p $PREFIX/share/texmf/documentation/musixtex.examples
    for f in $examples; do install -c -o bin -g bin  examples/\$\$f \\
        $PREFIX/share/texmf/documentation/musixtex.examples/; done
END

exit 0