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