8 for deb
in apr
-lib_1.3
.3-2 libffi_1
:3.0.10-5 readline_6.0
-7; do
9 deb
=${deb}_iphoneos
-arm.deb
10 [[ -f "${deb}" ]] || wget http
://apt.saurik.com
/debs
/"${deb}"
12 ar -x "${deb}" "${tar}"
13 PATH
=/sw
/bin
:$PATH tar -C sysroot.ios
-xf "${tar}"
17 mkdir -p sysroot.ios
/usr
/include
/ffi
18 mv -v sysroot.ios
/usr
/include
/{,ffi
/}ffi.h
21 dev
=/Developer
/Platforms
/${plt}.platform
/Developer
22 sdk
=${dev}/SDKs
/${plt}5.0.sdk
24 ln -s /System
/Library
/Frameworks
/WebKit.framework
/Versions
/A
/Headers sysroot.ios
/usr
/include
/WebKit
26 mkdir -p sysroot.ios
/Library
/Frameworks
/JavaScriptCore.framework
27 ln -s "${sdk}"/System
/Library
/PrivateFrameworks
/JavaScriptCore.framework
/JavaScriptCore sysroot.ios
/Library
/Frameworks
/JavaScriptCore.framework
28 ln -s /System
/Library
/Frameworks
/JavaScriptCore.framework
/Headers sysroot.ios
/Library
/Frameworks
/JavaScriptCore.framework
30 export CC
=${dev}/usr
/bin
/gcc
31 export CXX
=${dev}/usr
/bin
/g
++
32 export OBJCXX
=${dev}/usr
/bin
/g
++
35 flags_armv6
+=(-isysroot "${sdk}")
37 flags_armv6
+=(-Fsysroot.ios
/Library
/Frameworks
)
38 flags_armv6
+=(-Isysroot.ios
/usr
/include
)
39 flags_armv6
+=(-Lsysroot.ios
/usr
/lib
)
41 flags_armv6
+=(-F"${sdk}"/System
/Library
/PrivateFrameworks
)
42 flags_armv6
+=(-framework WebCore
)
46 for flag
in "${flags_armv6[@]}"; do
47 flags
+=(-Xarch_armv6 "${flag}")
51 export CFLAGS
=${cflags}
52 export CXXFLAGS
=${cflags}
53 export OBJCXXFLAGS
=${cflags}
56 for flag
in "${flags[@]}"; do
57 lflags
+=("-Xcompiler ${flag}")
61 export LTFLAGS
=${lflags}
63 .
/configure
--prefix=/usr
"$@"
67 PATH
=/sw
/bin
:$PATH make arch
=iphoneos
-arm version
=432 dll
=dylib depends
='apr-lib, readline, libffi (>= 1:3.0.10-5), mobilesubstrate, adv-cmds' package