summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-07-03 13:27:14 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-07-03 13:27:14 +0200
commit8aa1ed8fb59bf307fa9d5ac4e18b566e02a86fa9 (patch)
tree6ccb85de9dbac9a0e86567399114f8fb7b2ee2a5 /packages
parent08a208776692cf16c18c289638e37fda9d2fd2b2 (diff)
downloadembtoolkit-8aa1ed8fb59bf307fa9d5ac4e18b566e02a86fa9.tar.gz
embtoolkit-8aa1ed8fb59bf307fa9d5ac4e18b566e02a86fa9.tar.bz2
embtoolkit-8aa1ed8fb59bf307fa9d5ac4e18b566e02a86fa9.tar.xz
Packages: New add dbus-1.2.24 among system packages
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/system/dbus/dbus.kconfig54
-rw-r--r--packages/system/dbus/dbus.mk117
-rw-r--r--packages/system/system.kconfig27
-rw-r--r--packages/system/system.mk30
4 files changed, 228 insertions, 0 deletions
diff --git a/packages/system/dbus/dbus.kconfig b/packages/system/dbus/dbus.kconfig
new file mode 100644
index 0000000..c3b98d6
--- /dev/null
+++ b/packages/system/dbus/dbus.kconfig
@@ -0,0 +1,54 @@
+################################################################################
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2010 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file dbus.kconfig
+# \brief dbus.kconfig of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date July 2010
+################################################################################
+
+config EMBTK_HAVE_DBUS
+ bool "Have D-bus"
+ select EMBTK_HAVE_EXPAT
+ select EMBTK_HAVE_LIBXML2
+ help
+ D-Bus is a message bus system, a simple way for applications to
+ talk to one another. In addition to interprocess communication,
+ D-Bus helps coordinate process lifecycle; it makes it simple and
+ reliable to code a "single instance" application or daemon, and
+ to launch applications and daemons on demand when their services
+ are needed.
+choice
+ prompt "D-bus version you wish"
+ depends on EMBTK_HAVE_DBUS
+ help
+ Here you can choose which version of D-bus you want to use.
+
+ config EMBTK_DBUS_VERSION_1_2_24
+ bool "dbus-1.2.24"
+endchoice
+
+config EMBTK_DBUS_VERSION_STRING
+ string
+ default "1.2.24" if EMBTK_DBUS_VERSION_1_2_24
+
+config EMBTK_DBUS_NEED_PATCH
+ bool
+
+
diff --git a/packages/system/dbus/dbus.mk b/packages/system/dbus/dbus.mk
new file mode 100644
index 0000000..8063122
--- /dev/null
+++ b/packages/system/dbus/dbus.mk
@@ -0,0 +1,117 @@
+################################################################################
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2010 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file dbus.mk
+# \brief dbus.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date July 2010
+################################################################################
+
+DBUS_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_DBUS_VERSION_STRING)))
+DBUS_SITE := http://dbus.freedesktop.org/releases/dbus
+DBUS_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/dbus/$(DBUS_VERSION)
+DBUS_PACKAGE := dbus-$(DBUS_VERSION).tar.gz
+DBUS_BUILD_DIR := $(PACKAGES_BUILD)/dbus-$(DBUS_VERSION)
+
+DBUS_BINS = dbus-cleanup-sockets dbus-daemon dbus-launch dbus-monitor \
+ dbus-send dbus-uuidgen
+DBUS_SBINS =
+DBUS_INCLUDES = dbus-*
+DBUS_LIBS = dbus-* libdbus*
+DBUS_PKGCONFIGS = dbus*.pc
+
+DBUS_DEPS = libxml2_install expat_install
+
+DBUS_CONFIGURE_OPTS := --enable-abstract-sockets
+
+dbus_install: $(DBUS_BUILD_DIR)/.installed
+
+$(DBUS_BUILD_DIR)/.installed: $(DBUS_DEPS) download_dbus \
+ $(DBUS_BUILD_DIR)/.decompressed $(DBUS_BUILD_DIR)/.configured
+ $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \
+ dbus-$(DBUS_VERSION) in your root filesystem...")
+ $(call EMBTK_KILL_LT_RPATH,$(DBUS_BUILD_DIR))
+ $(Q)$(MAKE) -C $(DBUS_BUILD_DIR) $(J)
+ $(Q)$(MAKE) -C $(DBUS_BUILD_DIR) DESTDIR=$(SYSROOT) install
+ $(Q)$(MAKE) libtool_files_adapt
+ $(Q)$(MAKE) pkgconfig_files_adapt
+ $(Q)$(MAKE) $(DBUS_BUILD_DIR)/.special
+ @touch $@
+
+download_dbus:
+ $(call EMBTK_GENERIC_MESSAGE,"Downloading $(DBUS_PACKAGE) \
+ if necessary...")
+ @test -e $(DOWNLOAD_DIR)/$(DBUS_PACKAGE) || \
+ wget -O $(DOWNLOAD_DIR)/$(DBUS_PACKAGE) \
+ $(DBUS_SITE)/$(DBUS_PACKAGE)
+ifeq ($(CONFIG_EMBTK_DBUS_NEED_PATCH),y)
+ @test -e $(DOWNLOAD_DIR)/dbus-$(DBUS_VERSION).patch || \
+ wget -O $(DOWNLOAD_DIR)/dbus-$(DBUS_VERSION).patch \
+ $(DBUS_PATCH_SITE)/dbus-$(DBUS_VERSION)-*.patch
+endif
+
+$(DBUS_BUILD_DIR)/.decompressed:
+ $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(DBUS_PACKAGE) ...")
+ @tar -C $(PACKAGES_BUILD) -xzf $(DOWNLOAD_DIR)/$(DBUS_PACKAGE)
+ifeq ($(CONFIG_EMBTK_DBUS_NEED_PATCH),y)
+ @cd $(PACKAGES_BUILD)/dbus-$(DBUS_VERSION); \
+ patch -p1 < $(DOWNLOAD_DIR)/dbus-$(DBUS_VERSION).patch
+endif
+ @touch $@
+
+$(DBUS_BUILD_DIR)/.configured:
+ $(Q)cd $(DBUS_BUILD_DIR); \
+ CC=$(TARGETCC_CACHED) \
+ CXX=$(TARGETCXX_CACHED) \
+ AR=$(TARGETAR) \
+ RANLIB=$(TARGETRANLIB) \
+ AS=$(CROSS_COMPILE)as \
+ LD=$(TARGETLD) \
+ NM=$(TARGETNM) \
+ STRIP=$(TARGETSTRIP) \
+ OBJDUMP=$(TARGETOBJDUMP) \
+ OBJCOPY=$(TARGETOBJCOPY) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ CXXFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \
+ CPPFLGAS="-I$(SYSROOT)/usr/include" \
+ PKG_CONFIG=$(PKGCONFIG_BIN) \
+ PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
+ ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \
+ --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \
+ --prefix=/usr $(DBUS_CONFIGURE_OPTS)
+ @touch $@
+
+dbus_clean:
+ $(call EMBTK_GENERIC_MESSAGE,"cleanup dbus-$(DBUS_VERSION)...")
+ $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(DBUS_BINS)
+ $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(DBUS_SBINS)
+ $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(DBUS_INCLUDES)
+ $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(DBUS_LIBS)
+ $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(DBUS_PKGCONFIGS)
+
+.PHONY: $(DBUS_BUILD_DIR)/.special
+
+$(DBUS_BUILD_DIR)/.special:
+ $(Q)-mkdir -p $(ROOTFS)/usr
+ $(Q)-mkdir -p $(ROOTFS)/usr/etc
+ $(Q)-cp -R $(SYSROOT)/usr/etc/dbus* $(ROOTFS)/usr/etc/
+ $(Q)-mkdir -p $(ROOTFS)/usr/libexec
+ $(Q)-cp -R $(SYSROOT)/usr/libexec/dbus* $(ROOTFS)/usr/libexec/
+
diff --git a/packages/system/system.kconfig b/packages/system/system.kconfig
new file mode 100644
index 0000000..c75f62c
--- /dev/null
+++ b/packages/system/system.kconfig
@@ -0,0 +1,27 @@
+################################################################################
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2010 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file system.mk
+# \brief system.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date July 2010
+################################################################################
+
+source packages/system/dbus/dbus.kconfig
+
diff --git a/packages/system/system.mk b/packages/system/system.mk
new file mode 100644
index 0000000..18b5f20
--- /dev/null
+++ b/packages/system/system.mk
@@ -0,0 +1,30 @@
+################################################################################
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2010 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file system.mk
+# \brief system.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date July 2010
+################################################################################
+
+#dbus
+include $(EMBTK_ROOT)/packages/system/dbus/dbus.mk
+ROOTFS_COMPONENTS_CLEAN += dbus_clean
+ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_DBUS) += dbus_install
+