ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/makebin.osx
(Generate patch)

Comparing deliantra/Deliantra-Client/makebin.osx (file contents):
Revision 1.10 by root, Fri Dec 5 14:49:09 2008 UTC vs.
Revision 1.19 by root, Sat Apr 24 08:05:16 2010 UTC

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.8.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
8export MACOSX_DEPLOYMENT_TARGET=10.5 # nope 12#export MACOSX_DEPLOYMENT_TARGET=10.5 # nope
13
14cvs update
9 15
10PERL=/opt/local 16PERL=/opt/local
11PERLLIB=/usr/lib/perl5 17PERLLIB=/usr/lib/perl5
12 18
13umask 022 19umask 022
14 20
15if true; then 21if true; then
16 for mod in AnyEvent EV JSON-XS deliantra/Deliantra Compress-LZF BDB; do 22 for mod in common-sense AnyEvent EV JSON-XS Compress-LZF BDB Guard deliantra/Deliantra; do
17 ( 23 (
24 mkdir -p /root/src/$mod || exit 77
18 cd /root/src/$mod 25 cd /root/src/$mod
19 set -x 26 set -x
20 pwd 27 pwd
21 rsync -avPessh 10.0.0.1:src/$mod/. . --del 28 rsync -avPessh 10.0.0.1:src/$mod/. . --del --exclude "*.tar.gz" --delete-excluded
22 $PERL/bin/perl Makefile.PL </dev/null 29 $PERL/bin/perl Makefile.PL </dev/null
23 make clean 30 make clean
24 $PERL/bin/perl Makefile.PL </dev/null 31 $PERL/bin/perl Makefile.PL </dev/null
25 make install || exit 32 make install || exit
26 make clean 33 make clean
34 perl -ne '/^(resources\/.*)/ and print "$1;root/Deliantra/Client/private/$1\n"' <MANIFEST 41 perl -ne '/^(resources\/.*)/ and print "$1;root/Deliantra/Client/private/$1\n"' <MANIFEST
35 42
36 echo "docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst" 43 echo "docwiki.pst;root/Deliantra/Client/private/resources/docwiki.pst"
37 44
38#pangoversion;root/pangoversion 45#pangoversion;root/pangoversion
39#/opt/local/lib/libglib-2.0.so.0;shlib/darwin-2level/libglib-2.0.dylib 46#/opt/local/lib/libglib-2.0.so.0;shlib/darwin-multi-2level/libglib-2.0.dylib
40#/lib/libgcc_s.so.1;shlib/darwin-2level/libgcc_s.so.1 47#/lib/libgcc_s.so.1;shlib/darwin-multi-2level/libgcc_s.so.1
41#/opt/local/lib/libstdc++.so.6;shlib/darwin-2level/libstdc++.so.6 48#/opt/local/lib/libstdc++.so.6;shlib/darwin-multi-2level/libstdc++.so.6
42#/opt/local/lib/libaudio.so.2;shlib/darwin-2level/libaudio.so.2 49#/opt/local/lib/libaudio.so.2;shlib/darwin-multi-2level/libaudio.so.2
43 50
44 ( echo "[Pango]"; echo "ModuleFiles = pango.modules" ) > pango.rc 51 ( echo "[Pango]"; echo "ModuleFiles = pango.modules" ) > pango.rc
45 echo "pango.rc;root/pango.rc" 52 echo "pango.rc;root/pango.rc"
46 53
47 ( 54 (
57 db-4.6 \ 64 db-4.6 \
58 glib-2.0.0 gobject-2.0.0 gmodule-2.0.0 \ 65 glib-2.0.0 gobject-2.0.0 gmodule-2.0.0 \
59 pango-1.0.0 pangoft2-1.0.0 \ 66 pango-1.0.0 pangoft2-1.0.0 \
60 SDL-1.2.0 SDL_mixer-1.2.0 SDL_image-1.2.0 \ 67 SDL-1.2.0 SDL_mixer-1.2.0 SDL_image-1.2.0 \
61 vorbisfile vorbis.0 ogg.0 \ 68 vorbisfile vorbis.0 ogg.0 \
62 png12 jpeg.62 z.1 \ 69 png12.0 jpeg.8 tiff.3 z.1 \
63 fontconfig.1 expat.1 freetype.6 intl.8 iconv.2; 70 fontconfig.1 expat.1 freetype.6 intl.8 iconv.2;
64 do 71 do
65 echo "/opt/local/lib/lib$lib.dylib;shlib/darwin-2level/lib$lib.dylib" 72 echo "/opt/local/lib/lib$lib.dylib;shlib/darwin-multi-2level/lib$lib.dylib"
66 done 73 done
67 74
68 cat >>fonts.conf <<EOF
69<?xml version="1.0"?>
70<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
71<fontconfig>
72
73 <match target="pattern"> <test qual="any" name="family"> <string>mono</string> </test> <edit name="family" mode="assign"> <string>monospace</string> </edit> </match>
74
75 <match target="pattern"> <test qual="any" name="family"> <string>sans serif</string> </test> <edit name="family" mode="assign"> <string>sans-serif</string> </edit> </match>
76
77 <match target="pattern"> <test qual="any" name="family"> <string>sans</string> </test> <edit name="family" mode="assign"> <string>sans-serif</string> </edit> </match>
78
79 <cachedir>fontconfig-cache</cachedir>
80
81 <config>
82 <blank>
83 <int>0x0020</int><int>0x00A0</int><int>0x00AD</int><int>0x034F</int><int>0x0600</int><int>0x0601</int><int>0x0602</int><int>0x0603</int><int>0x06DD</int><int>0x070F</int><int>0x115F</int><int>0x1160</int><int>0x1680</int><int>0x17B4</int><int>0x17B5</int><int>0x180E</int><int>0x2000</int><int>0x2001</int><int>0x2002</int><int>0x2003</int><int>0x2004</int><int>0x2005</int><int>0x2006</int><int>0x2007</int><int>0x2008</int><int>0x2009</int><int>0x200A</int><int>0x200B</int><int>0x200C</int><int>0x200D</int><int>0x200E</int><int>0x200F</int><int>0x2028</int><int>0x2029</int><int>0x202A</int><int>0x202B</int><int>0x202C</int><int>0x202D</int><int>0x202E</int><int>0x202F</int><int>0x205F</int><int>0x2060</int><int>0x2061</int><int>0x2062</int><int>0x2063</int><int>0x206A</int><int>0x206B</int><int>0x206C</int><int>0x206D</int><int>0x206E</int><int>0x206F</int><int>0x2800</int><int>0x3000</int><int>0x3164</int><int>0xFEFF</int><int>0xFFA0</int><int>0xFFF9</int><int>0xFFFA</int><int>0xFFFB</int>
84 </blank>
85 </config>
86
87</fontconfig>
88EOF
89 echo "fonts.conf;root/fonts.conf"
90
91) >addlist 75) >addlist
92 76
93#cat pango.modules;exit 77#cat pango.modules;exit
94 78
95trap "rm -f addlist pango.rc pango.modules fonts.conf" 0 79trap "rm -f addlist pango.rc pango.modules fonts.conf" 0
96
97cd /root/src/deliantra/Deliantra-Client
98 80
99$PERL/bin/perl Makefile.PL 81$PERL/bin/perl Makefile.PL
100make clean 82make clean
101$PERL/bin/perl Makefile.PL 83$PERL/bin/perl Makefile.PL
102make install || exit 84make install || exit
158 <key>LSMinimumSystemVersion</key> 140 <key>LSMinimumSystemVersion</key>
159 <string>10.5</string> 141 <string>10.5</string>
160 <key>NSAppleScriptEnabled</key> 142 <key>NSAppleScriptEnabled</key>
161 <false/> 143 <false/>
162 <key>NSHumanReadableCopyright</key> 144 <key>NSHumanReadableCopyright</key>
163 <string>Deliantra MORPG Client - Copyright 2008 The Deliantra Team</string> 145 <string>Deliantra MORPG Client - Copyright 2008,2009 The Deliantra Team</string>
164</dict> 146</dict>
165</plist> 147</plist>
166EOF 148EOF
167 149
168rm -rf dmg 150rm -rf dmg

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines