| 1 | | |
| | 1 | Prerequisites: |
| | 2 | |
| | 3 | libcurl[[BR]] |
| | 4 | git[[BR]] |
| | 5 | pkg-config[[BR]] |
| | 6 | libpng[[BR]] |
| | 7 | freetype[[BR]] |
| | 8 | fontconfig[[BR]] |
| | 9 | libiconv[[BR]] |
| | 10 | expat[[BR]] |
| | 11 | |
| | 12 | Get sources: |
| | 13 | |
| | 14 | {{{ |
| | 15 | git clone git://anongit.freedesktop.org/git/cairo |
| | 16 | git clone git://anongit.freedesktop.org/git/pixman |
| | 17 | }}} |
| | 18 | |
| | 19 | cd pixman |
| | 20 | |
| | 21 | Patch Pixman sources (get patch here http://umccullough.pastebin.com/f3ff20879): |
| | 22 | |
| | 23 | {{{ |
| | 24 | patch -p1 -i pixman-patch-2009-03-6.diff |
| | 25 | }}} |
| | 26 | |
| | 27 | autogen/configure pixman: |
| | 28 | |
| | 29 | {{{ |
| | 30 | ./autogen.sh --prefix=/boot/common |
| | 31 | }}} |
| | 32 | |
| | 33 | make/install pixman: |
| | 34 | |
| | 35 | {{{ |
| | 36 | make |
| | 37 | make install |
| | 38 | }}} |
| | 39 | |
| | 40 | cd ../cairo |
| | 41 | |
| | 42 | Patch Cairo sources (get patch here http://umccullough.pastebin.com/f58fd375d): |
| | 43 | |
| | 44 | {{{ |
| | 45 | patch -p1 -i cairo-patch-2009-03-6.diff |
| | 46 | }}} |
| | 47 | |
| | 48 | autogen/configure Cairo: |
| | 49 | |
| | 50 | note: -O3 (or -O1) is required for compile because the default -O2 fails with compiler error, --enable-beos enables the custom beos backend surface |
| | 51 | |
| | 52 | {{{ |
| | 53 | ./autogen.sh CFLAGS=-O3 CXXFLAGS=-O3 --prefix=/boot/common --enable-beos |
| | 54 | }}} |
| | 55 | |
| | 56 | make/install/test: |
| | 57 | |
| | 58 | {{{ |
| | 59 | make |
| | 60 | make install |
| | 61 | make test |
| | 62 | }}} |
| | 63 | |
| | 64 | test will probably fail to run properly, you may have to kill it - you can then try to run the test/cairo-test-suite manually, but it has serious issues. |