summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-12-25 16:25:33 +0100
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-12-25 16:25:33 +0100
commiteea0859cf4f28fe73ce090b01d60b351c2f6dfb4 (patch)
tree068e261f09ee7e657e947387923a806591412a3f
parent2e7b16713a24e10f650b0eb2ae6e7c31cc8c5856 (diff)
downloadembtoolkit-eea0859cf4f28fe73ce090b01d60b351c2f6dfb4.tar.gz
embtoolkit-eea0859cf4f28fe73ce090b01d60b351c2f6dfb4.tar.bz2
embtoolkit-eea0859cf4f28fe73ce090b01d60b351c2f6dfb4.tar.xz
Packages: New atk: add atk as buildable package
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r--kconfig/packages.kconfig1
-rw-r--r--mk/packages.mk7
-rw-r--r--packages/graphics/atk/atk.kconfig48
-rw-r--r--packages/graphics/atk/atk.mk102
4 files changed, 158 insertions, 0 deletions
diff --git a/kconfig/packages.kconfig b/kconfig/packages.kconfig
index ad821d6..384f1ed 100644
--- a/kconfig/packages.kconfig
+++ b/kconfig/packages.kconfig
@@ -62,6 +62,7 @@ menu "Compression packages"
endmenu
menu "Graphics packages"
+source packages/graphics/atk/atk.kconfig
source packages/graphics/cairo/cairo.kconfig
source packages/graphics/directfb/directfb.kconfig
source packages/graphics/fontconfig/fontconfig.kconfig
diff --git a/mk/packages.mk b/mk/packages.mk
index b587b1a..dd200e8 100644
--- a/mk/packages.mk
+++ b/mk/packages.mk
@@ -68,6 +68,13 @@ ROOTFS_COMPONENTS_CLEAN += mtd-utils_target_clean
########################### Graphics packages ##################################
+#atk
+include $(EMBTK_ROOT)/packages/graphics/atk/atk.mk
+ifeq ($(CONFIG_EMBTK_HAVE_ATK),y)
+ROOTFS_COMPONENTS += atk_install
+endif
+ROOTFS_COMPONENTS_CLEAN += atk_clean
+
#Cairo
include $(EMBTK_ROOT)/packages/graphics/cairo/cairo.mk
ifeq ($(CONFIG_EMBTK_HAVE_CAIRO),y)
diff --git a/packages/graphics/atk/atk.kconfig b/packages/graphics/atk/atk.kconfig
new file mode 100644
index 0000000..de35c30
--- /dev/null
+++ b/packages/graphics/atk/atk.kconfig
@@ -0,0 +1,48 @@
+################################################################################
+# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
+#
+# This program is free software; you can distribute it and/or modify it
+# under the terms of the GNU General Public License
+# (Version 2 or later) published by the Free Software Foundation.
+#
+# This program is distributed in the hope 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, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
+################################################################################
+#
+# \file atk.kconfig
+# \brief atk.kconfig of Embtoolkit
+# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date December 2009
+################################################################################
+
+config EMBTK_HAVE_ATK
+ bool "Have atk"
+ help
+ GNOME Accessibility is the suite of software services and
+ support in GNOME that allows people with disabilities to utilize
+ all of the functionality of the GNOME user environment.
+choice
+ prompt "atk version you wish"
+ depends on EMBTK_HAVE_ATK
+ help
+ Here you can choose which version of atk you want to use.
+
+ config EMBTK_ATK_VERSION_1_28_0
+ bool "atk-1.28.0"
+endchoice
+
+config EMBTK_ATK_MAJOR_VERSION_STRING
+ string
+ default "1.28" if EMBTK_ATK_VERSION_1_28_0
+
+config EMBTK_ATK_VERSION_STRING
+ string
+ default "1.28.0" if EMBTK_ATK_VERSION_1_28_0
+
diff --git a/packages/graphics/atk/atk.mk b/packages/graphics/atk/atk.mk
new file mode 100644
index 0000000..9ff1939
--- /dev/null
+++ b/packages/graphics/atk/atk.mk
@@ -0,0 +1,102 @@
+################################################################################
+# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
+#
+# This program is free software; you can distribute it and/or modify it
+# under the terms of the GNU General Public License
+# (Version 2 or later) published by the Free Software Foundation.
+#
+# This program is distributed in the hope 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, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
+################################################################################
+#
+# \file atk.mk
+# \brief atk.mk of Embtoolkit
+# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date December 2009
+################################################################################
+
+ATK_MAJOR_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_ATK_MAJOR_VERSION_STRING)))
+ATK_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_ATK_VERSION_STRING)))
+ATK_SITE := http://ftp.gnome.org/pub/gnome/sources/atk/$(ATK_MAJOR_VERSION)
+ATK_PACKAGE := atk-$(ATK_VERSION).tar.bz2
+ATK_BUILD_DIR := $(PACKAGES_BUILD)/atk-$(ATK_VERSION)
+
+ATK_BINS =
+ATK_SBINS =
+ATK_INCLUDES = atk-*
+ATK_LIBS = libatk-*
+ATK_PKGCONFIGS = atk.pc
+
+ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y)
+PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig
+else
+PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig
+endif
+
+atk_install: $(ATK_BUILD_DIR)/.installed
+
+$(ATK_BUILD_DIR)/.installed: glib_install download_atk \
+ $(ATK_BUILD_DIR)/.decompressed $(ATK_BUILD_DIR)/.configured
+ $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \
+ atk-$(ATK_VERSION) in your root filesystem...")
+ $(Q)$(MAKE) -C $(ATK_BUILD_DIR) $(J)
+ $(Q)$(MAKE) -C $(ATK_BUILD_DIR) DESTDIR=$(SYSROOT) install
+ $(Q)$(MAKE) libtool_files_adapt
+ $(Q)$(MAKE) pkgconfig_files_adapt
+ @touch $@
+
+download_atk:
+ $(call EMBTK_GENERIC_MESSAGE,"Downloading $(ATK_PACKAGE) \
+ if necessary...")
+ @test -e $(DOWNLOAD_DIR)/$(ATK_PACKAGE) || \
+ wget -O $(DOWNLOAD_DIR)/$(ATK_PACKAGE) \
+ $(ATK_SITE)/$(ATK_PACKAGE)
+
+$(ATK_BUILD_DIR)/.decompressed:
+ $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(ATK_PACKAGE) ...")
+ @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(ATK_PACKAGE)
+ @touch $@
+
+$(ATK_BUILD_DIR)/.configured:
+ $(Q)cd $(ATK_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)/lib -L$(SYSROOT)/usr/lib \
+ -L$(SYSROOT)/lib32 -L$(SYSROOT)/usr/lib32" \
+ 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) \
+ --prefix=/usr
+ @touch $@
+
+atk_clean:
+ $(call EMBTK_GENERIC_MESSAGE,"cleanup atk-$(ATK_VERSION)...")
+ $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(ATK_BINS)
+ $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(ATK_SBINS)
+ $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(ATK_INCLUDES)
+ $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(ATK_LIBS)
+ $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(ATK_PKGCONFIGS)
+ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y)
+ $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(ATK_LIBS)
+ $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(ATK_PKGCONFIGS)
+endif
+