$OpenBSD: patch-texmf_web2c_texmfcnf_lua,v 1.1 2012/01/10 18:04:31 edd Exp $
--- texmf/web2c/texmfcnf.lua.origy	Mon Jun  6 12:28:45 2011
+++ texmf/web2c/texmfcnf.lua	Mon Dec 26 13:42:48 2011
@@ -3,9 +3,6 @@
 -- ConTeXt needs a properly expanded TEXMFLOCAL, so here is a
 -- bit of lua code to make that happen
 
-local texmflocal = resolvers.prefixes.selfautoparent();
-texmflocal = string.gsub(texmflocal, "20%d%d$", "texmf-local");
-
 return {
 
     type    = "configuration",
@@ -41,10 +38,13 @@ return {
             --     "selfautoparent:/texmf/web2c",
             --     "selfautoparent:",
             -- }
+	    
+	    -- OpenBSD uses the old teTeX path convention
+	    TEXMFROOT	    = "${TRUEPREFIX}/share",
 
             -- only used for FONTCONFIG_PATH & TEXMFCACHE in TeX Live
 
-            TEXMFSYSVAR     = "selfautoparent:texmf-var",
+            TEXMFSYSVAR     = "$TEXMFROOT/texmf-var",
             TEXMFVAR        = "home:.texlive2011/texmf-var",
 
             -- We have only one cache path but there can be more. The first writable one
@@ -61,15 +61,15 @@ return {
             -- By using prefixes we don't get expanded paths in the cache __path__
             -- entry. This makes the tex root relocatable.
 
-            TEXMFOS         = "selfautodir:",
-            TEXMFSYSTEM     = "selfautoparent:$SELFAUTOSYSTEM",
-            TEXMFMAIN       = "selfautoparent:texmf",
-            TEXMFCONTEXT    = "selfautoparent:texmf-dist",
+            TEXMFOS         = "$TEXMFROOT",
+            TEXMFSYSTEM     = "$TEXMFROOT/texmf-sys",
+            TEXMFMAIN       = "$TEXMFROOT/texmf",
+            TEXMFCONTEXT    = "$TEXMFROOT/texmf-dist",
 
-            TEXMFLOCAL      = texmflocal,
-            TEXMFSYSCONFIG  = "selfautoparent:texmf-config",
-            TEXMFFONTS      = "selfautoparent:texmf-fonts",
-            TEXMFPROJECT    = "selfautoparent:texmf-project",
+            TEXMFLOCAL      = "$TEXMFROOT/texmf-local",
+            TEXMFSYSCONFIG  = "$TEXMFROOT/texmf-config",
+            TEXMFFONTS      = "$TEXMFROOT/texmf-fonts",
+            TEXMFPROJECT    = "$TEXMFROOT/texmf-project",
 
             TEXMFHOME       = "home:texmf",
          -- TEXMFHOME       = os.name == "macosx" and "home:Library/texmf" or "home:texmf",
