summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorhubertf <hubertf>2005-02-10 23:49:25 +0000
committerhubertf <hubertf>2005-02-10 23:49:25 +0000
commit29fee250c48478e3d312c1f144ca962598dcabde (patch)
treea73ef7370358bd48e84f81d1c03f254d25dc3cb4 /print
parentab08a66d36745938125b60450f355f1c306d7b85 (diff)
downloadpkgsrc-29fee250c48478e3d312c1f144ca962598dcabde.tar.gz
Make this work with teTeX3 (in addition to teTeX2):
teTeX3 doesn't come with an "initex" command, one has to use "tex -ini".
Diffstat (limited to 'print')
-rw-r--r--print/tex-musixtex/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/print/tex-musixtex/Makefile b/print/tex-musixtex/Makefile
index 4e0480ef8d3..d1346f5a5f2 100644
--- a/print/tex-musixtex/Makefile
+++ b/print/tex-musixtex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2005/01/18 00:08:17 hubertf Exp $
+# $NetBSD: Makefile,v 1.9 2005/02/10 23:49:25 hubertf Exp $
#
DISTNAME= musixtex-112
@@ -11,7 +11,7 @@ MAINTAINER= dgriffi@cs.csubak.edu
HOMEPAGE= http://icking-music-archive.sunsite.dk/
COMMENT= TeX macros to typeset music
-DEPENDS+= teTeX-2.0*:../../print/teTeX
+DEPENDS+= teTeX>=2:../../print/teTeX
WRKSRC= ${WRKDIR}/musixtex-T112
NO_CONFIGURE= yes
@@ -19,12 +19,19 @@ NO_CONFIGURE= yes
TEXMF= ${LOCALBASE}/share/texmf
TEXMF_CNF= ${LOCALBASE}/share/texmf/web2c/texmf.cnf
+.include "../../mk/bsd.prefs.mk"
+.if exists(${LOCALBASE}/bin/initex)
+INITEX= initex # teTeX2
+.else
+INITEX= tex -ini # teTeX3
+.endif
+
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')
+ (TEXFONTS=${WRKSRC}/tfm ${INITEX} '&tex musixtex.ins \dump')
@${ECHO} "======> Building musixflx executable"
cd ${WRKSRC}/system/c-source; ${CC} -o musixflx musixflx.c