summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-10-12 03:00:12 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-10-12 03:00:12 +0000
commit29342fc00f921cf586b37ee1f757d5bface15a73 (patch)
tree0f0867646f2a833c9770086788998cea8a2b8d15 /print
parentJean-Marc Zucconi's dviselect port. (diff)
Jean-Marc Zucconi's updates to these ports.
Submitted by: jmz
Notes
Notes: svn path=/head/; revision=217
Diffstat (limited to 'print')
-rw-r--r--print/latex/Makefile14
-rw-r--r--print/latex/pkg-plist7
-rw-r--r--print/tex/Makefile70
-rw-r--r--print/tex/pkg-plist2
-rw-r--r--print/tex/scripts/configure35
5 files changed, 62 insertions, 66 deletions
diff --git a/print/latex/Makefile b/print/latex/Makefile
index 8f6fd1b52692..8650982ca650 100644
--- a/print/latex/Makefile
+++ b/print/latex/Makefile
@@ -55,13 +55,15 @@ build: configure
install:
@echo "===> Installing for ${DISTNAME}"
@(/usr/bin/install -c -m 644 ${WRKSRC}/base/latex.fmt \
- /usr/local/lib/texmf/ini/)
- @(cd ${WRKSRC}/tfm; install -c -m 644 *.tfm /usr/local/lib/texmf/fonts/tfm)
- @(cd ${WRKSRC}/mf; install -c -m 644 *.mf /usr/local/lib/texmf/mf)
- @(cd ${WRKSRC}/base; install -c -m 644 latexbug.tex testpage.tex \
+ ${PREFIX}/lib/texmf/ini/)
+ @(cd ${WRKSRC}/tfm; install -c -m 644 *.tfm ${PREFIX}/lib/texmf/fonts/tfm)
+ @(cd ${WRKSRC}/mf; install -c -m 644 *.mf ${PREFIX}/lib/texmf/mf)
+ @(cd ${WRKSRC}/base; for f in latexbug.tex testpage.tex \
lablst.tex idx.tex nfssfont.tex small2e.tex sample2e.tex docstrip.tex \
- *.cls *.clo *.sty *.fd *.def *.cfg /usr/local/lib/texmf/tex)
- @(cd ${WRKSRC}/base; install -c -m 644 *.ist /usr/local/lib/texmf/tex)
+ *.cls *.clo *.sty *.fd *.def *.cfg ; do \
+ if [ -f $$f ]; then install -c -m 644 $$f ${PREFIX}/lib/texmf/tex; fi; done)
+ @mkdir -p ${PREFIX}/lib/texmf/makeindx;
+ @(cd ${WRKSRC}/base; install -c -m 644 *.ist ${PREFIX}/lib/texmf/makeindx)
.include <bsd.port.mk>
diff --git a/print/latex/pkg-plist b/print/latex/pkg-plist
index 95fc03b2e81c..e18266d39a14 100644
--- a/print/latex/pkg-plist
+++ b/print/latex/pkg-plist
@@ -1,4 +1,5 @@
-@cd /usr/local/lib/texmf
+@cd /usr/local
+@cd lib/texmf
@mode 644
@owner bin
fonts/tfm/cmbsy5.tfm
@@ -160,6 +161,6 @@ tex/latex209.def
tex/sfonts.def
tex/slides.def
tex/texsys.cfg
-tex/gglo.ist
-tex/gind.ist
ini/latex.fmt
+makeindx/gglo.ist
+makeindx/gind.ist
diff --git a/print/tex/Makefile b/print/tex/Makefile
index 886ab5b1edb0..9d0a1e854136 100644
--- a/print/tex/Makefile
+++ b/print/tex/Makefile
@@ -9,7 +9,7 @@ EXTRACT_ONLY= web2c.tar.gz web.tar.gz tex_base.tar.gz cm_tfm.tar.gz \
FTPGET= ${WRKDIR}/ftpget
-TEXDIR= ${.CURDIR}
+CURDIR= ${.CURDIR}
DISTNAME= web2c-6.1
@@ -27,7 +27,6 @@ BASES= mf.base cmmf.base
FORMATS= tex.fmt
CFLAGS= -O2
-PREFIX= /usr/local
pre-fetch:
@if [ ! -d ${DISTDIR} ]; then mkdir -p ${DISTDIR}; fi
@@ -50,102 +49,71 @@ fetch-file:
web2c.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/systems/web2c file_in=web2c.tar.gz file_out=$@; \
fi;)
web.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/systems/web2c file_in=web.tar.gz file_out=$@; \
fi;)
cm_mf.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/fonts file_in=cm/mf.tar.gz file_out=$@; \
fi;)
cm_tfm.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/fonts file_in=cm/tfm.tar.gz file_out=$@; \
fi;)
mf_lib.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/systems/knuth file_in=lib.tar.gz file_out=$@; \
fi;)
modes.mf:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/systems/web2c file_in=modes.mf file_out=$@; \
fi;)
tex_base.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/macros file_in=plain/base.tar.gz file_out=$@; \
fi;)
latex_base.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/macros file_in=latex/base.tar.gz file_out=$@; \
fi;)
latex_mf.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/fonts file_in=latex/mf.tar.gz file_out=$@; \
fi;)
latex_tfm.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
- make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
+ make -f ${CURDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/fonts file_in=latex/tfm.tar.gz file_out=$@; \
fi;)
-CONFIGURE_COOKIE= ${.CURDIR}/.configure_done
-
-configure: extract ${CONFIGURE_COOKIE}
-
-${CONFIGURE_COOKIE}:
- @echo "===> Configuring for ${DISTNAME}"
- @if [ -f ${SCRIPTDIR}/configure ]; then \
- sh ${SCRIPTDIR}/configure ${PORTSDIR} ${.CURDIR} ${WRKSRC}; \
- fi
- @(cd ${WRKSRC}; LEX=lex; YACC=yacc; export LEX YACC; \
- ./configure --prefix=${PREFIX})
- @(cd ${WRKDIR}; rm -rf mf; mkdir mf; cd mf; \
- for f in `find ../cm -name \*.mf -print`; do \
- if [ ! -f `basename $$f` ]; then \
- ln -s $$f; \
- fi; \
- done;\
- for f in `find ../lib -name \*.mf -print`; do \
- if [ ! -f `basename $$f` ]; then \
- ln -s $$f; \
- fi; \
- done;\
- cp ${DISTDIR}/modes.mf .; )
-.if defined (MAKE_LATEX)
- @(cd ${WRKDIR}/mf; \
- for f in `find ../latex -name \*.mf -print`; do \
- if [ ! -f `basename $$f` ]; then \
- ln -s $$f; \
- fi; \
- done;)
-.endif
- @touch -f ${CONFIGURE_COOKIE}
-
build: configure
@echo "===> Building for ${DISTNAME}"
@(cd ${WRKSRC}/web2c; make triptrap)
@(cd ${WRKSRC}/web2c; make run-triptrap)
@(cd ${WRKSRC}/web2c; make clean-triptrap)
+
@(cd ${WRKSRC}; make CFLAGS="${CFLAGS}" programs)
@(cd ${WRKSRC}; MFINPUTS=${WRKDIR}/mf; export MFINPUTS;\
make bases="${BASES}" bases)
.if defined (MAKE_LATEX)
@(cd ${WRKDIR}/latex/base; TEXPOOL=${WRKSRC}/web2c/tex; export TEXPOOL; \
${WRKSRC}/web2c/tex/initex unpack.ins)
- @(cd ${WRKDIR}/latex/base; TEXFONTS=${WRKSRC}/cm/tfm:${WRKSRC}/latex/tfm; \
- export TEXFONTS; TEXINPUTS={WRKDIR}/lib:.; export TEXINPUTS; \
+ @(cd ${WRKDIR}/latex/base; TEXFONTS=${WRKDIR}/cm/tfm:${WRKDIR}/latex/tfm; \
+ export TEXFONTS; TEXINPUTS=${WRKDIR}/lib:.; export TEXINPUTS; \
+ TEXPOOL=${WRKSRC}/web2c/tex; export TEXPOOL;\
${WRKSRC}/web2c/tex/initex latex.ltx)
.endif
@(cd ${WRKSRC}/web2c; TEXINPUTS=${WRKDIR}/lib:${WRKSRC}; export TEXINPUTS;\
@@ -172,11 +140,11 @@ install:
@(cd ${WRKDIR}/lib; install -c -m 644 *.tex ${PREFIX}/lib/texmf/tex)
@(cd ${WRKDIR}/plain/base; install -c -m 644 *.tex ${PREFIX}/lib/texmf/tex)
.if defined(MAKE_LATEX)
- @(cd ${WRKDIR}/latex/base; install -c -m 644 latexbug.tex testpage.tex \
+ @(cd ${WRKSRC}/latex/base; for f in latexbug.tex testpage.tex \
lablst.tex idx.tex nfssfont.tex small2e.tex sample2e.tex docstrip.tex \
- *.cls *.clo *.sty *.fd *.def *.cfg ${PREFIX}/lib/texmf/tex)
- @mkdir -p ${PREFIX}/lib/texmf/MakeIndex
- @(cd ${WRKDIR}/latex/base; install -c -m 644 *.ist ${PREFIX}/lib/texmf/tex)
+ *.cls *.clo *.sty *.fd *.def *.cfg ; do \
+ if [ -f $f ]; then install -c -m 644 $f ${PREFIX}/lib/texmf/tex; fi; done)
+ @(cd ${WRKDIR}/latex/base; install -c -m 644 *.ist ${PREFIX}/lib/makeindex)
.endif
.include <bsd.port.mk>
diff --git a/print/tex/pkg-plist b/print/tex/pkg-plist
index a0bd57bf0479..5f4aeb77f44a 100644
--- a/print/tex/pkg-plist
+++ b/print/tex/pkg-plist
@@ -28,7 +28,6 @@ bin/weave
bin/pooltype
@mode 644
lib/texmf/fonts/texfonts.map
-lib/texmf/fonts/tfm
lib/texmf/fonts/tfm/cmb10.tfm
lib/texmf/fonts/tfm/cmbsy10.tfm
lib/texmf/fonts/tfm/cmbx10.tfm
@@ -252,7 +251,6 @@ lib/texmf/tex/plain.tex
lib/texmf/tex/story.tex
lib/texmf/tex/testfont.tex
lib/texmf/tex/webmac.tex
-lib/texmf/ini
lib/texmf/ini/tex.fmt
lib/texmf/ini/plain.fmt
lib/texmf/ini/mf.base
diff --git a/print/tex/scripts/configure b/print/tex/scripts/configure
index e29ded4b542a..a42cbad6a7b7 100644
--- a/print/tex/scripts/configure
+++ b/print/tex/scripts/configure
@@ -1,12 +1,39 @@
#!/bin/sh
-#
-# The subdirectory searching in kpathsearch sometimes fails (don't know why)
+# The subdirectory searching in kpathsearch is bugged for some paths
# so let's disable the feature (It can be reenabled with the proper environment
# variables though.
#
-cd ${WRKSRC}/kpathsea || exit 1;
+cd $WRKSRC/kpathsea || exit 1;
mv paths.h.in paths.h.in.orig || exit 1;
sed -e s://:/: <paths.h.in.orig >paths.h.in || exit 1;
-exit 0; \ No newline at end of file
+cd $WRKSRC || exit 1;
+LEX=lex; YACC=yacc; export LEX YACC
+./configure --prefix=$PREFIX
+
+cd $WRKDIR || exit 1;
+rm -rf mf
+mkdir mf
+cd mf
+for f in `find ../cm -name \*.mf -print`; do
+ if [ ! -f `basename $f` ]; then
+ ln -s $f
+ fi
+done
+for f in `find ../lib -name \*.mf -print`; do
+ if [ ! -f `basename $f` ]; then
+ ln -s $f;
+ fi
+done
+if [ -d ../latex ]; then
+ for f in `find ../latex -name \*.mf -print`; do
+ if [ ! -f `basename $f` ]; then
+ ln -s $f
+ fi
+ done
+fi
+
+cp $DISTDIR/modes.mf . || exit 1;
+
+exit 0;