2007-01-14 04:45:06 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# dbus-glib
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
DBUS_GLIB_VERSION:=0.72
|
|
|
|
DBUS_GLIB_SOURCE:=dbus-glib-$(DBUS_GLIB_VERSION).tar.gz
|
2007-01-14 04:45:06 +01:00
|
|
|
DBUS_GLIB_SITE:=http://dbus.freedesktop.org/releases/dbus-glib/
|
2007-07-11 16:06:06 +02:00
|
|
|
DBUS_GLIB_DIR:=$(BUILD_DIR)/dbus-glib-$(DBUS_GLIB_VERSION)
|
2007-01-14 04:45:06 +01:00
|
|
|
DBUS_GLIB_CAT:=$(ZCAT)
|
|
|
|
DBUS_GLIB_BINARY:=dbus/.libs/dbus-binding-tool
|
|
|
|
DBUS_GLIB_TARGET_BINARY:=usr/bin/dbus-binding-tool
|
|
|
|
|
|
|
|
$(DL_DIR)/$(DBUS_GLIB_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(DBUS_GLIB_SITE),$(DBUS_GLIB_SOURCE))
|
2007-01-14 04:45:06 +01:00
|
|
|
|
|
|
|
dbus-glib-source: $(DL_DIR)/$(DBUS_GLIB_SOURCE)
|
|
|
|
|
|
|
|
$(DBUS_GLIB_DIR)/.unpacked: $(DL_DIR)/$(DBUS_GLIB_SOURCE)
|
|
|
|
$(DBUS_GLIB_CAT) $(DL_DIR)/$(DBUS_GLIB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(DBUS_GLIB_DIR) package/dbus-glib/ \*.patch
|
|
|
|
touch $(DBUS_GLIB_DIR)/.unpacked
|
|
|
|
|
2008-06-14 23:01:07 +02:00
|
|
|
$(DBUS_GLIB_DIR)/.configured: $(DBUS_GLIB_DIR)/.unpacked
|
2007-08-22 11:56:41 +02:00
|
|
|
(cd $(DBUS_GLIB_DIR); rm -rf config.cache; autoconf; \
|
2007-01-14 04:45:06 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-01-14 04:45:06 +01:00
|
|
|
ac_cv_have_abstract_sockets=yes \
|
|
|
|
ac_cv_func_posix_getpwnam_r=yes \
|
|
|
|
have_abstract_sockets=yes \
|
|
|
|
DBUS_CFLAGS="-I$(STAGING_DIR)/usr/include/dbus-1.0 -I$(STAGING_DIR)/usr/lib/dbus-1.0/include" \
|
|
|
|
DBUS_LIBS="$(STAGING_DIR)/usr/lib/libdbus-1.so" \
|
2007-08-12 00:26:56 +02:00
|
|
|
DBUS_GLIB_CFLAGS="-I$(STAGING_DIR)/usr/include/glib-2.0 -I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
|
2009-01-20 22:32:43 +01:00
|
|
|
DBUS_GLIB_LIBS="$(STAGING_DIR)/usr/lib/libglib-2.0.so $(STAGING_DIR)/usr/lib/libgobject-2.0.so $(STAGING_DIR)/usr/lib/libgmodule-2.0.so $(STAGING_DIR)/usr/lib/libgthread-2.0.so" \
|
2007-01-14 04:45:06 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--program-prefix="" \
|
|
|
|
--disable-tests \
|
|
|
|
--disable-xml-docs \
|
|
|
|
--disable-doxygen-docs \
|
|
|
|
--enable-asserts=yes \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-08-22 14:35:41 +02:00
|
|
|
touch $(DBUS_GLIB_DIR)/.configured
|
2007-01-14 04:45:06 +01:00
|
|
|
|
|
|
|
$(DBUS_GLIB_DIR)/$(DBUS_GLIB_BINARY): $(DBUS_GLIB_DIR)/.configured
|
2009-01-20 22:32:43 +01:00
|
|
|
$(MAKE) DBUS_BUS_LIBS="$(STAGING_DIR)/usr/lib/libexpat.so" -C $(DBUS_GLIB_DIR) all
|
2007-01-14 04:45:06 +01:00
|
|
|
|
|
|
|
$(STAGING_DIR)/usr/lib/libdbus-glib-1.so.2.0.0: $(DBUS_GLIB_DIR)/$(DBUS_GLIB_BINARY)
|
|
|
|
cp -a $(DBUS_GLIB_DIR)/dbus/.libs/libdbus-glib-1.so* $(STAGING_DIR)/usr/lib
|
|
|
|
-touch -c $(STAGING_DIR)/usr/lib/libdbus-glib-1.so.2.0.0
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(DBUS_GLIB_TARGET_BINARY): $(STAGING_DIR)/usr/lib/libdbus-glib-1.so.2.0.0
|
|
|
|
cp -a $(DBUS_GLIB_DIR)/dbus/.libs/libdbus-glib-1.so.2* $(TARGET_DIR)/usr/lib
|
|
|
|
cp -a $(DBUS_GLIB_DIR)/dbus/.libs/dbus-binding-tool $(TARGET_DIR)/usr/bin
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libdbus-glib-1.so.2.0.0
|
2007-01-14 04:45:06 +01:00
|
|
|
|
2009-01-20 22:32:43 +01:00
|
|
|
dbus-glib: uclibc pkgconfig dbus expat libglib2 $(TARGET_DIR)/$(DBUS_GLIB_TARGET_BINARY)
|
2007-01-14 04:45:06 +01:00
|
|
|
|
|
|
|
dbus-glib-clean:
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libdbus-glib-1.so.2*
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/dbus-binding-tool
|
|
|
|
rm -f $(STAGING_DIR)/usr/lib/libdbus-glib-1.so*
|
|
|
|
-$(MAKE) -C $(DBUS_GLIB_DIR) clean
|
|
|
|
|
|
|
|
dbus-glib-dirclean:
|
|
|
|
rm -rf $(DBUS_GLIB_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS_GLIB),y)
|
2007-01-14 04:45:06 +01:00
|
|
|
TARGETS+=dbus-glib
|
|
|
|
endif
|