Index: tex/texlive_texmf-full/files/patch-texmf.cnf.diff
===================================================================
--- tex/texlive_texmf-full/files/patch-texmf.cnf.diff
+++ tex/texlive_texmf-full/files/patch-texmf.cnf.diff
@@ -0,0 +1,39 @@
+--- texmf/web2c/texmf.cnf.orig	2009-11-26 11:01:52.000000000 +0100
++++ texmf/web2c/texmf.cnf	2009-11-26 11:05:03.000000000 +0100
+@@ -53,15 +53,15 @@
+ 
+ % The tree containing the runtime files closely related to the specific
+ % program version used:
+-TEXMFMAIN = $SELFAUTOPARENT/texmf
++TEXMFMAIN = @@PREFIX@@/share/texmf
+ 
+ % The main distribution tree:
+-TEXMFDIST = $SELFAUTOPARENT/texmf-dist
++TEXMFDIST = @@PREFIX@@/share/texmf-dist
+ 
+ % A place for local additions to a "standard" texmf tree.
+ % This tree is not used for local configuration maintained by
+ % texconfig, it uses TEXMFCONFIG below.
+-TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local
++TEXMFLOCAL = @@PREFIX@@/share/texmf-local
+ 
+ % TEXMFSYSVAR, where texconfig-sys stores variable runtime data.
+ % With teTeX-3.0 or later, this must be set.
+@@ -69,7 +69,7 @@
+ %   TEXMFSYSVAR = $TEXMFMAIN
+ % For using a separate tree:
+ %   TEXMFSYSVAR = $SELFAUTOPARENT/texmf-var
+-TEXMFSYSVAR = $SELFAUTOPARENT/texmf-var
++TEXMFSYSVAR = @@PREFIX@@/share/texmf-var
+ 
+ % TEXMFSYSCONFIG, where texconfig-sys stores configuration data.
+ % With teTeX-3.0 or later, this must be set.
+@@ -77,7 +77,7 @@
+ %   TEXMFSYSCONFIG = $TEXMFMAIN
+ % For using a separate tree:
+ %   TEXMFSYSCONFIG = $SELFAUTOPARENT/texmf-config
+-TEXMFSYSCONFIG = $SELFAUTOPARENT/texmf-config
++TEXMFSYSCONFIG = @@PREFIX@@/share/texmf-config
+ 
+ % User texmf trees are allowed as follows.
+ % This used to be HOMETEXMF.
Index: tex/texlive_texmf-full/Portfile
===================================================================
--- tex/texlive_texmf-full/Portfile
+++ tex/texlive_texmf-full/Portfile
@@ -30,6 +30,9 @@
                sha1    a85d33e2915fd2bfad86e5a1ce498058a380d959 \
                rmd160  c932eaf4b3412275e769cfefd3271b864a546087
 use_configure  no
+patchfiles     patch-texmf.cnf.diff
+post-patch {   reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/texmf/web2c/texmf.cnf
+}
 build       {}
 #        reinplace "s|^OBSD_TMF.*$|OBSD_TMF = ${prefix}/share|" \
 #            ${worksrcpath}/texmf/web2c/texmf.cnf
@@ -52,4 +55,3 @@
 livecheck.type     regex
 livecheck.url       ${homepage}acquire.html
 livecheck.regex     "TeX Live (\[0-9\]+) "
-
Index: tex/texlive_base/Portfile
===================================================================
--- tex/texlive_base/Portfile
+++ tex/texlive_base/Portfile
@@ -34,34 +34,29 @@
 depends_lib     port:freetype port:fontconfig port:ncurses port:zlib \
                 port:libpng port:texinfo port:texi2html port:ghostscript \
                 port:ps2eps port:psutils port:gd2 port:t1lib \
-                port:xorg-libXp \
+                port:xorg-libXp port:clisp port:ffcall \
                 port:texlive_texmf-full
 
 #Note: macports' icu conflict with texlive's build
 
 depends_build-append   path:bin/perl:perl5
 
-configure.args  --mandir=${prefix}/share/man \
+configure.args  --with-tex-banner='TeX Live 2009/MacPorts' \
+                --mandir=${prefix}/share/man \
                 --infodir=${prefix}/share/info \
                 --datadir=${prefix}/share \
                 --disable-native-texlive-build \
                 --disable-dialog \
-                --disable-xdv2pdf --disable-xdvik --disable-xdvipdfmx \
+                --disable-xdv2pdf --disable-xdvik \
                 --with-system-freetype2 \
-                --with-freetype2-libdir=${prefix}/lib \
-                --with-freetype2-include=${prefix}/include \
                 --with-system-t1lib \
-                --with-t1lib-libdir=${prefix}/lib \
-                --with-t1lib-include=${prefix}/include \
-                #--with-icu-libdir=${prefix}/lib \
-                #--with-icu-include=${prefix}/include \
-                --with-system-pnglib --with-system-zlib \
+                --with-system-libpng --with-system-zlib \
                 --with-system-gd --with-fontconfig=${prefix} \
                 --with-system-ncurses --without-texi2html \
                 --disable-multiplatform --disable-threads --without-texinfo \
-                --without-xdvipdfmx --without-texi2html --without-ps2eps \
-                --without-luatex --without-xindy --without-t1utils \
-                --without-x --without-detex --without-psutils \
+                --disable-xdvipdfmx --disable-ps2eps \
+                --disable-t1utils \
+                --without-x --disable-psutils \
                 --without-dvi2tty
 
 if { ! [variant_isset no_x11] } { 
@@ -80,9 +75,9 @@
 }
 
 post-activate   {
-        system "mktexlsr"
-        system "fmtutil-sys --missing"
-        system "updmap-sys --syncwithtrees"
+        system "${prefix}/bin/mktexlsr"
+        system "${prefix}/bin/fmtutil-sys --all"
+        system "${prefix}/bin/updmap-sys --syncwithtrees"
 }
 
 if {![variant_isset no_x11] && ![variant_isset motif] && ![variant_isset xaw] && ![variant_isset xaw3d] && ![variant_isset nextaw]} {

