--- deliantra/Deliantra-Client/bin/deliantra 2008/09/26 04:45:48 1.77 +++ deliantra/Deliantra-Client/bin/deliantra 2008/09/30 03:05:07 1.78 @@ -51,30 +51,10 @@ if ($^O eq "MSWin32") { # pango is relocatable on win32 - } elsif (-e "$root/pangoversion") { - open my $fh, "<:perlio", "$root/pangoversion" - or die "pangoversion: $!"; - my $PANGO = <$fh>; - # unix, need to patch pango rc file - open my $fh, "<:perlio", "$root/usr/lib/pango/$PANGO/module-files.d/libpango1.0-0.modules" - or die "$root/usr/lib/$PANGO/module-files.d/libpango1.0-0.modules: $!"; - local $/; - my $rc = <$fh>; - $rc =~ s/^\//$root\//gm; # replace abs paths by relative ones - - mkdir "$root/pango-modules"; - open my $fh, ">:perlio", "$root/pango-modules/pango.modules" - or die "$root/pango-modules/pango.modules: $!"; - print $fh $rc; - - $ENV{PANGO_RC_FILE} = "$root/pango.rc"; - open my $fh, ">:perlio", $ENV{PANGO_RC_FILE} - or die "$ENV{PANGO_RC_FILE}: $!"; - print $fh "[Pango]\nModuleFiles = $root/pango-modules\n"; } else { # OS X - $ENV{FC_CONFIG_FILE} = "$root/fonts.conf"; # no effect??!?! - $ENV{FC_CONFIG_DIR} = $root; # no effect??!?! + $ENV{FONTCONFIG_FILE} = "$root/fonts.conf"; # no effect??!?! + $ENV{FONTCONFIG_DIR} = $root; # no effect??!?! $ENV{PANGO_RC_FILE} = "$root/pango.rc"; $ENV{DYLD_LIBRARY_PATH} = $root; chdir $root; # for pango modules, maybe other things