]> git.saurik.com Git - cycript.git/blobdiff - Darwin-arm.mk
Somewhat better iconv handling on the Mac when MacPorts is in the path (aka Horrible...
[cycript.git] / Darwin-arm.mk
index 875f25f96d56be4dd4fdaff47357007c7d522fa9..cc970778984f81250b4e5913868d4fb9a78485a0 100644 (file)
@@ -1,18 +1,24 @@
 flags += -F${PKG_ROOT}/System/Library/PrivateFrameworks
 
-all += Cycript.$(dll) #cyrver
+all += #cyrver
 
 arch := iphoneos-arm
-ldid := ldid -S
-link += -framework UIKit
+console += -framework UIKit
+depends += apr-lib readline libffi mobilesubstrate
+#library += -framework CFNetwork
+library += -framework WebCore
+# XXX: all Darwin, maybe all device, should have this
+library += -lsubstrate
 
-Cycript.$(dll): Connector.o
-       $(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \
-           -lobjc -lapr-1 -lsubstrate \
-           -framework CoreFoundation
-       ldid -S $@
+ldid := ldid -S
+entitle := ldid -Scycript.xml
 
 cyrver: Server.o
        $(target)g++ $(flags) -o $@ $(filter %.o,$^) \
            -lapr-1 -lsubstrate -framework CFNetwork
        $(ldid) $@
+
+extra::
+       sed -i -e '/^Depends: / s/\<mobilesubstrate\>/mobilesubstrate (>= 0.9.3072)/g' package/DEBIAN/control
+       #mkdir -p package/System/Library/LaunchDaemons
+       #cp -pR com.saurik.Cyrver.plist package/System/Library/LaunchDaemons