summaryrefslogtreecommitdiff
path: root/package/glib
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-01-31 15:01:57 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-01-31 15:01:57 +0100
commitc0b4e2a12521d7b4c44b52979ee3ebe63a34751b (patch)
tree0d7ca622b205c238263797070c23f7c2be626700 /package/glib
parent59bfe02a4ecbedb1dd896fc2219e829a6029dc2a (diff)
fix glib build on Linux with missing glib-compile-schema
Diffstat (limited to 'package/glib')
-rw-r--r--package/glib/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/glib/Makefile b/package/glib/Makefile
index 3f1def14f..dded649aa 100644
--- a/package/glib/Makefile
+++ b/package/glib/Makefile
@@ -46,6 +46,19 @@ CONFIGURE_ENV+= glib_cv_long_long_format=ll \
ac_cv_func_posix_getgrgid_r=yes
+pre-configure:
+ifeq ($(OStype),Linux)
+ (cd ${WRKBUILD}; rm -rf config.{cache,status}; \
+ ./configure --prefix=$(STAGING_HOST_DIR) \
+ )
+ ${MAKE} -C ${WRKBUILD} V=1
+ $(CP) ${WRKBUILD}/gio/.libs/glib-compile-schemas ${STAGING_HOST_DIR}/bin
+ $(CP) ${WRKBUILD}/gobject/.libs/glib-genmarshal ${STAGING_HOST_DIR}/bin
+ $(CP) ${WRKBUILD}/gobject/glib-mkenums ${STAGING_HOST_DIR}/bin
+ ${MAKE} -C ${WRKBUILD} clean
+endif
+
+
glib-install:
${INSTALL_DIR} ${IDIR_GLIB}/usr/lib
${CP} ${WRKINST}/usr/lib/libgio*.so* ${IDIR_GLIB}/usr/lib