I'm with a high fever and sick as hell
Oh, get well soon.
Have a look at the mac_packager script:
for i in $( otool -L aMule.app/Contents/MacOS/amule \
aMule.app/Contents/MacOS/amuleweb \
aMule.app/Contents/MacOS/ed2k \
aMule.app/Contents/MacOS/amulecmd \
| sort -u | grep libwx_ | cut -d " " -f 1 ); do
cp $i aMule.app/Contents/Frameworks;
man otool tells us that the -L switch is used to
Display the names and version numbers of the shared libraries that the object file uses.. Object file in this case means the amule, amuleweb, ed2k and amulecmd applications. If you want to check for more applications, add them there.
Just as a reminder: | is the pipe character, it takes all output from one command and sends it as input to another command.
In our case it takes the names and version numbers of all shares libraries and sends it to the
sort -u command. This command sorts the names and removes all duplicates.
The sorted list without duplicates is then sent to the
grep filter command. The filter is
libwx_, this means only libraries with
libwx_ in their name will be used. The syntax to filter for multiple libraries would be
grep 'libname1\|libname2\|libname3'.
Finally
cut is used to separate the input data by a space (" ") and output only the first part. The input "/usr/lib/libnamea 1.2.3" would be separated to "/usr/lib/libnamea" and "1.2.3" and only "/usr/lib/libnamea" would be output.
In the end we get a list of library paths. We copy each of this libraries to the app bundle.
I believe the only thing to change is the grep command to include more libraries.