1 | #!/bin/bash |
1 | #!/bin/bash |
2 | |
2 | |
3 | # Convert a gtk2-perl program to a standalone OS X binary |
3 | # Convert a gtk2-perl program to a standalone OS X binary |
4 | |
4 | |
|
|
5 | #port install libsdl libsdl_mixer libsdl_image libvorbis libpng jpeg pango db46 libogg p5-libwww-perl p5-yaml |
5 | # need to patch libSDL_image from /opt/local/lib/libjpeg.dylib to ./libjpeg.62.dylib |
6 | # need to patch libSDL_image from /opt/local/lib/libjpeg.dylib to ./libjpeg.62.dylib |
|
|
7 | # ln -s db46/db.h /opt/local/include |
|
|
8 | # ln -s db46/libdb.dylib /opt/local/lib |
|
|
9 | # /opt/local/bin/cpan Pod::POM |
6 | |
10 | |
7 | #export MACOSX_DEPLOYMENT_TARGET=10.3 # maybe it helps |
11 | #export MACOSX_DEPLOYMENT_TARGET=10.3 # maybe it helps |
8 | export MACOSX_DEPLOYMENT_TARGET=10.5 # nope |
12 | #export MACOSX_DEPLOYMENT_TARGET=10.5 # nope |
9 | |
13 | |
10 | cvs update |
14 | cvs update |
11 | |
15 | |
12 | PERL=/opt/local |
16 | PERL=/opt/local |
13 | PERLLIB=/usr/lib/perl5 |
17 | PERLLIB=/usr/lib/perl5 |