summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-07-10 20:04:06 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-07-10 20:12:47 +0200
commit5d32ed8a2e9f157b5c99a9c75d1333a1f0452a0f (patch)
tree5de6d4e1d289c88d9199f2cdbbc30c51f162802f /packages
parentc4bf1e6ad694c1cbfa7b246bbc139cdc74487cb6 (diff)
downloadembtoolkit-5d32ed8a2e9f157b5c99a9c75d1333a1f0452a0f.tar.gz
embtoolkit-5d32ed8a2e9f157b5c99a9c75d1333a1f0452a0f.tar.bz2
embtoolkit-5d32ed8a2e9f157b5c99a9c75d1333a1f0452a0f.tar.xz
Packages: NEW: Add gdk-pixbuf-2.22.1
This adds a new package, gdk-pixbuf and it needs glib-2.26.x and greater. It is for the moment only available for host development machine, it is only needed to build gtk-demo. Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/graphics/gdk-pixbuf/gdk-pixbuf.kconfig84
-rw-r--r--packages/graphics/gdk-pixbuf/gdk-pixbuf.mk82
-rw-r--r--packages/graphics/graphics.kconfig1
-rw-r--r--packages/graphics/graphics.mk5
4 files changed, 172 insertions, 0 deletions
diff --git a/packages/graphics/gdk-pixbuf/gdk-pixbuf.kconfig b/packages/graphics/gdk-pixbuf/gdk-pixbuf.kconfig
new file mode 100644
index 0000000..d25c5ab
--- /dev/null
+++ b/packages/graphics/gdk-pixbuf/gdk-pixbuf.kconfig
@@ -0,0 +1,84 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2011 Abdoulaye Walsimou GAYE.
+#
+# 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 2 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 gdkpixbuf.kconfig
+# \brief gdkpixbuf.kconfig of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date July 2011
+################################################################################
+
+config EMBTK_HOST_HAVE_GDKPIXBUF
+ bool
+ select EMBTK_GDKPIXBUF_PKG_IS_TARBZ2
+ select EMBTK_HOST_HAVE_GLIB
+ select EMBTK_HOST_HAVE_LIBPNG
+ select EMBTK_HOST_HAVE_LIBJPEG
+ select EMBTK_HOST_HAVE_LIBTIFF
+ help
+ GdkPixbuf for host development machine.
+
+config EMBTK_HAVE_GDKPIXBUF
+ bool
+ select EMBTK_GDKPIXBUF_PKG_IS_TARBZ2
+ select EMBTK_HAVE_GLIB
+ select EMBTK_HAVE_LIBPNG
+ select EMBTK_HAVE_LIBJPEG
+ select EMBTK_HAVE_LIBTIFF
+ help
+ GdkPixbuf is a library for image loading and manipulation.
+choice
+ prompt "gdk-pixbuf version you wish"
+ depends on EMBTK_HAVE_GDKPIXBUF || EMBTK_HOST_HAVE_GDKPIXBUF
+ help
+ Here you can choose which version of gdk-pixbuf you want to use.
+
+ config EMBTK_GDKPIXBUF_VERSION_2_22_1
+ bool "gdk-pixbuf-2.22.1"
+ select EMBTK_GLIB_VERSION_2_26_X_AND_GREATER
+endchoice
+
+config EMBTK_GDKPIXBUF_MAJOR_VERSION_STRING
+ string
+ default "2.22" if EMBTK_GDKPIXBUF_VERSION_2_22_1
+
+config EMBTK_GDKPIXBUF_VERSION_STRING
+ string
+ default "2.22.1" if EMBTK_GDKPIXBUF_VERSION_2_22_1
+
+config EMBTK_GDKPIXBUF_NEED_PATCH
+ bool
+ select EMBTK_GDKPIXBUF_HOST_NEED_PATCH
+config EMBTK_GDKPIXBUF_NEED_AUTORECONF
+ bool
+ select EMBTK_GDKPIXBUF_HOST_NEED_AUTORECONF
+config EMBTK_GDKPIXBUF_PKG_IS_TARGZ
+ bool
+ select EMBTK_GDKPIXBUF_HOST_PKG_IS_TARGZ
+config EMBTK_GDKPIXBUF_PKG_IS_TARBZ2
+ bool
+ select EMBTK_GDKPIXBUF_HOST_PKG_IS_TARBZ2
+
+config EMBTK_GDKPIXBUF_HOST_NEED_PATCH
+ bool
+config EMBTK_GDKPIXBUF_HOST_NEED_AUTORECONF
+ bool
+config EMBTK_GDKPIXBUF_HOST_PKG_IS_TARGZ
+ bool
+config EMBTK_GDKPIXBUF_HOST_PKG_IS_TARBZ2
+ bool
diff --git a/packages/graphics/gdk-pixbuf/gdk-pixbuf.mk b/packages/graphics/gdk-pixbuf/gdk-pixbuf.mk
new file mode 100644
index 0000000..49b782a
--- /dev/null
+++ b/packages/graphics/gdk-pixbuf/gdk-pixbuf.mk
@@ -0,0 +1,82 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2011 Abdoulaye Walsimou GAYE.
+#
+# 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 2 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 gdkpixbuf.mk
+# \brief gdkpixbuf.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date July 2011
+################################################################################
+
+GDKPIXBUF_NAME := gdkpixbuf
+GDKPIXBUF_MAJOR_VERSION := $(call embtk_get_pkgversion,gdkpixbuf_major)
+GDKPIXBUF_VERSION := $(call embtk_get_pkgversion,gdkpixbuf)
+GDKPIXBUF_SITE := http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/$(GDKPIXBUF_MAJOR_VERSION)
+GDKPIXBUF_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
+GDKPIXBUF_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/gdk-pixbuf/$(GDKPIXBUF_VERSION)
+GDKPIXBUF_PACKAGE := gdk-pixbuf-$(GDKPIXBUF_VERSION).tar.bz2
+GDKPIXBUF_SRC_DIR := $(PACKAGES_BUILD)/gdk-pixbuf-$(GDKPIXBUF_VERSION)
+GDKPIXBUF_BUILD_DIR := $(PACKAGES_BUILD)/gdk-pixbuf-$(GDKPIXBUF_VERSION)
+
+GDKPIXBUF_BINS :=
+GDKPIXBUF_SBINS :=
+GDKPIXBUF_INCLUDES :=
+GDKPIXBUF_LIBS :=
+GDKPIXBUF_LIBEXECS :=
+GDKPIXBUF_PKGCONFIGS :=
+
+GDKPIXBUF_CONFIGURE_ENV :=
+GDKPIXBUF_CONFIGURE_OPTS := --without-gdiplus --without-libjasper
+
+GDKPIXBUF_DEPS := libpng_install libjpeg_install \
+ libtiff_install glib_install
+
+gdkpixbuf_install:
+ $(call embtk_install_pkg,gdkpixbuf)
+
+gdkpixbuf_clean:
+ $(call embtk_cleanup_pkg,gdkpixbuf)
+
+#
+# gdk-pixbuf for host development machine.
+#
+
+GDKPIXBUF_HOST_NAME := $(GDKPIXBUF_NAME)
+GDKPIXBUF_HOST_VERSION := $(GDKPIXBUF_VERSION)
+GDKPIXBUF_HOST_SITE := $(GDKPIXBUF_SITE)
+GDKPIXBUF_HOST_SITE_MIRROR1 := $(GDKPIXBUF_SITE_MIRROR1)
+GDKPIXBUF_HOST_SITE_MIRROR2 := $(GDKPIXBUF_SITE_MIRROR2)
+GDKPIXBUF_HOST_SITE_MIRROR3 := $(GDKPIXBUF_SITE_MIRROR3)
+GDKPIXBUF_HOST_PATCH_SITE := $(GDKPIXBUF_PATCH_SITE)
+GDKPIXBUF_HOST_PACKAGE := $(GDKPIXBUF_PACKAGE)
+GDKPIXBUF_HOST_SRC_DIR := $(TOOLS_BUILD)/gdk-pixbuf-$(GDKPIXBUF_VERSION)
+GDKPIXBUF_HOST_BUILD_DIR := $(TOOLS_BUILD)/gdk-pixbuf-$(GDKPIXBUF_VERSION)
+
+GDKPIXBUF_HOST_CONFIGURE_OPTS := --without-gdiplus --without-libjasper
+
+GDKPIXBUF_HOST_DEPS := libpng_host_install libjpeg_host_install \
+ libtiff_host_install glib_host_install
+
+gdkpixbuf_host_install:
+ $(call embtk_install_hostpkg,gdkpixbuf_host)
+
+#
+# Common targets
+#
+download_gdkpixbuf download_gdkpixbuf_host:
+ $(call embtk_download_pkg,gdkpixbuf)
diff --git a/packages/graphics/graphics.kconfig b/packages/graphics/graphics.kconfig
index 2fafbb4..9e85dd9 100644
--- a/packages/graphics/graphics.kconfig
+++ b/packages/graphics/graphics.kconfig
@@ -28,6 +28,7 @@ source packages/graphics/cairo/cairo.kconfig
source packages/graphics/directfb/directfb.kconfig
source packages/graphics/fontconfig/fontconfig.kconfig
source packages/graphics/freetype/freetype.kconfig
+source packages/graphics/gdk-pixbuf/gdk-pixbuf.kconfig
source packages/graphics/gtk/gtk.kconfig
source packages/graphics/imlib2/imlib2.kconfig
source packages/graphics/libjpeg/libjpeg.kconfig
diff --git a/packages/graphics/graphics.mk b/packages/graphics/graphics.mk
index a59f616..abc628b 100644
--- a/packages/graphics/graphics.mk
+++ b/packages/graphics/graphics.mk
@@ -47,6 +47,11 @@ ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_FREEFONT_TTF) += freefont_ttf_install
include $(EMBTK_ROOT)/packages/graphics/freetype/freetype.mk
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_FREETYPE) += freetype_install
+#gdk-pixbuf
+include $(EMBTK_ROOT)/packages/graphics/gdk-pixbuf/gdk-pixbuf.mk
+ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_GDKPIXBUF) += gdkpixbuf_install
+HOSTTOOLS_COMPONENTS-$(CONFIG_EMBTK_HOST_HAVE_GDKPIXBUF) += gdkpixbuf_host_install
+
#gtk+
include $(EMBTK_ROOT)/packages/graphics/gtk/gtk.mk
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_GTK) += gtk_install