2008-09-25 13:40:03 +00:00
|
|
|
#
|
2009-03-09 14:25:28 +00:00
|
|
|
# Copyright (C) 2007-2009 OpenWrt.org
|
2007-10-03 07:51:00 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=dbus-glib
|
2009-03-09 14:25:28 +00:00
|
|
|
PKG_VERSION:=0.80
|
|
|
|
PKG_RELEASE:=1
|
2007-10-03 07:51:00 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus-glib/
|
2009-03-09 14:25:28 +00:00
|
|
|
PKG_MD5SUM:=86ea60ba2118a1b9deafe8257f6a6a1a
|
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-12-08 21:44:57 +00:00
|
|
|
|
2009-03-09 14:25:28 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-10-03 07:51:00 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2007-10-03 07:51:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
define Package/libdbus-glib
|
2008-09-25 13:40:03 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=D-Bus Glib bindings
|
|
|
|
URL:=http://dbus.freedesktop.org/doc/dbus-glib/
|
2011-02-02 18:54:24 +00:00
|
|
|
DEPENDS:=+libdbus +glib2 $(ICONV_DEPENDS) $(INTL_DEPENDS)
|
2007-10-03 07:51:00 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-10-03 07:51:00 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-tests \
|
|
|
|
--disable-xml-docs \
|
|
|
|
--disable-doxygen-docs \
|
|
|
|
|
|
|
|
CONFIGURE_VARS+= \
|
|
|
|
ac_cv_func_posix_getpwnam_r="yes" \
|
|
|
|
ac_cv_have_abstract_sockets="yes" \
|
2011-02-02 18:54:24 +00:00
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(ICONV_PREFIX)/include" \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(INTL_PREFIX)/include" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -L$(ICONV_PREFIX)/lib" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -L$(INTL_PREFIX)/lib" \
|
2007-10-03 07:51:00 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-09-25 13:40:03 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/dbus-1.0/dbus
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/*.h \
|
|
|
|
$(1)/usr/include/dbus-1.0/dbus/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libdbus-glib-1.{la,a,so*} \
|
2007-10-07 03:20:26 +00:00
|
|
|
$(1)/usr/lib/
|
2008-09-25 13:40:03 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-glib-1.pc \
|
2007-10-07 03:20:26 +00:00
|
|
|
$(1)/usr/lib/pkgconfig/
|
2007-10-03 07:51:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdbus-glib/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-glib-1.so.* $(1)/usr/lib/
|
2007-10-03 07:51:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libdbus-glib))
|