Changes

Jump to navigation Jump to search
1,977 bytes removed ,  16:02, 20 November 2012
m
{{Installation navbox}}
this page contains instructions how to get the ''latest'' ConTeXt up and running on OpenBSD 3.8+== Introduction ==
== The easiest way to install gmake ==the latest ConTeXt on OpenBSD is using [[ConTeXt_Standalone|ConTeXt Standalone]]'s Linux version and use it with OpenBSD's Linux emulation layer. Alternative, native methods may be described on this page in the future. The full installation is ~210M (without the 3rd party modules ~185M).
<code> $ sudo pkg_add gmake</code> == install teTeX 3.0 Using Linux Emulation == <code> $ sudo pkg_add teTex_base-3.0p3</code> this adds all the dependencies with newer pkg tools. if using older ones,add the other packages manually (<tt>teTeX_texmf, teTeX_base-fmt</tt>). strictly speaking, one doesn't need X11 for using teTeX, in this case installthe <tt>*-no_x11</tt> packages. == update pdftex == get the latest version from [http://sarovar.org/projects/pdftex sarovar]. <code> $ tar xvzf pdftex-1.30.6.tgz $ cd pdftex-1.30.6</code> apply the following diff (scratch the bashism and use <tt>gmake</tt>): <code> --- build.sh.orig Mon Feb 27 21:45:29 2006 +++ build.sh Mon Feb 27 23:32:31 2006 @@ -1,7 +1,7 @@ -#! /usr/bin/env bash +#!/bin/sh # $Id$ # builds new pdftex binaries -MAKE=make +MAKE=gmake STRIP=strip # this deletes all previous builds.</code> run the build:
<code>
$ sh sudo pkg_add rsync fedora_base $ sudo sysctl kern.emul.linux=1 $ mkdir $HOME/context $ cd $HOME/context $ ftp http://minimals.contextgarden.net/setup/buildfirst-setup.sh
</code>
when finished, replace the binaries (<tt>pdftex</tt> is only a symlink Modify this script to override <tt>pdfetexplatform=linux</tt>):.
<code>
$ sudo mv buildsh ./texk/web2c/pdfetex `which pdfetex`first-setup.sh --modules=all $ sudo mv buildexport PATH="$PATH:$HOME/texkcontext/web2ctex/pdfetex.pool `kpsewhich pdfetex.pool`texmf-linux/bin" $ sudo mv build/texk/web2c/ttf2afm `which ttf2afm`context --make $ sudo fmtutilcontext -sys --allversion
</code>
== update mpost ==This setup will use mkiv (the luatex version) and does not need either pdftex, or ruby.
this is optional. fetch the source from [http://sarovar.org/projects/metapost here] <code> $ bunzip2 metapost-0.901.tar.bz2 $ tar xvf metapost-0.901.tar $ cd metapost-0.901</code> apply a very similar diff as with pdftex (scratch the bashism and use <tt>gmake</tt>): <code> --- Build.orig Sat Mar 4 18:34:06 2006 +++ Build Sat Mar 4 18:34:15 2006 @@ -1,7 +1,7 @@ -#!/usr/bin/env bash +#!/bin/sh # $Id: Build,v 1.3 2005/05/08 15:55:26 taco Exp $ # builds new pdftex binaries -MAKE=make +MAKE=gmake STRIP=strip # this deletes all previous builds.</code> run the build: <code> $ ./Build $ sudo mkdir -p /usr/local/share/texmf-local/metapost/base $ sudo cp -p texmf/metapost/base/* /usr/local/share/texmf-local/metapost/base $ cd build/texk/web2c $ sudo mv mpost dvitomp mpware/dmp mpware/mpto mpware/newer mpware/makempx \ /usr/local/bin $ sudo mv mp.pool /usr/local/share/texmf/web2c/mp.pool $ sudo texhash $ sudo fmtutil-sys --byfmt mpost</code>  == upgrade ConTeXt == get the latest package from [http://www.pragma-ade.com/context/current/cont-tmf.zip here]. <code> $ cd /usr/local/share/texmf-local/ $ sudo unzip -o ~/cont-tmf.zip $ sudo texexec --make --all</code> the formats will end up in <tt>$HOME/.texmf-var/web2c/pdfetex/</tt> of the user doing the compiling. to make them globally accessible, one needs to copy them: <code> $ sudo mv $HOME/.texmf-var/web2c/pdfetex /var/texmf/web2c/ $ sudo texhash</code>{{Installation navbox}}
[[Category:Installation]]

Navigation menu