diff options
Diffstat (limited to 'package/glib')
-rw-r--r-- | package/glib/Makefile | 5 | ||||
-rw-r--r-- | package/glib/patches/patch-configure_ac | 108 |
2 files changed, 113 insertions, 0 deletions
diff --git a/package/glib/Makefile b/package/glib/Makefile index 1303f1188..9e66973c2 100644 --- a/package/glib/Makefile +++ b/package/glib/Makefile @@ -25,9 +25,11 @@ include $(ADK_TOPDIR)/mk/package.mk $(eval $(call HOST_template,GLIB,glib,$(PKG_VERSION)-$(PKG_RELEASE))) $(eval $(call PKG_template,GLIB,glib,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS))) +AUTOTOOL_STYLE:= autoreconf CONFIGURE_ARGS+= --disable-mem-pools \ --disable-rebuilds \ --disable-fam \ + --disable-dtrace \ --with-pcre=system \ --with-threads=posix CONFIGURE_ENV+= glib_cv_long_long_format=ll \ @@ -45,6 +47,9 @@ ifneq ($(OS_FOR_BUILD),Darwin) HOST_CONFIGURE_ARGS+= --with-libiconv=no endif HOST_CONFIGURE_ARGS+= --disable-fam \ + --disable-carbon \ + --disable-cocoa \ + --disable-dtrace \ --enable-static \ --with-pcre=bundled \ --disable-shared \ diff --git a/package/glib/patches/patch-configure_ac b/package/glib/patches/patch-configure_ac new file mode 100644 index 000000000..70292dace --- /dev/null +++ b/package/glib/patches/patch-configure_ac @@ -0,0 +1,108 @@ +--- glib-2.48.0.orig/configure.ac 2016-03-22 16:16:50.000000000 +0100 ++++ glib-2.48.0/configure.ac 2016-04-07 21:29:21.000000000 +0200 +@@ -172,32 +172,10 @@ AC_MSG_RESULT([$glib_native_android]) + + AC_SUBST(LIB_EXE_MACHINE_FLAG) + +-glib_have_carbon=no +-AC_MSG_CHECKING([for Mac OS X Carbon support]) +-AC_TRY_CPP([ +-#include <Carbon/Carbon.h> +-#include <CoreServices/CoreServices.h> +-], glib_have_carbon=yes) +- +-AC_MSG_RESULT([$glib_have_carbon]) +- +-glib_have_cocoa=no +-AC_MSG_CHECKING([for Mac OS X Cocoa support]) +-AC_TRY_CPP([ +-#include <Cocoa/Cocoa.h> +-#ifdef GNUSTEP_BASE_VERSION +-#error "Detected GNUstep, not Cocoa" +-#endif +-], glib_have_cocoa=yes) +- +-AC_MSG_RESULT([$glib_have_cocoa]) +- + AM_CONDITIONAL(OS_WIN32, [test "$glib_native_win32" = "yes"]) + AM_CONDITIONAL(OS_WIN32_X64, [test "$LIB_EXE_MACHINE_FLAG" = "X64"]) + AM_CONDITIONAL(OS_UNIX, [test "$glib_native_win32" != "yes"]) + AM_CONDITIONAL(OS_LINUX, [test "$glib_os_linux" = "yes"]) +-AM_CONDITIONAL(OS_CARBON, [test "$glib_have_carbon" = "yes"]) +-AM_CONDITIONAL(OS_COCOA, [test "$glib_have_cocoa" = "yes"]) + + AS_IF([test "$glib_native_win32" = "yes"], [ + AC_CHECK_TOOL(WINDRES, windres, no) +@@ -214,19 +192,58 @@ AS_IF([test "$glib_native_win32" = "yes" + ]) + AM_CONDITIONAL(MS_LIB_AVAILABLE, [test x$ms_librarian = xyes]) + +-AS_IF([test "x$glib_have_carbon" = "xyes"], [ ++AC_ARG_ENABLE(carbon, ++ [AC_HELP_STRING([--disable-carbon], ++ [disable Max OS X Carbon support])],, ++ [enable_carbon=yes]) ++ ++glib_have_carbon=no ++if test "x${enable_carbon}" = "xyes"; then ++ AC_MSG_RESULT([yes]) ++ AC_MSG_CHECKING([for Mac OS X Carbon support]) ++ AC_TRY_CPP([ ++#include <Carbon/Carbon.h> ++#include <CoreServices/CoreServices.h> ++ ], glib_have_carbon=yes) ++ AC_MSG_RESULT([$glib_have_carbon]) ++else ++ AC_MSG_RESULT([no]) ++fi ++AM_CONDITIONAL(OS_CARBON, [test "$glib_have_carbon" = "yes"]) ++ ++if test "x$glib_have_carbon" = "xyes"; then + AC_DEFINE(HAVE_CARBON, 1, [define to 1 if Carbon is available]) + CARBON_LIBS="-Wl,-framework,Carbon" + LDFLAGS="$LDFLAGS $CARBON_LIBS" +-], [CARBON_LIBS=""]) +- ++fi + AC_SUBST([CARBON_LIBS]) + +-AS_IF([test "x$glib_have_cocoa" = "xyes"], [ ++dnl Check cocoa ++AC_ARG_ENABLE(cocoa, ++ [AC_HELP_STRING([--disable-cocoa], ++ [disable Max OS X Cocoa support])],, ++ [enable_cocoa=yes]) ++ ++glib_have_cocoa=no ++if test "x${enable_cocoa}" = "xyes"; then ++ AC_MSG_RESULT([yes]) ++ AC_MSG_CHECKING([for Mac OS X Carbon support]) ++ AC_TRY_CPP([ ++#include <Cocoa/Cocoa.h> ++#ifdef GNUSTEP_BASE_VERSION ++#error "Detected GNUstep, not Cocoa" ++#endif ++ ], glib_have_cocoa=yes) ++ AC_MSG_RESULT([$glib_have_cocoa]) ++else ++ AC_MSG_RESULT([no]) ++fi ++AM_CONDITIONAL(OS_COCOA, [test "$glib_have_cocoa" = "yes"]) ++ ++if test "x$glib_have_cocoa" = "xyes"; then + AC_DEFINE(HAVE_COCOA, 1, [define to 1 if Cocoa is available]) + COCOA_LIBS="-Wl,-framework,Foundation" + LDFLAGS="$LDFLAGS $COCOA_LIBS" +- + osx_version=`sw_vers -productVersion` + osx_min_version="10.9.0" + AC_MSG_CHECKING([OSX version >= $osx_min_version]) +@@ -235,7 +252,7 @@ AS_IF([test "x$glib_have_cocoa" = "xyes" + AC_MSG_ERROR([OSX version is too old!]) + ]) + AC_MSG_RESULT([yes]) +-], [COCOA_LIBS=""]) ++fi + + AC_SUBST([COCOA_LIBS]) + |