diff options
-rw-r--r-- | kconfig/packages.kconfig | 1 | ||||
-rw-r--r-- | mk/packages.mk | 7 | ||||
-rw-r--r-- | packages/graphics/pixman/pixman.kconfig | 42 | ||||
-rw-r--r-- | packages/graphics/pixman/pixman.mk | 101 |
4 files changed, 151 insertions, 0 deletions
diff --git a/kconfig/packages.kconfig b/kconfig/packages.kconfig index 8639727..84563e9 100644 --- a/kconfig/packages.kconfig +++ b/kconfig/packages.kconfig @@ -67,6 +67,7 @@ source packages/graphics/fontconfig/fontconfig.kconfig source packages/graphics/freetype/freetype.kconfig source packages/graphics/libjpeg/libjpeg.kconfig source packages/graphics/libpng/libpng.kconfig +source packages/graphics/pixman/pixman.kconfig endmenu menu "Networking packages" diff --git a/mk/packages.mk b/mk/packages.mk index 57314cc..f3283ac 100644 --- a/mk/packages.mk +++ b/mk/packages.mk @@ -102,6 +102,13 @@ ifeq ($(CONFIG_EMBTK_HAVE_LIBPNG),y) ROOTFS_COMPONENTS += libpng_install endif ROOTFS_COMPONENTS_CLEAN += libpng_clean + +#pixman +include $(EMBTK_ROOT)/packages/graphics/pixman/pixman.mk +ifeq ($(CONFIG_EMBTK_HAVE_PIXMAN),y) +ROOTFS_COMPONENTS += pixman_install +endif +ROOTFS_COMPONENTS_CLEAN += pixman_clean ########################## Networking packages ################################# ############################ Scripting languages ############################### diff --git a/packages/graphics/pixman/pixman.kconfig b/packages/graphics/pixman/pixman.kconfig new file mode 100644 index 0000000..74f1b7f --- /dev/null +++ b/packages/graphics/pixman/pixman.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# 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 pixman.kconfig +# \brief pixman.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# \date December 2009 +################################################################################ + +config EMBTK_HAVE_PIXMAN + bool "Have pixman" + help + Pixman +choice + prompt "Pixman version you wish" + depends on EMBTK_HAVE_PIXMAN + help + Here you can choose which version of pixman you want to use. + + config EMBTK_PIXMAN_VERSION_0_16_4 + bool "pixman-0.16.4" +endchoice + +config EMBTK_PIXMAN_VERSION_STRING + string + default "0.16.4" if EMBTK_PIXMAN_VERSION_0_16_4 + diff --git a/packages/graphics/pixman/pixman.mk b/packages/graphics/pixman/pixman.mk new file mode 100644 index 0000000..7966336 --- /dev/null +++ b/packages/graphics/pixman/pixman.mk @@ -0,0 +1,101 @@ +################################################################################ +# 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 pixman.mk +# \brief pixman.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# \date December 2009 +################################################################################ + +PIXMAN_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_PIXMAN_VERSION_STRING))) +PIXMAN_SITE := http://www.cairographics.org/releases +PIXMAN_PACKAGE := pixman-$(PIXMAN_VERSION).tar.gz +PIXMAN_BUILD_DIR := $(PACKAGES_BUILD)/pixman-$(PIXMAN_VERSION) + +PIXMAN_BINS = +PIXMAN_SBINS = +PIXMAN_INCLUDES = pixman-* +PIXMAN_LIBS = libpixman-* +PIXMAN_PKGCONFIGS = pixman-*.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +pixman_install: $(PIXMAN_BUILD_DIR)/.installed + +$(PIXMAN_BUILD_DIR)/.installed: download_pixman \ + $(PIXMAN_BUILD_DIR)/.decompressed $(PIXMAN_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + pixman-$(PIXMAN_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(PIXMAN_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(PIXMAN_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_pixman: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(PIXMAN_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(PIXMAN_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(PIXMAN_PACKAGE) \ + $(PIXMAN_SITE)/$(PIXMAN_PACKAGE) + +$(PIXMAN_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(PIXMAN_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xzf $(DOWNLOAD_DIR)/$(PIXMAN_PACKAGE) + @touch $@ + +$(PIXMAN_BUILD_DIR)/.configured: + $(Q)cd $(PIXMAN_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 $@ + +pixman_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup pixman-$(PIXMAN_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(PIXMAN_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(PIXMAN_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(PIXMAN_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(PIXMAN_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(PIXMAN_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(PIXMAN_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(PIXMAN_PKGCONFIGS) +endif + |