Explorar o código

fix glib build on Linux with missing glib-compile-schema

Waldemar Brodkorb %!s(int64=11) %!d(string=hai) anos
pai
achega
c0b4e2a125
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      package/glib/Makefile

+ 13 - 0
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