| | 1 | {{{ |
| | 2 | wget http://ports.haiku-files.org/export/244/haikuports/trunk/dev-libs/glib/glib-2.18.3-haiku.diff |
| | 3 | patch -p1 -i glib-2.18.3-haiku.diff |
| | 4 | |
| | 5 | cp /boot/common/share/libtool/config/config.* . |
| | 6 | echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in |
| | 7 | echo "ACLOCAL_AMFLAGS = -I m4" >> Makefile.am |
| | 8 | |
| | 9 | libtoolize --force --copy |
| | 10 | aclocal |
| | 11 | automake |
| | 12 | autoconf |
| | 13 | |
| | 14 | # Remove the following line from configure: GTK_DOC_CHECK(1.8) |
| | 15 | |
| | 16 | # no need to use --disable-threads |
| | 17 | configure --prefix=/boot/common LDFLAGS="-L/boot/common/lib -liconv" CPPFLAGS=-I/boot/common/include |
| | 18 | |
| | 19 | # docs/reference/glib/Makefile: |
| | 20 | # docs/reference/gobject/Makefile: |
| | 21 | # docs/reference/gio/Makefile: |
| | 22 | # delete the lines with @ENABLE_GTK_DOC*. |
| | 23 | |
| | 24 | # glib/gconvert.c: disable error at line 52: "GNU libiconv in use but iconv.h not from libiconv"; |
| | 25 | # replace iconv with libiconv, iconv_open with libiconv_open and iconv_close with libiconv_close |
| | 26 | |
| | 27 | |
| | 28 | # gio/gunixmounts.c: add |
| | 29 | # static char* get_mtab_monitor_file() { |
| | 30 | # fprintf(stderr, "%s %d %s error\n", __FILE__, __LINE__, __PRETTY_FUNCTION__); |
| | 31 | # abort(); |
| | 32 | # // perhaps return NULL instead of abort |
| | 33 | # } |
| | 34 | |
| | 35 | # edit config.h files so that they do not define HAVE_ICONV |
| | 36 | |
| | 37 | make |
| | 38 | |
| | 39 | |
| | 40 | make install |
| | 41 | |
| | 42 | |
| | 43 | }}} |
| | 44 | |
| | 45 | |
| | 46 | |
| | 47 | |