Here's my current patch. It builds glib, don't know if it works. I'm
still trying to get bluez 4.xxx to build. Main change is host builds
of libffi and dbus.

diff --git a/feeds/packages/libs/glib2/Makefile
b/feeds/packages/libs/glib2/Makefile
index 21a7426..f402556 100644
--- a/feeds/packages/libs/glib2/Makefile
+++ b/feeds/packages/libs/glib2/Makefile
@@ -8,17 +8,17 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=glib2
-PKG_VERSION:=2.26.1
-PKG_RELEASE:=3
+PKG_VERSION:=2.34.0
+PKG_RELEASE:=4

-PKG_SOURCE:=glib-$(PKG_VERSION).tar.bz2
+PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz
 PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
-PKG_SOURCE_URL:=@GNOME/glib/2.26
-PKG_MD5SUM:=17535accceef55bcb17a74d73f9c2aef
+PKG_SOURCE_URL:=@GNOME/glib/2.34
+PKG_MD5SUM:=d80aef668f981b5dcf157633d13081c0

 PKG_FIXUP:=autoreconf
-PKG_BUILD_DEPENDS:=glib2/host libpthread zlib libintl
-HOST_BUILD_DEPENDS:=gettext/host libiconv/host
+PKG_BUILD_DEPENDS:=glib2/host libpthread zlib libintl libffi
+HOST_BUILD_DEPENDS:=gettext/host libiconv/host libffi/host dbus/host
 PKG_INSTALL:=1

 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION)
@@ -30,7 +30,7 @@ include $(INCLUDE_DIR)/nls.mk
 define Package/glib2
   SECTION:=libs
   CATEGORY:=Libraries
-  DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread
+  DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread +libffi
   TITLE:=glib 2.0
   URL:=http://www.gtk.org/
 endef
diff --git a/feeds/packages/libs/libffi/Makefile
b/feeds/packages/libs/libffi/Makefile
index e6bd7a6..0817ee4 100644
--- a/feeds/packages/libs/libffi/Makefile
+++ b/feeds/packages/libs/libffi/Makefile
@@ -19,6 +19,7 @@ PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1

 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk

 define Package/libffi
   SECTION:=libs
@@ -71,4 +72,5 @@ define Package/libffi/install
                $(1)/usr/lib/
 endef

+$(eval $(call HostBuild))
 $(eval $(call BuildPackage,libffi))
diff --git a/feeds/packages/utils/dbus/Makefile
b/feeds/packages/utils/dbus/Makefile
index acaac2c..2dc7ab3 100644
--- a/feeds/packages/utils/dbus/Makefile
+++ b/feeds/packages/utils/dbus/Makefile
@@ -20,6 +20,7 @@ PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1

 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk

 TARGET_LDFLAGS+= \
        -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
@@ -182,6 +183,7 @@ define Package/dbus-utils/install
                $(1)/usr/bin/
 endef

+$(eval $(call HostBuild))
 $(eval $(call BuildPackage,libdbus))
 $(eval $(call BuildPackage,dbus))
 $(eval $(call BuildPackage,dbus-utils))


-- 
Jon Smirl
[email protected]
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to