only call IPlayerCallback::OnPlayBackSpeedChanged if the speed has actually changed
[vuplus_xbmc] / tools / darwin / depends / python26 / Makefile.ios
1 #  credits to:
2 #  http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html
3 #  http://github.com/cobbal/python-for-iphone
4
5 include ../Makefile.include
6
7 # lib name, version
8 LIBNAME=Python
9 VERSION=2.6.5
10 SOURCE=$(LIBNAME)-$(VERSION)
11 ARCHIVE=$(SOURCE).tar.bz2
12
13 # configuration settings
14 CONFIGURE=./configure --prefix=$(PREFIX) --enable-shared \
15   --disable-toolbox-glue
16
17 CONFIGURE_NATIVE= CFLAGS="" CXXFLAGS="" LDFLAGS="" CPPFLAGS="" \
18   CPP="/usr/bin/cpp" \
19   CC="gcc-4.2" \
20   CXX="g++-4.2" \
21   LD="ld" \
22   ./configure
23
24 LIBDYLIB=$(SOURCE)/libpython2.6.dylib
25
26 all: $(LIBDYLIB) .installed
27
28 $(TARBALLS_LOCATION)/$(ARCHIVE):
29         $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
30
31 $(LIBDYLIB): $(TARBALLS_LOCATION)/$(ARCHIVE)
32         rm -rf $(SOURCE)
33         $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
34         echo $(SOURCE) > .gitignore
35         # http://bugs.python.org/issue6869
36         cd $(SOURCE); patch -p1 < ../Python-2.6-ctypes.patch
37         cd $(SOURCE); $(CONFIGURE_NATIVE)
38         cd $(SOURCE); make python.exe Parser/pgen
39         cd $(SOURCE); mv python.exe hostpython
40         cd $(SOURCE); mv Parser/pgen Parser/hostpgen
41         cd $(SOURCE); mv libpython2.6.a hostlibpython2.6.a
42         cd $(SOURCE); make distclean
43         cd $(SOURCE); patch -p1 <../Python-2.6.5-xcompile.patch
44         cd $(SOURCE); $(CONFIGURE)
45         cd $(SOURCE); make -j $(MAKE_JOBS) HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen CROSS_COMPILE_TARGET=yes
46
47 .installed:
48         cd $(SOURCE); make install HOSTPYTHON=./hostpython CROSS_COMPILE_TARGET=yes
49         find $(PREFIX)/lib/python2.6 -type f -name *.pyc -exec rm -f {} \;
50         find $(PREFIX)/lib/python2.6 -type f -name *.pyo -exec rm -f {} \;
51         touch $@
52
53 clean:
54         rm -rf $(SOURCE) .installed
55
56 distclean::
57         rm -rf $(SOURCE) .installed
58