6 for deb
in apr
-lib_1.3
.3-2 libffi_130618
-4 readline_6.0
-7; do
7 deb
=${deb}_iphoneos
-arm.deb
8 [[ -f "${deb}" ]] || wget http
://apt.saurik.com
/debs
/"${deb}"
10 ar -x "${deb}" "${tar}"
11 tar -C sysroot.ios
-xf "${tar}"
15 mkdir -p sysroot.ios
/usr
/include
/ffi
16 mv -v sysroot.ios
/usr
/include
/{,ffi
/}ffi.h
19 dev
=/Developer
/Platforms
/$plt.platform
/Developer
20 sdk
=${dev}/SDKs
/$plt4.3.sdk
22 ln -s /System
/Library
/Frameworks
/WebKit.framework
/Versions
/A
/Headers sysroot.ios
/usr
/include
/WebKit
24 mkdir -p sysroot.ios
/Library
/Frameworks
/JavaScriptCore.framework
25 ln -s "${sdk}"/System
/Library
/PrivateFrameworks
/JavaScriptCore.framework
/JavaScriptCore sysroot.ios
/Library
/Frameworks
/JavaScriptCore.framework
26 ln -s /System
/Library
/Frameworks
/JavaScriptCore.framework
/Headers sysroot.ios
/Library
/Frameworks
/JavaScriptCore.framework
28 export CC
=${dev}/usr
/bin
/gcc
29 export CXX
=${dev}/usr
/bin
/g
++
30 export OBJCXX
=${dev}/usr
/bin
/g
++
33 flags_armv6
+=(-isysroot "${sdk}")
35 flags_armv6
+=(-Fsysroot.ios
/Library
/Frameworks
)
36 flags_armv6
+=(-Isysroot.ios
/usr
/include
)
37 flags_armv6
+=(-Lsysroot.ios
/usr
/lib
)
39 flags_armv6
+=(-F"${sdk}"/System
/Library
/PrivateFrameworks
)
40 flags_armv6
+=(-framework WebCore
)
44 for flag
in "${flags_armv6[@]}"; do
45 flags
+=(-Xarch_armv6 "${flag}")
49 export CFLAGS
=${cflags}
50 export CXXFLAGS
=${cflags}
51 export OBJCXXFLAGS
=${cflags}
54 for flag
in "${flags[@]}"; do
55 lflags
+=("-Xcompiler ${flag}")
59 export LTFLAGS
=${lflags}
61 .
/configure
--prefix=/usr
"$@"
65 make arch
=iphoneos
-arm version
=432 dll
=dylib depends
='apr-lib readline libffi mobilesubstrate' package