]>
Commit | Line | Data |
---|---|---|
1e4922b8 JF |
1 | ios := 3.2 |
2 | ||
3 | flags := | |
4 | link := | |
5 | ||
6 | #dpkg := /Library/Cydia/bin/dpkg-deb -Zlzma | |
7 | dpkg := dpkg-deb | |
8 | ||
9 | flags += -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$(ios).sdk/System/Library/PrivateFrameworks | |
10 | flags += -I. -isystem sysroot/usr/include -Lsysroot/usr/lib | |
11 | flags += -Wall -Werror -Wno-deprecated-declarations | |
12 | flags += -fmessage-length=0 | |
13 | flags += -g0 -O2 | |
14 | flags += -fobjc-call-cxx-cdtors -fobjc-exceptions | |
15 | ||
16 | link += -framework CoreFoundation | |
17 | link += -framework CoreGraphics | |
18 | link += -framework Foundation | |
19 | link += -framework GraphicsServices | |
20 | link += -framework IOKit | |
21 | link += -framework JavaScriptCore | |
22 | link += -framework QuartzCore | |
23 | link += -framework SystemConfiguration | |
24 | link += -framework UIKit | |
25 | link += -framework WebCore | |
26 | link += -framework WebKit | |
27 | ||
28 | link += -lapr-1 | |
29 | link += -lapt-pkg | |
30 | link += -lpcre | |
31 | ||
32 | link += -multiply_defined suppress | |
b0d03ade | 33 | |
2bfeaf6f | 34 | all: Cydia |
a75f53e7 | 35 | |
b0d03ade | 36 | clean: |
2bfeaf6f | 37 | rm -f Cydia |
b0d03ade | 38 | |
8675cad4 | 39 | Cydia: Cydia.mm Reachability.mm UICaboodle/*.mm iPhonePrivate.h |
1e4922b8 | 40 | cycc -r4.2 -i$(ios) -o$@ -- $(filter %.mm,$^) $(flags) $(link) |
5511bfb1 | 41 | |
1e4922b8 | 42 | package: Cydia |
393ab8b9 | 43 | sudo rm -rf _ |
5511bfb1 JF |
44 | mkdir -p _/var/lib/cydia |
45 | ||
46 | mkdir -p _/usr/libexec | |
1e4922b8 | 47 | cp -a Library _/usr/libexec/cydia |
393ab8b9 | 48 | cp -a sysroot/usr/bin/du _/usr/libexec/cydia |
5511bfb1 JF |
49 | |
50 | mkdir -p _/System/Library | |
1e4922b8 | 51 | cp -a LaunchDaemons _/System/Library/LaunchDaemons |
5511bfb1 JF |
52 | |
53 | mkdir -p _/Applications | |
1e4922b8 | 54 | cp -a Cydia.app _/Applications/Cydia.app |
5511bfb1 | 55 | cp -a Cydia _/Applications/Cydia.app/Cydia_ |
5511bfb1 JF |
56 | |
57 | mkdir -p _/System/Library/PreferenceBundles | |
1e4922b8 | 58 | cp -a CydiaSettings.bundle _/System/Library/PreferenceBundles/CydiaSettings.bundle |
5511bfb1 JF |
59 | |
60 | mkdir -p _/DEBIAN | |
61 | echo "$$(cat control)"$$'\nInstalled-Size: '"$$(du -s _ | cut -f 1)" > _/DEBIAN/control | |
62 | ||
393ab8b9 JF |
63 | sudo chown -R 0 _ |
64 | sudo chgrp -R 0 _ | |
65 | sudo chmod 6755 _/Applications/Cydia.app/Cydia_ | |
66 | ||
1e4922b8 | 67 | $(dpkg) -b _ $(shell grep ^Package: control | cut -d ' ' -f 2-)_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb |
23bcd525 JF |
68 | |
69 | .PHONY: all clean sign |