diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-06-10 00:07:14 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-06-10 00:07:14 +0300 |
commit | 95b0fe9f51462b2ee158bf50b83ccc849422f690 (patch) | |
tree | d75619d31a611f12ed66deb42b5811f333f37fcd /cairo | |
parent | 3fafb2f3ead5fb533730ce5607e4421cfd85e28a (diff) |
Fix configury for Android, but won't build
Diffstat (limited to 'cairo')
-rw-r--r-- | cairo/cairo-1.8.0.patch | 25 | ||||
-rw-r--r-- | cairo/cairo/makefile.mk | 20 | ||||
-rw-r--r-- | cairo/pixman-0.12.0.patch | 11 | ||||
-rw-r--r-- | cairo/pixman/makefile.mk | 2 |
4 files changed, 55 insertions, 3 deletions
diff --git a/cairo/cairo-1.8.0.patch b/cairo/cairo-1.8.0.patch index d18396c0ac03..f2ce5b67bfd4 100644 --- a/cairo/cairo-1.8.0.patch +++ b/cairo/cairo-1.8.0.patch @@ -55,6 +55,17 @@ diff -ur misc/build/cairo-1.8.0.org/build/Makefile.win32.features misc/build/cai -CAIRO_HAS_SVG_SURFACE=1 +CAIRO_HAS_SVG_SURFACE=0 CAIRO_HAS_TEST_SURFACES=0 +--- misc/build/cairo-1.8.0.org/build/config.sub ++++ misc/build/cairo-1.8.0/build/config.sub +@@ -1272,7 +1272,7 @@ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ +- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ ++ | -udi* | -androideabi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ diff -ur misc/build/cairo-1.8.0.org/configure misc/build/cairo-1.8.0/configure --- misc/build/cairo-1.8.0.org/configure 2008-09-26 01:57:30.000000000 +0300 +++ misc/build/cairo-1.8.0/configure 2008-11-04 22:21:26.000000000 +0200 @@ -258,3 +269,17 @@ diff -ur misc/build/cairo-1.8.0.org/src/cairo-ps-surface.c misc/build/cairo-1.8. #include <errno.h> #define DEBUG_PS 0 +--- misc/build/cairo-1.8.0.org/src/cairo-output-stream.c ++++ misc/build/cairo-1.8.0/src/cairo-output-stream.c +@@ -281,7 +281,11 @@ + d = 0.0; + + locale_data = localeconv (); ++#ifdef __ANDROID__ ++ decimal_point = "."; ++#else + decimal_point = locale_data->decimal_point; ++#endif + decimal_point_len = strlen (decimal_point); + + assert (decimal_point_len != 0); diff --git a/cairo/cairo/makefile.mk b/cairo/cairo/makefile.mk index 754ceba71f13..4059504e35bc 100644 --- a/cairo/cairo/makefile.mk +++ b/cairo/cairo/makefile.mk @@ -147,16 +147,32 @@ cairo_CFLAGS+=-march=i486 .ENDIF CONFIGURE_DIR= + +.IF "$(OS)"=="ANDROID" +# No pkg-config in the Android NDK +CONFIGURE_ACTION=cp $(SRC_ROOT)$/$(PRJNAME)$/cairo$/dummy_pkg_config . && .$/configure +.ELSE CONFIGURE_ACTION=.$/configure +.ENDIF + .IF "$(OS)"=="IOS" CONFIGURE_FLAGS=--disable-shared .ELSE CONFIGURE_FLAGS=--disable-static --enable-xlib .ENDIF -CONFIGURE_FLAGS+=--enable-ft --disable-svg --enable-gtk-doc=no --enable-test-surfaces=no ZLIB3RDLIB=$(ZLIB3RDLIB) COMPRESS=$(cairo_COMPRESS) + +.IF "$(OS)"=="ANDROID" +CONFIGURE_FLAGS+=--disable-ft +.ELSE +CONFIGURE_FLAGS+=--enable-ft +.ENDIF + +CONFIGURE_FLAGS+=--disable-svg --enable-gtk-doc=no --enable-test-surfaces=no ZLIB3RDLIB=$(ZLIB3RDLIB) COMPRESS=$(cairo_COMPRESS) + .IF "$(CROSS_COMPILING)"=="YES" CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) .ENDIF + BUILD_ACTION=$(GNUMAKE) BUILD_FLAGS+= -j$(EXTMAXPROCESS) BUILD_DIR=$(CONFIGURE_DIR) @@ -212,7 +228,7 @@ OUT2BIN+=src$/.libs$/*.dll OUT2LIB+=src$/release$/*.lib OUT2BIN+=src$/release$/*.dll .ENDIF -.ELIF "$(OS)"=="IOS" +.ELIF "$(OS)"=="IOS" || "$(OS)"=="ANDROID" OUT2LIB+=src$/.libs$/libcairo-1.a .ELSE OUT2LIB+=src$/.libs$/libcairo.so* diff --git a/cairo/pixman-0.12.0.patch b/cairo/pixman-0.12.0.patch index c3d21459828d..8694a8778ec1 100644 --- a/cairo/pixman-0.12.0.patch +++ b/cairo/pixman-0.12.0.patch @@ -1,3 +1,14 @@ +--- misc/build/pixman-0.12.0/config.sub ++++ misc/build/pixman-0.12.0/config.sub +@@ -1272,7 +1272,7 @@ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ +- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ ++ | -udi* | -androideabi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ --- misc/build/pixman-0.12.0/configure.orig 2008-09-17 20:14:40.000000000 +0300 +++ misc/build/pixman-0.12.0/configure 2008-11-08 21:17:00.000000000 +0200 @@ -19740,6 +19740,13 @@ diff --git a/cairo/pixman/makefile.mk b/cairo/pixman/makefile.mk index 0a1d443942c3..d2124079c5d2 100644 --- a/cairo/pixman/makefile.mk +++ b/cairo/pixman/makefile.mk @@ -152,7 +152,7 @@ OUT2LIB+=pixman$/.libs$/*.a .ELSE OUT2LIB+=pixman$/release$/*.lib .ENDIF -.ELIF "$(OS)"=="IOS" +.ELIF "$(OS)"=="IOS" || "$(OS)"=="ANDROID" OUT2LIB+=pixman$/.libs$/libpixman-1.a .ELSE OUT2LIB+=pixman$/.libs$/libpixman-1.so* |