2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
source $makeWrapper
|
2005-03-11 13:00:28 +01:00
|
|
|
|
|
|
|
postInstall() {
|
|
|
|
mv $out/bin $out/bin-orig
|
|
|
|
mkdir $out/bin
|
|
|
|
|
|
|
|
for i in $out/bin-orig/*; do
|
|
|
|
echo "wrapping $(basename $i)"
|
|
|
|
# !!! TODO: figure out the MONO_GAC_PREFIX automatically
|
|
|
|
makeWrapper "$i" "$out/bin/$(basename $i)" \
|
2005-03-13 21:43:04 +01:00
|
|
|
--prefix PATH ':' "$(dirname $(type -p mono))" \
|
|
|
|
--prefix LD_LIBRARY_PATH ':' "$sqlite/lib" \
|
|
|
|
--prefix LD_LIBRARY_PATH ':' "$libgnomeui/lib/libglade/2.0" \
|
|
|
|
--prefix MONO_GAC_PREFIX ':' "$gtksharp"
|
2005-03-11 13:00:28 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
# !!! hack
|
|
|
|
export ALL_INPUTS="$out $pkgs"
|
|
|
|
|
|
|
|
find $out -name "*.dll.config" -o -name "*.exe.config" | while read configFile; do
|
|
|
|
echo "modifying config file $configFile"
|
|
|
|
$monoDLLFixer "$configFile"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|