Platform

The main Radix cross Linux repository contains build scripts of the GNU/Linux distribution.

991 Commits   6 Branches   3 Tags   |
Index: X11/libs/mesa/10.3.4/Makefile
===================================================================
--- X11/libs/mesa/10.3.4/Makefile	(nonexistent)
+++ X11/libs/mesa/10.3.4/Makefile	(revision 563)
@@ -0,0 +1,362 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/MesaLib/10.x
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/4.9.2
+endif
+REQUIRES          += libs/expat/2.1.0
+REQUIRES          += libs/libxml2/2.9.1
+REQUIRES          += libs/eudev/1.9
+REQUIRES          += libs/libomxil-bellagio/0.9.3
+REQUIRES          += dev/llvm/3.5.0
+REQUIRES          += X11/libs/libdrm/2.4.64
+REQUIRES          += X11/X.org/proto/glproto/1.4.17
+REQUIRES          += X11/X.org/proto/dri2proto/2.8
+REQUIRES          += X11/X.org/proto/dri3proto/1.0
+REQUIRES          += X11/X.org/proto/presentproto/1.0
+REQUIRES          += X11/X.org/lib/libxshmfence/1.1
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+REQUIRES          += X11/X.org/lib/libpciaccess/0.13.2
+endif
+REQUIRES          += X11/X.org/lib/libXxf86vm/1.1.3
+REQUIRES          += X11/X.org/lib/libXdamage/1.1.4
+REQUIRES          += Wayland/wayland/1.6.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 10.3.4
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/MesaLib/10.x/MesaLib-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/Mesa-$(version)
+src_dir_name       = Mesa-$(version)
+doc_dir_name       = mesa-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+licenses           = $(CURDIR)/license/LICENSES
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+MESA_PKG_NAME                = mesa
+MESA_PKG_VERSION             = 10.3.4
+MESA_PKG_ARCH                = $(TOOLCHAIN)
+MESA_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+MESA_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+MESA_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+MESA_PKG_SHORT_DESCRIPTION   = 3D graphics library
+MESA_PKG_URL                 = $(BUG_URL)
+MESA_PKG_LICENSE             = GPLv2
+MESA_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(MESA_PKG_NAME)-pkg-description
+MESA_PKG_DESCRIPTION_FILE_IN = $(MESA_PKG_NAME)-pkg-description.in
+MESA_PKG_INSTALL_SCRIPT      = $(MESA_PKG_NAME)-pkg-install.sh
+
+MESA_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(MESA_PKG_NAME)-package
+
+pkg_basename     = $(MESA_PKG_NAME)-$(MESA_PKG_VERSION)-$(MESA_PKG_ARCH)-$(MESA_PKG_DISTRO_NAME)-$(MESA_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(MESA_PKG)
+
+#
+# 'radeon' driver requires elfutils
+#
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+DRI_DRIVERS = i915,i965,nouveau,r200,swrast
+else
+DRI_DRIVERS = nouveau,r200,swrast
+endif
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(doc_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+
+extra_configure_switches += --with-llvm-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-dri-driverdir=/usr/lib$(LIBSUFFIX)/xorg/modules/dri
+extra_configure_switches += --with-dri-drivers="$(DRI_DRIVERS)"
+
+#
+# 'radeonsi' driver requires elfutils
+#
+extra_configure_switches += --with-gallium-drivers=nouveau,r300,r600,svga,swrast
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+extra_configure_switches += --disable-egl
+extra_configure_switches += --disable-gles1
+extra_configure_switches += --disable-gles2
+extra_configure_switches += --disable-gbm
+else
+extra_configure_switches += --enable-egl
+extra_configure_switches += --enable-gles1
+extra_configure_switches += --enable-gles2
+extra_configure_switches += --with-egl-platforms=x11,drm,wayland
+extra_configure_switches += --enable-gbm
+endif
+
+extra_configure_switches += --disable-gallium-egl
+extra_configure_switches += --disable-gallium-gbm
+
+extra_configure_switches += --enable-gallium-llvm
+extra_configure_switches += --enable-shared-glapi
+
+extra_configure_switches += --enable-dri
+extra_configure_switches += --enable-glx
+extra_configure_switches += --enable-glx-tls
+extra_configure_switches += --enable-osmesa
+extra_configure_switches += --enable-texture-float
+
+extra_configure_switches += --enable-llvm-shared-libs
+extra_configure_switches += --enable-xa
+# NVIDIA extra_configure_switches += --enable-vdpau
+extra_configure_switches += --enable-omx
+extra_configure_switches += --with-omx-libdir=/usr/lib$(LIBSUFFIX)
+
+#
+# OpenCL requires libclc (http://libclc.llvm.org)
+#
+#extra_configure_switches += --enable-opencl
+#extra_configure_switches += --enable-opencl-icd
+
+extra_configure_switches += --with-clang-libdir=/usr/lib$(LIBSUFFIX)
+
+
+environment  = LLVM_CONFIG=$(TARGET_DEST_DIR)/usr/bin/llvm-config-host
+environment += WAYLAND_SCANNER=$(TARGET_DEST_DIR)/usr/bin/$(TARGET)-wayland-scanner
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   autoreconf -fi ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure $(environment) \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(MESA_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(MESA_PKG)/usr/share/man ]; then \
+	  ( cd $(MESA_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(MESA_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(licenses) $(SRC_DIR)/docs/COPYING \
+	       $(MESA_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(MESA_PKG)/usr/share/doc/$(doc_dir_name)/html
+	@( cd $(SRC_DIR) ; \
+	   cp -a $(licenses) docs/COPYING docs/*.txt docs/README* \
+	         $(MESA_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	   cp -a docs/*.{html,png} \
+	         $(MESA_PKG)/usr/share/doc/$(doc_dir_name)/html ; \
+	   rm -f $(MESA_PKG)/usr/share/doc/$(doc_dir_name)/html/relnotes.html ; \
+	   cp -a docs/relnotes/$(version).html \
+	         $(MESA_PKG)/usr/share/doc/$(doc_dir_name)/html/relnotes-$(version).html ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(MESA_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+	@( cd $(MESA_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libGL.la           \
+	                                    libOSMesa.la       \
+	                                    libglapi.la        \
+	                                    libomx_mesa.la     \
+	                                    libxatracker.la  ; \
+	 )
+else
+	@( cd $(MESA_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libEGL.la          \
+	                                    libGL.la           \
+	                                    libGLESv1_CM.la    \
+	                                    libGLESv2.la       \
+	                                    libOSMesa.la       \
+	                                    libgbm.la          \
+	                                    libglapi.la        \
+	                                    libomx_mesa.la     \
+	                                    libwayland-egl.la  \
+	                                    libxatracker.la  ; \
+	 )
+endif
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(MESA_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libGL.la           \
+	                                            libOSMesa.la       \
+	                                            libglapi.la        \
+	                                            libomx_mesa.la     \
+	                                            libxatracker.la  ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libGL.la           \
+	                                              libOSMesa.la       \
+	                                              libglapi.la        \
+	                                              libomx_mesa.la     \
+	                                              libxatracker.la  ; \
+	 )
+else
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libEGL.la          \
+	                                            libGL.la           \
+	                                            libGLESv1_CM.la    \
+	                                            libGLESv2.la       \
+	                                            libOSMesa.la       \
+	                                            libgbm.la          \
+	                                            libglapi.la        \
+	                                            libomx_mesa.la     \
+	                                            libwayland-egl.la  \
+	                                            libxatracker.la  ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libEGL.la          \
+	                                              libGL.la           \
+	                                              libGLESv1_CM.la    \
+	                                              libGLESv2.la       \
+	                                              libOSMesa.la       \
+	                                              libgbm.la          \
+	                                              libglapi.la        \
+	                                              libomx_mesa.la     \
+	                                              libwayland-egl.la  \
+	                                              libxatracker.la  ; \
+	 )
+endif
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" gl.pc           \
+	                                            osmesa.pc       \
+	                                            xatracker.pc  ; \
+	 )
+else
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" egl.pc          \
+	                                            gbm.pc          \
+	                                            gl.pc           \
+	                                            glesv1_cm.pc    \
+	                                            glesv2.pc       \
+	                                            osmesa.pc       \
+	                                            wayland-egl.pc  \
+	                                            xatracker.pc  ; \
+	 )
+endif
+	# ======= do not touch dridriverdir variable in dri.pc file =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,prefix=/usr,prefix=$(TARGET_DEST_DIR)/usr,g" dri.pc ; \
+	   sed -i "s,libdir=/usr,libdir=$(TARGET_DEST_DIR)/usr,g" dri.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(MESA_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(MESA_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(MESA_PKG_DESCRIPTION_FILE): $(MESA_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(MESA_PKG_DESCRIPTION_FILE) $(MESA_PKG_INSTALL_SCRIPT)
+	@cp $(MESA_PKG_DESCRIPTION_FILE) $(MESA_PKG)/.DESCRIPTION
+	@cp $(MESA_PKG_INSTALL_SCRIPT) $(MESA_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(MESA_PKG)/.REQUIRES
+	@echo "pkgname=$(MESA_PKG_NAME)"                            >  $(MESA_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(MESA_PKG_VERSION)"                          >> $(MESA_PKG)/.PKGINFO ; \
+	 echo "arch=$(MESA_PKG_ARCH)"                               >> $(MESA_PKG)/.PKGINFO ; \
+	 echo "distroname=$(MESA_PKG_DISTRO_NAME)"                  >> $(MESA_PKG)/.PKGINFO ; \
+	 echo "distrover=$(MESA_PKG_DISTRO_VERSION)"                >> $(MESA_PKG)/.PKGINFO ; \
+	 echo "group=$(MESA_PKG_GROUP)"                             >> $(MESA_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(MESA_PKG_SHORT_DESCRIPTION)\"" >> $(MESA_PKG)/.PKGINFO ; \
+	 echo "url=$(MESA_PKG_URL)"                                 >> $(MESA_PKG)/.PKGINFO ; \
+	 echo "license=$(MESA_PKG_LICENSE)"                         >> $(MESA_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(MESA_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/mesa/10.3.4/mesa-pkg-install.sh
===================================================================
--- X11/libs/mesa/10.3.4/mesa-pkg-install.sh	(nonexistent)
+++ X11/libs/mesa/10.3.4/mesa-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/mesa/10.3.4/mesa-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/mesa/10.3.4/PATCHES
===================================================================
Index: X11/libs/mesa/10.3.4/license/LICENSES
===================================================================
--- X11/libs/mesa/10.3.4/license/LICENSES	(nonexistent)
+++ X11/libs/mesa/10.3.4/license/LICENSES	(revision 563)
@@ -0,0 +1,82 @@
+Disclaimer
+
+Mesa is a 3-D graphics library with an API which is very similar to
+that of OpenGL*
+To the extent that Mesa utilizes the OpenGL command syntax or state
+machine, it is being used with authorization from Silicon Graphics,
+Inc.(SGI). However, the author does not possess an OpenGL license
+from SGI, and makes no claim that Mesa is in any way a compatible
+replacement for OpenGL or associated with SGI. Those who want a
+licensed implementation of OpenGL should contact a licensed
+vendor.
+
+Please do not refer to the library as MesaGL (for legal
+reasons). It's just Mesa or The Mesa 3-D graphics
+library
+
+* OpenGL is a trademark of Silicon Graphics Incorporated.
+
+License / Copyright Information
+
+The Mesa distribution consists of several components.  Different copyrights
+and licenses apply to different components.  For example, GLUT is copyrighted
+by Mark Kilgard, some demo programs are copyrighted by SGI, some of the Mesa
+device drivers are copyrighted by their authors.  See below for a list of
+Mesa's main components and the license for each.
+
+The core Mesa library is licensed according to the terms of the MIT license.
+This allows integration with the XFree86, Xorg and DRI projects.
+
+The default Mesa license is as follows:
+
+Copyright (C) 1999-2007  Brian Paul   All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Attention, Contributors
+
+When contributing to the Mesa project you must agree to the licensing terms
+of the component to which you're contributing.
+The following section lists the primary components of the Mesa distribution
+and their respective licenses.
+
+
+Mesa Component Licenses
+
+Component         Location               Primary Author      License
+----------------------------------------------------------------------------
+Main Mesa code    src/mesa/              Brian Paul          Mesa (MIT)
+
+Device drivers    src/mesa/drivers/*     See drivers         See drivers
+
+Ext headers       include/GL/glext.h     SGI                 SGI Free B
+                  include/GL/glxext.h
+
+GLUT              src/glut/              Mark Kilgard        Mark's copyright
+
+Mesa GLU library  src/glu/mesa/          Brian Paul          GNU-LGPL
+
+SGI GLU library   src/glu/sgi/           SGI                 SGI Free B
+
+demo programs     progs/demos/           various             see source files
+
+X demos           progs/xdemos/          Brian Paul          see source files
+
+SGI demos         progs/samples/         SGI                 SGI copyright
+
+RedBook demos     progs/redbook/         SGI                 SGI copyright
Index: X11/libs/mesa/10.3.4/mesa-pkg-description.in
===================================================================
--- X11/libs/mesa/10.3.4/mesa-pkg-description.in	(nonexistent)
+++ X11/libs/mesa/10.3.4/mesa-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+    |-----handy-ruler------------------------------------------------------|
+mesa: mesa @VERSION@ (3D graphics library)
+mesa:
+mesa: Mesa is a 3-D graphics library with an API very similar to that of
+mesa: another well-known 3-D graphics library. The Mesa libraries are used
+mesa: by X to provide both software and hardware accelerated graphics.
+mesa:
+mesa: Mesa was written by Brian Paul.
+mesa:
+mesa:
+mesa:
+mesa:
Index: X11/libs/mesa/10.3.4-x86_32/Makefile
===================================================================
--- X11/libs/mesa/10.3.4-x86_32/Makefile	(nonexistent)
+++ X11/libs/mesa/10.3.4-x86_32/Makefile	(revision 563)
@@ -0,0 +1,269 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/MesaLib/10.x
+
+REQUIRES           = X11/libs/mesa/10.3.4
+REQUIRES          += libs/expat/2.1.0-x86_32
+REQUIRES          += libs/libxml2/2.9.1-x86_32
+REQUIRES          += libs/eudev/1.9-x86_32
+REQUIRES          += libs/libomxil-bellagio/0.9.3-x86_32
+REQUIRES          += dev/llvm/3.5.0-x86_32
+REQUIRES          += X11/libs/libdrm/2.4.64-x86_32
+REQUIRES          += X11/X.org/proto/glproto/1.4.17-x86_32
+REQUIRES          += X11/X.org/proto/dri2proto/2.8-x86_32
+REQUIRES          += X11/X.org/proto/dri3proto/1.0-x86_32
+REQUIRES          += X11/X.org/proto/presentproto/1.0-x86_32
+REQUIRES          += X11/X.org/lib/libxshmfence/1.1-x86_32
+REQUIRES          += X11/X.org/lib/libpciaccess/0.13.2-x86_32
+REQUIRES          += X11/X.org/lib/libXxf86vm/1.1.3-x86_32
+REQUIRES          += X11/X.org/lib/libXdamage/1.1.4-x86_32
+REQUIRES          += Wayland/wayland/1.6.0-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 10.3.4
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/MesaLib/10.x/MesaLib-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/Mesa-$(version)
+src_dir_name       = Mesa-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+MESA_32_PKG_NAME                = mesa-x32
+MESA_32_PKG_VERSION             = 10.3.4
+MESA_32_PKG_ARCH                = $(TOOLCHAIN)
+MESA_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+MESA_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+MESA_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+MESA_32_PKG_SHORT_DESCRIPTION   = 3D graphics library
+MESA_32_PKG_URL                 = $(BUG_URL)
+MESA_32_PKG_LICENSE             = GPLv2
+MESA_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(MESA_32_PKG_NAME)-pkg-description
+MESA_32_PKG_DESCRIPTION_FILE_IN = $(MESA_32_PKG_NAME)-pkg-description.in
+MESA_32_PKG_INSTALL_SCRIPT      = $(MESA_32_PKG_NAME)-pkg-install.sh
+
+MESA_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(MESA_32_PKG_NAME)-package
+
+pkg_basename     = $(MESA_32_PKG_NAME)-$(MESA_32_PKG_VERSION)-$(MESA_32_PKG_ARCH)-$(MESA_32_PKG_DISTRO_NAME)-$(MESA_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(MESA_32_PKG)
+
+
+DRI_DRIVERS = i915,i965,nouveau,r200,swrast
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --with-llvm-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-dri-driverdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)/xorg/modules/dri
+extra_configure_switches += --with-dri-drivers="$(DRI_DRIVERS)"
+
+#
+# 'radeonsi' driver requires elfutils
+#
+extra_configure_switches += --with-gallium-drivers=nouveau,r300,r600,svga,swrast
+
+extra_configure_switches += --enable-egl
+extra_configure_switches += --enable-gles1
+extra_configure_switches += --enable-gles2
+extra_configure_switches += --with-egl-platforms=x11,drm,wayland
+
+extra_configure_switches += --enable-llvm-shared-libs
+extra_configure_switches += --disable-gallium-egl
+extra_configure_switches += --disable-gallium-gbm
+extra_configure_switches += --enable-gbm
+
+extra_configure_switches += --enable-gallium-llvm
+extra_configure_switches += --enable-shared-glapi
+
+extra_configure_switches += --enable-glx
+extra_configure_switches += --enable-glx-tls
+extra_configure_switches += --enable-dri
+extra_configure_switches += --enable-osmesa
+extra_configure_switches += --enable-texture-float
+
+extra_configure_switches += --enable-xa
+# NVIDIA extra_configure_switches += --enable-vdpau
+extra_configure_switches += --enable-omx
+extra_configure_switches += --with-omx-libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+
+#
+# OpenCL requires libclc (http://libclc.llvm.org)
+#
+#extra_configure_switches += --enable-opencl
+#extra_configure_switches += --enable-opencl-icd
+
+extra_configure_switches += --with-clang-libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+
+
+environment  = LLVM_CONFIG=$(TARGET_DEST_DIR)/usr/bin/32/llvm-config-host
+environment += WAYLAND_SCANNER=$(TARGET_DEST_DIR)/usr/bin/$(TARGET)-wayland-scanner
+
+
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   autoreconf -fi ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure $(environment) \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(MESA_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(MESA_32_PKG)/etc
+	@rm -rf $(MESA_32_PKG)/usr/include
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(MESA_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libEGL.la          \
+	                                    libGL.la           \
+	                                    libGLESv1_CM.la    \
+	                                    libGLESv2.la       \
+	                                    libOSMesa.la       \
+	                                    libgbm.la          \
+	                                    libglapi.la        \
+	                                    libomx_mesa.la     \
+	                                    libwayland-egl.la  \
+	                                    libxatracker.la  ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(MESA_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libEGL.la          \
+	                                            libGL.la           \
+	                                            libGLESv1_CM.la    \
+	                                            libGLESv2.la       \
+	                                            libOSMesa.la       \
+	                                            libgbm.la          \
+	                                            libglapi.la        \
+	                                            libomx_mesa.la     \
+	                                            libwayland-egl.la  \
+	                                            libxatracker.la  ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libEGL.la          \
+	                                              libGL.la           \
+	                                              libGLESv1_CM.la    \
+	                                              libGLESv2.la       \
+	                                              libOSMesa.la       \
+	                                              libgbm.la          \
+	                                              libglapi.la        \
+	                                              libomx_mesa.la     \
+	                                              libwayland-egl.la  \
+	                                              libxatracker.la  ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" egl.pc          \
+	                                            gbm.pc          \
+	                                            gl.pc           \
+	                                            glesv1_cm.pc    \
+	                                            glesv2.pc       \
+	                                            osmesa.pc       \
+	                                            wayland-egl.pc  \
+	                                            xatracker.pc  ; \
+	 )
+	# ======= do not touch dridriverdir variable in dri.pc file =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,prefix=/usr,prefix=$(TARGET_DEST_DIR)/usr,g" dri.pc ; \
+	   sed -i "s,libdir=/usr,libdir=$(TARGET_DEST_DIR)/usr,g" dri.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(MESA_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(MESA_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(MESA_32_PKG_DESCRIPTION_FILE): $(MESA_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(MESA_32_PKG_DESCRIPTION_FILE) $(MESA_32_PKG_INSTALL_SCRIPT)
+	@cp $(MESA_32_PKG_DESCRIPTION_FILE) $(MESA_32_PKG)/.DESCRIPTION
+	@cp $(MESA_32_PKG_INSTALL_SCRIPT) $(MESA_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(MESA_32_PKG)/.REQUIRES
+	@echo "pkgname=$(MESA_32_PKG_NAME)"                            >  $(MESA_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(MESA_32_PKG_VERSION)"                          >> $(MESA_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(MESA_32_PKG_ARCH)"                               >> $(MESA_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(MESA_32_PKG_DISTRO_NAME)"                  >> $(MESA_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(MESA_32_PKG_DISTRO_VERSION)"                >> $(MESA_32_PKG)/.PKGINFO ; \
+	 echo "group=$(MESA_32_PKG_GROUP)"                             >> $(MESA_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(MESA_32_PKG_SHORT_DESCRIPTION)\"" >> $(MESA_32_PKG)/.PKGINFO ; \
+	 echo "url=$(MESA_32_PKG_URL)"                                 >> $(MESA_32_PKG)/.PKGINFO ; \
+	 echo "license=$(MESA_32_PKG_LICENSE)"                         >> $(MESA_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(MESA_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/mesa/10.3.4-x86_32/mesa-x32-pkg-install.sh
===================================================================
--- X11/libs/mesa/10.3.4-x86_32/mesa-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/mesa/10.3.4-x86_32/mesa-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/mesa/10.3.4-x86_32/mesa-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/mesa/10.3.4-x86_32/PATCHES
===================================================================
Index: X11/libs/mesa/10.3.4-x86_32/mesa-x32-pkg-description.in
===================================================================
--- X11/libs/mesa/10.3.4-x86_32/mesa-x32-pkg-description.in	(nonexistent)
+++ X11/libs/mesa/10.3.4-x86_32/mesa-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+mesa-x32: mesa-x32 @VERSION@ (x86_32 3D graphics library)
+mesa-x32:
+mesa-x32: Mesa is a 3-D graphics library with an API very similar to that of
+mesa-x32: another well-known 3-D graphics library. The Mesa libraries are used
+mesa-x32: by X to provide both software and hardware accelerated graphics.
+mesa-x32:
+mesa-x32: Mesa was written by Brian Paul.
+mesa-x32:
+mesa-x32:
+mesa-x32:
+mesa-x32:
Index: X11/libs/cairo/1.14.0/Makefile
===================================================================
--- X11/libs/cairo/1.14.0/Makefile	(nonexistent)
+++ X11/libs/cairo/1.14.0/Makefile	(revision 563)
@@ -0,0 +1,281 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/l/cairo
+
+REQUIRES           = libs/lzo/2.08
+REQUIRES          += libs/pcre/8.34
+REQUIRES          += libs/glib2/2.40.0
+REQUIRES          += X11/libs/fontconfig/2.11.1
+REQUIRES          += X11/X.org/lib/pixman/0.32.6
+REQUIRES          += X11/X.org/lib/libXext/1.3.3
+REQUIRES          += X11/X.org/lib/libXrender/0.9.8
+REQUIRES          += libs/libspectre/0.2.7
+REQUIRES          += X11/libs/librsvg/2.40.5
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.14.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/l/cairo/cairo-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/cairo-$(version)
+src_dir_name       = cairo-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+CAIRO_PKG_NAME                = cairo
+CAIRO_PKG_VERSION             = 1.14.0
+CAIRO_PKG_ARCH                = $(TOOLCHAIN)
+CAIRO_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+CAIRO_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+CAIRO_PKG_GROUP               = $(PKG_GROUP)
+###                            |---handy-ruler-------------------------------|
+CAIRO_PKG_SHORT_DESCRIPTION   = graphics library used by GTK+
+CAIRO_PKG_URL                 = $(BUG_URL)
+CAIRO_PKG_LICENSE             = LGPLv2.1
+CAIRO_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(CAIRO_PKG_NAME)-pkg-description
+CAIRO_PKG_DESCRIPTION_FILE_IN = $(CAIRO_PKG_NAME)-pkg-description.in
+CAIRO_PKG_INSTALL_SCRIPT      = $(CAIRO_PKG_NAME)-pkg-install.sh
+
+CAIRO_PKG        = $(CURDIR)/$(TARGET_BUILD_DIR)/$(CAIRO_PKG_NAME)-package
+
+pkg_basename     = $(CAIRO_PKG_NAME)-$(CAIRO_PKG_VERSION)-$(CAIRO_PKG_ARCH)-$(CAIRO_PKG_DISTRO_NAME)-$(CAIRO_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_UPDATE_TARGETS = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(CAIRO_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+
+extra_configure_switches += --disable-quartz
+extra_configure_switches += --disable-win32
+extra_configure_switches += --disable-trace
+extra_configure_switches += --enable-drm=no
+extra_configure_switches += --enable-png=yes
+extra_configure_switches += --enable-xlib
+extra_configure_switches += --enable-xcb
+extra_configure_switches += --enable-xcb-shm
+extra_configure_switches += --enable-xlib-xcb
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+extra_configure_switches += --disable-gl
+endif
+extra_configure_switches += --enable-egl
+extra_configure_switches += --enable-glesv2
+extra_configure_switches += --enable-glx=no
+extra_configure_switches += --enable-ft=yes
+extra_configure_switches += --enable-fc=yes
+extra_configure_switches += --enable-ps=yes
+extra_configure_switches += --enable-pdf=yes
+extra_configure_switches += --enable-svg=yes
+extra_configure_switches += --enable-tee
+extra_configure_switches += --enable-gobject
+extra_configure_switches += --enable-xml
+extra_configure_switches += --enable-full-testing=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	# ======= Disable all test (required GDK x11 v2, poppler-glib) =======
+	@( cd $(build_dir) ; \
+	   sed -i "s,boilerplate test perf,boilerplate perf,g" Makefile ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(CAIRO_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CI20)),)
+	# ======= especially for MIPS Creator CI20 add -lELG, -lGLESv2 flags =======
+	# ======= due to mips prolog optimization for PIC (see gcc configure =======
+	# ======= option --with-mips-plt)                                    =======
+	@( cd $(CAIRO_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,^\(Libs:.*\),\1 -lEGL,"          cairo-egl.pc    ; \
+	   sed -i "s,^\(Libs:.*\),\1 -lGLESv2,"       cairo-glesv2.pc ; \
+	   sed -i "s,^\(Libs:.*\),\1 -lEGL -lGLESv2," cairo.pc        ; \
+	 )
+endif
+	# ======= Install Documentation =======
+	@if [ -d $(CAIRO_PKG)/usr/share/man ]; then \
+	  ( cd $(CAIRO_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(CAIRO_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING* \
+	       $(CAIRO_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(CAIRO_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS BIBLIOGRAPHY BUGS CODING_STYLE \
+	         COPYING* HACKING INSTALL KNOWN_ISSUES NEWS \
+	         PORTING_GUIDE README* RELEASING \
+	         $(CAIRO_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   ln -sf ../../gtk-doc/html/cairo $(CAIRO_PKG)/usr/share/doc/$(src_dir_name)/html ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(CAIRO_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(CAIRO_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libcairo.la libcairo-gobject.la  \
+	                                    libcairo-script-interpreter.la ; \
+	 )
+	@( cd $(CAIRO_PKG)/usr/lib$(LIBSUFFIX)/cairo ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" cairo-sphinx.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(CAIRO_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libcairo.la libcairo-gobject.la  \
+	                                            libcairo-script-interpreter.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libcairo.la libcairo-gobject.la  \
+	                                              libcairo-script-interpreter.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/cairo ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" cairo-sphinx.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" cairo-sphinx.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" cairo.pc cairo-egl.pc cairo-fc.pc cairo-ft.pc        \
+	                                            cairo-glesv2.pc cairo-gobject.pc cairo-png.pc        \
+	                                            cairo-pdf.pc cairo-ps.pc cairo-svg.pc                \
+	                                            cairo-script.pc cairo-tee.pc cairo-xcb-shm.pc        \
+	                                            cairo-xcb.pc cairo-xlib-xcb.pc cairo-xlib-xrender.pc \
+	                                            cairo-xlib.pc cairo-xml.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(CAIRO_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(CAIRO_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(CAIRO_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(CAIRO_PKG_DESCRIPTION_FILE): $(CAIRO_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(CAIRO_PKG_DESCRIPTION_FILE) $(CAIRO_PKG_INSTALL_SCRIPT)
+	@cp $(CAIRO_PKG_DESCRIPTION_FILE) $(CAIRO_PKG)/.DESCRIPTION
+	@cp $(CAIRO_PKG_INSTALL_SCRIPT) $(CAIRO_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(CAIRO_PKG)/.REQUIRES
+	@echo "pkgname=$(CAIRO_PKG_NAME)"                            >  $(CAIRO_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(CAIRO_PKG_VERSION)"                          >> $(CAIRO_PKG)/.PKGINFO ; \
+	 echo "arch=$(CAIRO_PKG_ARCH)"                               >> $(CAIRO_PKG)/.PKGINFO ; \
+	 echo "distroname=$(CAIRO_PKG_DISTRO_NAME)"                  >> $(CAIRO_PKG)/.PKGINFO ; \
+	 echo "distrover=$(CAIRO_PKG_DISTRO_VERSION)"                >> $(CAIRO_PKG)/.PKGINFO ; \
+	 echo "group=$(CAIRO_PKG_GROUP)"                             >> $(CAIRO_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(CAIRO_PKG_SHORT_DESCRIPTION)\"" >> $(CAIRO_PKG)/.PKGINFO ; \
+	 echo "url=$(CAIRO_PKG_URL)"                                 >> $(CAIRO_PKG)/.PKGINFO ; \
+	 echo "license=$(CAIRO_PKG_LICENSE)"                         >> $(CAIRO_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(CAIRO_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/cairo/1.14.0/cairo-pkg-install.sh
===================================================================
--- X11/libs/cairo/1.14.0/cairo-pkg-install.sh	(nonexistent)
+++ X11/libs/cairo/1.14.0/cairo-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/cairo/1.14.0/cairo-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/cairo/1.14.0/PATCHES
===================================================================
--- X11/libs/cairo/1.14.0/PATCHES	(nonexistent)
+++ X11/libs/cairo/1.14.0/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/l/cairo/patches/cairo-1.14.0.patch -p0
Index: X11/libs/cairo/1.14.0/cairo-pkg-description.in
===================================================================
--- X11/libs/cairo/1.14.0/cairo-pkg-description.in	(nonexistent)
+++ X11/libs/cairo/1.14.0/cairo-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+     |-----handy-ruler------------------------------------------------------|
+cairo: cairo @VERSION@ (graphics library used by GTK+)
+cairo:
+cairo: Cairo is a vector graphics library designed to provide high-quality
+cairo: display and print output. Cairo is designed to produce identical
+cairo: output on all output media while taking advantage of display
+cairo: hardware acceleration when available (eg. through the X Render
+cairo: Extension or OpenGL).
+cairo:
+cairo:
+cairo:
+cairo:
Index: X11/libs/cairo/1.14.0-x86_32/Makefile
===================================================================
--- X11/libs/cairo/1.14.0-x86_32/Makefile	(nonexistent)
+++ X11/libs/cairo/1.14.0-x86_32/Makefile	(revision 563)
@@ -0,0 +1,232 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/l/cairo
+
+REQUIRES           = libs/cairo/1.14.0
+REQUIRES          += libs/lzo/2.08-x86_32
+REQUIRES          += libs/pcre/8.34-x86_32
+REQUIRES          += libs/glib2/2.40.0-x86_32
+REQUIRES          += X11/libs/fontconfig/2.11.1-x86_32
+REQUIRES          += X11/X.org/lib/pixman/0.32.6-x86_32
+REQUIRES          += X11/X.org/lib/libXext/1.3.3-x86_32
+REQUIRES          += X11/X.org/lib/libXrender/0.9.8-x86_32
+REQUIRES          += libs/libspectre/0.2.7-x86_32
+REQUIRES          += X11/libs/librsvg/2.40.5-x86_32
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.14.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/l/cairo/cairo-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/cairo-$(version)
+src_dir_name       = cairo-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+CAIRO_32_PKG_NAME                = cairo-x32
+CAIRO_32_PKG_VERSION             = 1.14.0
+CAIRO_32_PKG_ARCH                = $(TOOLCHAIN)
+CAIRO_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+CAIRO_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+CAIRO_32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+CAIRO_32_PKG_SHORT_DESCRIPTION   = graphics library used by GTK+
+CAIRO_32_PKG_URL                 = $(BUG_URL)
+CAIRO_32_PKG_LICENSE             = LGPLv2.1
+CAIRO_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(CAIRO_32_PKG_NAME)-pkg-description
+CAIRO_32_PKG_DESCRIPTION_FILE_IN = $(CAIRO_32_PKG_NAME)-pkg-description.in
+CAIRO_32_PKG_INSTALL_SCRIPT      = $(CAIRO_32_PKG_NAME)-pkg-install.sh
+
+CAIRO_32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(CAIRO_32_PKG_NAME)-package
+
+pkg_basename     = $(CAIRO_32_PKG_NAME)-$(CAIRO_32_PKG_VERSION)-$(CAIRO_32_PKG_ARCH)-$(CAIRO_32_PKG_DISTRO_NAME)-$(CAIRO_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_UPDATE_TARGETS = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(CAIRO_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --sysconfdir=/etc
+
+extra_configure_switches += --disable-quartz
+extra_configure_switches += --disable-win32
+extra_configure_switches += --disable-trace
+extra_configure_switches += --enable-drm=no
+extra_configure_switches += --enable-png=yes
+extra_configure_switches += --enable-xlib
+extra_configure_switches += --enable-xcb
+extra_configure_switches += --enable-xcb-shm
+extra_configure_switches += --enable-xlib-xcb
+extra_configure_switches += --enable-egl
+extra_configure_switches += --enable-glesv2
+extra_configure_switches += --enable-glx=no
+extra_configure_switches += --enable-ft=yes
+extra_configure_switches += --enable-fc=yes
+extra_configure_switches += --enable-ps=yes
+extra_configure_switches += --enable-pdf=yes
+extra_configure_switches += --enable-svg=yes
+extra_configure_switches += --enable-tee
+extra_configure_switches += --enable-gobject
+extra_configure_switches += --enable-xml
+extra_configure_switches += --enable-full-testing=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	# ======= Disable all test (required GDK x11 v2, poppler-glib) =======
+	@( cd $(build_dir) ; \
+	   sed -i "s,boilerplate test perf,boilerplate perf,g" Makefile ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(CAIRO_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(CAIRO_32_PKG)/usr/include
+	@rm -rf $(CAIRO_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(CAIRO_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libcairo.la libcairo-gobject.la  \
+	                                    libcairo-script-interpreter.la ; \
+	 )
+	@( cd $(CAIRO_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/cairo ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" cairo-sphinx.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(CAIRO_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libcairo.la libcairo-gobject.la  \
+	                                            libcairo-script-interpreter.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libcairo.la libcairo-gobject.la  \
+	                                              libcairo-script-interpreter.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/cairo ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" cairo-sphinx.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" cairo-sphinx.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" cairo.pc cairo-egl.pc cairo-fc.pc cairo-ft.pc        \
+	                                            cairo-glesv2.pc cairo-gobject.pc cairo-png.pc        \
+	                                            cairo-pdf.pc cairo-ps.pc cairo-svg.pc                \
+	                                            cairo-script.pc cairo-tee.pc cairo-xcb-shm.pc        \
+	                                            cairo-xcb.pc cairo-xlib-xcb.pc cairo-xlib-xrender.pc \
+	                                            cairo-xlib.pc cairo-xml.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(CAIRO_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(CAIRO_32_PKG)/usr/bin/32 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(CAIRO_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(CAIRO_32_PKG_DESCRIPTION_FILE): $(CAIRO_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(CAIRO_32_PKG_DESCRIPTION_FILE) $(CAIRO_32_PKG_INSTALL_SCRIPT)
+	@cp $(CAIRO_32_PKG_DESCRIPTION_FILE) $(CAIRO_32_PKG)/.DESCRIPTION
+	@cp $(CAIRO_32_PKG_INSTALL_SCRIPT) $(CAIRO_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(CAIRO_32_PKG)/.REQUIRES
+	@echo "pkgname=$(CAIRO_32_PKG_NAME)"                            >  $(CAIRO_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(CAIRO_32_PKG_VERSION)"                          >> $(CAIRO_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(CAIRO_32_PKG_ARCH)"                               >> $(CAIRO_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(CAIRO_32_PKG_DISTRO_NAME)"                  >> $(CAIRO_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(CAIRO_32_PKG_DISTRO_VERSION)"                >> $(CAIRO_32_PKG)/.PKGINFO ; \
+	 echo "group=$(CAIRO_32_PKG_GROUP)"                             >> $(CAIRO_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(CAIRO_32_PKG_SHORT_DESCRIPTION)\"" >> $(CAIRO_32_PKG)/.PKGINFO ; \
+	 echo "url=$(CAIRO_32_PKG_URL)"                                 >> $(CAIRO_32_PKG)/.PKGINFO ; \
+	 echo "license=$(CAIRO_32_PKG_LICENSE)"                         >> $(CAIRO_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(CAIRO_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/cairo/1.14.0-x86_32/cairo-x32-pkg-install.sh
===================================================================
--- X11/libs/cairo/1.14.0-x86_32/cairo-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/cairo/1.14.0-x86_32/cairo-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/cairo/1.14.0-x86_32/cairo-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/cairo/1.14.0-x86_32/PATCHES
===================================================================
--- X11/libs/cairo/1.14.0-x86_32/PATCHES	(nonexistent)
+++ X11/libs/cairo/1.14.0-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/l/cairo/patches/cairo-1.14.0.patch -p0
Index: X11/libs/cairo/1.14.0-x86_32/cairo-x32-pkg-description.in
===================================================================
--- X11/libs/cairo/1.14.0-x86_32/cairo-x32-pkg-description.in	(nonexistent)
+++ X11/libs/cairo/1.14.0-x86_32/cairo-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+         |-----handy-ruler------------------------------------------------------|
+cairo-x32: cairo-x32 @VERSION@ (x86_32 graphics library used by GTK+)
+cairo-x32:
+cairo-x32: Cairo is a vector graphics library designed to provide high-quality
+cairo-x32: display and print output. Cairo is designed to produce identical
+cairo-x32: output on all output media while taking advantage of display
+cairo-x32: hardware acceleration when available (eg. through the X Render
+cairo-x32: Extension or OpenGL).
+cairo-x32:
+cairo-x32:
+cairo-x32:
+cairo-x32:
Index: X11/libs/fontconfig/2.11.1/Makefile
===================================================================
--- X11/libs/fontconfig/2.11.1/Makefile	(nonexistent)
+++ X11/libs/fontconfig/2.11.1/Makefile	(revision 563)
@@ -0,0 +1,234 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/fontconfig
+
+REQUIRES           = libs/expat/2.1.0
+REQUIRES          += env/freetype/2.5.3
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.11.1
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/fontconfig/fontconfig-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/fontconfig-$(version)
+src_dir_name       = fontconfig-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+FONTCFG_PKG_NAME                = fontconfig
+FONTCFG_PKG_VERSION             = 2.11.1
+FONTCFG_PKG_ARCH                = $(TOOLCHAIN)
+FONTCFG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+FONTCFG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+FONTCFG_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+FONTCFG_PKG_SHORT_DESCRIPTION   = Font library and tools
+FONTCFG_PKG_URL                 = $(BUG_URL)
+FONTCFG_PKG_LICENSE             = custom
+FONTCFG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(FONTCFG_PKG_NAME)-pkg-description
+FONTCFG_PKG_DESCRIPTION_FILE_IN = $(FONTCFG_PKG_NAME)-pkg-description.in
+FONTCFG_PKG_INSTALL_SCRIPT      = $(FONTCFG_PKG_NAME)-pkg-install.sh
+
+FONTCFG_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(FONTCFG_PKG_NAME)-package
+
+pkg_basename     = $(FONTCFG_PKG_NAME)-$(FONTCFG_PKG_VERSION)-$(FONTCFG_PKG_ARCH)-$(FONTCFG_PKG_DISTRO_NAME)-$(FONTCFG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(FONTCFG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --with-templatedir=/etc/fonts/conf.avai
+extra_configure_switches += --with-baseconfigdir=/etc/fonts
+extra_configure_switches += --with-configdir=/etc/fonts/conf.d
+extra_configure_switches += --with-xmldir=/etc/fonts
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	# ======= trick the Makefile.am developers =======
+	@( cd $(build_dir)/doc ; \
+	   gcc -c -o edit-sgml.o $(CURDIR)/$(SRC_DIR)/doc/edit-sgml.c ; \
+	   gcc -o edit-sgml edit-sgml.o ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(FONTCFG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Relinking etc/fonts/conf.d/*.conf =======
+	@( cd $(FONTCFG_PKG)/etc/fonts/conf.d ; \
+	   for file in `find . -type l` ; do \
+	     file=`basename $$file` ; rm -f $$file ; ln -sf ../conf.avai/$$file $$file ; \
+	   done \
+	 )
+	# ======= Install Documentation =======
+	@if [ -d $(FONTCFG_PKG)/usr/share/man ]; then \
+	  ( cd $(FONTCFG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(FONTCFG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING* \
+	       $(FONTCFG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(FONTCFG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL README \
+	         $(FONTCFG_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(FONTCFG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(FONTCFG_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libfontconfig.la  \
+	 )
+	@( cd $(FONTCFG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" fontconfig.pc  \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(FONTCFG_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libfontconfig.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libfontconfig.la \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" fontconfig.pc \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(FONTCFG_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(FONTCFG_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(FONTCFG_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(FONTCFG_PKG_DESCRIPTION_FILE): $(FONTCFG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(FONTCFG_PKG_DESCRIPTION_FILE) $(FONTCFG_PKG_INSTALL_SCRIPT)
+	@cp $(FONTCFG_PKG_DESCRIPTION_FILE) $(FONTCFG_PKG)/.DESCRIPTION
+	@cp $(FONTCFG_PKG_INSTALL_SCRIPT) $(FONTCFG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(FONTCFG_PKG)/.REQUIRES
+	@echo "pkgname=$(FONTCFG_PKG_NAME)"                            >  $(FONTCFG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(FONTCFG_PKG_VERSION)"                          >> $(FONTCFG_PKG)/.PKGINFO ; \
+	 echo "arch=$(FONTCFG_PKG_ARCH)"                               >> $(FONTCFG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(FONTCFG_PKG_DISTRO_NAME)"                  >> $(FONTCFG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(FONTCFG_PKG_DISTRO_VERSION)"                >> $(FONTCFG_PKG)/.PKGINFO ; \
+	 echo "group=$(FONTCFG_PKG_GROUP)"                             >> $(FONTCFG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(FONTCFG_PKG_SHORT_DESCRIPTION)\"" >> $(FONTCFG_PKG)/.PKGINFO ; \
+	 echo "url=$(FONTCFG_PKG_URL)"                                 >> $(FONTCFG_PKG)/.PKGINFO ; \
+	 echo "license=$(FONTCFG_PKG_LICENSE)"                         >> $(FONTCFG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(FONTCFG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/fontconfig/2.11.1/fontconfig-pkg-install.sh
===================================================================
--- X11/libs/fontconfig/2.11.1/fontconfig-pkg-install.sh	(nonexistent)
+++ X11/libs/fontconfig/2.11.1/fontconfig-pkg-install.sh	(revision 563)
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  # Notice we use an absolute path below, rather than usr/bin/fc-cache. This is because
+  # we're testing to see if we are on the bootdisk, which will not have /usr/bin/fc-cache.
+  # The presence of "/etc/system-installer" is under consideration as a better test.
+  # Also we have to check that we are not in the installer mode on the target system
+  # ("/etc/system-installer"), and we have to be sure that we are on the working system
+  # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+  if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a -x /usr/bin/fc-cache ]; then
+    /usr/bin/fc-cache -f
+  fi
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/fontconfig/2.11.1/fontconfig-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/fontconfig/2.11.1/PATCHES
===================================================================
--- X11/libs/fontconfig/2.11.1/PATCHES	(nonexistent)
+++ X11/libs/fontconfig/2.11.1/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/fontconfig/patches/fontconfig-2.11.1.patch -p0
Index: X11/libs/fontconfig/2.11.1/fontconfig-pkg-description.in
===================================================================
--- X11/libs/fontconfig/2.11.1/fontconfig-pkg-description.in	(nonexistent)
+++ X11/libs/fontconfig/2.11.1/fontconfig-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+          |-----handy-ruler------------------------------------------------------|
+fontconfig: fontconfig @VERSION@ (Font library and tools)
+fontconfig:
+fontconfig: Fontconfig is a library and tools designed to provide system-wide
+fontconfig: font configuration, customization, and application access.
+fontconfig:
+fontconfig: Fontconfig is written and maintained by Keith Packard.
+fontconfig:
+fontconfig:
+fontconfig:
+fontconfig:
+fontconfig:
Index: X11/libs/fontconfig/2.11.1-x86_32/Makefile
===================================================================
--- X11/libs/fontconfig/2.11.1-x86_32/Makefile	(nonexistent)
+++ X11/libs/fontconfig/2.11.1-x86_32/Makefile	(revision 563)
@@ -0,0 +1,199 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/fontconfig
+
+REQUIRES           = X11/libs/fontconfig/2.11.1
+REQUIRES          += libs/expat/2.1.0-x86_32
+REQUIRES          += env/freetype/2.5.3-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.11.1
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/fontconfig/fontconfig-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/fontconfig-$(version)
+src_dir_name       = fontconfig-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+FONTCFG_32_PKG_NAME                = fontconfig-x32
+FONTCFG_32_PKG_VERSION             = 2.11.1
+FONTCFG_32_PKG_ARCH                = $(TOOLCHAIN)
+FONTCFG_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+FONTCFG_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+FONTCFG_32_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+FONTCFG_32_PKG_SHORT_DESCRIPTION   = Font library and tools
+FONTCFG_32_PKG_URL                 = $(BUG_URL)
+FONTCFG_32_PKG_LICENSE             = custom
+FONTCFG_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(FONTCFG_32_PKG_NAME)-pkg-description
+FONTCFG_32_PKG_DESCRIPTION_FILE_IN = $(FONTCFG_32_PKG_NAME)-pkg-description.in
+FONTCFG_32_PKG_INSTALL_SCRIPT      = $(FONTCFG_32_PKG_NAME)-pkg-install.sh
+
+FONTCFG_32_PKG   = $(CURDIR)/$(TARGET_BUILD_DIR)/$(FONTCFG_32_PKG_NAME)-package
+
+pkg_basename     = $(FONTCFG_32_PKG_NAME)-$(FONTCFG_32_PKG_VERSION)-$(FONTCFG_32_PKG_ARCH)-$(FONTCFG_32_PKG_DISTRO_NAME)-$(FONTCFG_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(FONTCFG_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --with-templatedir=/etc/fonts/conf.avai
+extra_configure_switches += --with-baseconfigdir=/etc/fonts
+extra_configure_switches += --with-configdir=/etc/fonts/conf.d
+extra_configure_switches += --with-xmldir=/etc/fonts
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	# ======= trick the Makefile.am developers =======
+	@( cd $(build_dir)/doc ; \
+	   gcc -c -o edit-sgml.o $(CURDIR)/$(SRC_DIR)/doc/edit-sgml.c ; \
+	   gcc -o edit-sgml edit-sgml.o ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(FONTCFG_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@mkdir -p $(FONTCFG_32_PKG)/usr/bin/32
+	@( cd $(FONTCFG_32_PKG)/usr/bin ; \
+	   find . -type f | xargs mv -t 32 ; \
+	 )
+	@rm -rf $(FONTCFG_32_PKG)/etc
+	@rm -rf $(FONTCFG_32_PKG)/usr/include
+	@rm -rf $(FONTCFG_32_PKG)/usr/share
+	@rm -rf $(FONTCFG_32_PKG)/var
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(FONTCFG_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libfontconfig.la  \
+	 )
+	@( cd $(FONTCFG_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" fontconfig.pc  \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(FONTCFG_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libfontconfig.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libfontconfig.la \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" fontconfig.pc \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(FONTCFG_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(FONTCFG_32_PKG)/usr/bin/32 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(FONTCFG_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(FONTCFG_32_PKG_DESCRIPTION_FILE): $(FONTCFG_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(FONTCFG_32_PKG_DESCRIPTION_FILE) $(FONTCFG_32_PKG_INSTALL_SCRIPT)
+	@cp $(FONTCFG_32_PKG_DESCRIPTION_FILE) $(FONTCFG_32_PKG)/.DESCRIPTION
+	@cp $(FONTCFG_32_PKG_INSTALL_SCRIPT) $(FONTCFG_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(FONTCFG_32_PKG)/.REQUIRES
+	@echo "pkgname=$(FONTCFG_32_PKG_NAME)"                            >  $(FONTCFG_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(FONTCFG_32_PKG_VERSION)"                          >> $(FONTCFG_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(FONTCFG_32_PKG_ARCH)"                               >> $(FONTCFG_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(FONTCFG_32_PKG_DISTRO_NAME)"                  >> $(FONTCFG_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(FONTCFG_32_PKG_DISTRO_VERSION)"                >> $(FONTCFG_32_PKG)/.PKGINFO ; \
+	 echo "group=$(FONTCFG_32_PKG_GROUP)"                             >> $(FONTCFG_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(FONTCFG_32_PKG_SHORT_DESCRIPTION)\"" >> $(FONTCFG_32_PKG)/.PKGINFO ; \
+	 echo "url=$(FONTCFG_32_PKG_URL)"                                 >> $(FONTCFG_32_PKG)/.PKGINFO ; \
+	 echo "license=$(FONTCFG_32_PKG_LICENSE)"                         >> $(FONTCFG_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(FONTCFG_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/fontconfig/2.11.1-x86_32/fontconfig-x32-pkg-install.sh
===================================================================
--- X11/libs/fontconfig/2.11.1-x86_32/fontconfig-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/fontconfig/2.11.1-x86_32/fontconfig-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/fontconfig/2.11.1-x86_32/fontconfig-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/fontconfig/2.11.1-x86_32/PATCHES
===================================================================
--- X11/libs/fontconfig/2.11.1-x86_32/PATCHES	(nonexistent)
+++ X11/libs/fontconfig/2.11.1-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/fontconfig/patches/fontconfig-2.11.1.patch -p0
Index: X11/libs/fontconfig/2.11.1-x86_32/fontconfig-x32-pkg-description.in
===================================================================
--- X11/libs/fontconfig/2.11.1-x86_32/fontconfig-x32-pkg-description.in	(nonexistent)
+++ X11/libs/fontconfig/2.11.1-x86_32/fontconfig-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+              |-----handy-ruler------------------------------------------------------|
+fontconfig-x32: fontconfig-x32 @VERSION@ (x86_32 Font library and tools)
+fontconfig-x32:
+fontconfig-x32: Fontconfig is a library and tools designed to provide system-wide
+fontconfig-x32: font configuration, customization, and application access.
+fontconfig-x32:
+fontconfig-x32: Fontconfig is written and maintained by Keith Packard.
+fontconfig-x32:
+fontconfig-x32:
+fontconfig-x32:
+fontconfig-x32:
+fontconfig-x32:
Index: X11/libs/freeglut/2.8.1/Makefile
===================================================================
--- X11/libs/freeglut/2.8.1/Makefile	(nonexistent)
+++ X11/libs/freeglut/2.8.1/Makefile	(revision 563)
@@ -0,0 +1,202 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/freeglut
+
+REQUIRES           = X11/libs/glu/9.0.0
+REQUIRES          += X11/X.org/lib/libXi/1.7.4
+REQUIRES          += X11/X.org/lib/libXrandr/1.4.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.8.1
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/x/freeglut/freeglut-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/freeglut-$(version)
+src_dir_name       = freeglut-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GLUT_PKG_NAME                = freeglut
+GLUT_PKG_VERSION             = 2.8.1
+GLUT_PKG_ARCH                = $(TOOLCHAIN)
+GLUT_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GLUT_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GLUT_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+GLUT_PKG_SHORT_DESCRIPTION   = alternative GLUT library
+GLUT_PKG_URL                 = $(BUG_URL)
+GLUT_PKG_LICENSE             = MIT
+GLUT_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GLUT_PKG_NAME)-pkg-description
+GLUT_PKG_DESCRIPTION_FILE_IN = $(GLUT_PKG_NAME)-pkg-description.in
+GLUT_PKG_INSTALL_SCRIPT      = $(GLUT_PKG_NAME)-pkg-install.sh
+
+GLUT_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GLUT_PKG_NAME)-package
+
+pkg_basename     = $(GLUT_PKG_NAME)-$(GLUT_PKG_VERSION)-$(GLUT_PKG_ARCH)-$(GLUT_PKG_DISTRO_NAME)-$(GLUT_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(GLUT_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --enable-shared=yes
+extra_configure_switches += --enable-static=yes
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GLUT_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(GLUT_PKG)/usr/share/man ]; then \
+	  ( cd $(GLUT_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(GLUT_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(GLUT_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(GLUT_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   chmod a-x README* ; \
+	   cp -a AUTHORS COPYING Frequently* INSTALL NEWS README* TODO \
+	         $(GLUT_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GLUT_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GLUT_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libglut.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GLUT_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libglut.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libglut.la ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GLUT_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GLUT_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GLUT_PKG_DESCRIPTION_FILE): $(GLUT_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GLUT_PKG_DESCRIPTION_FILE) $(GLUT_PKG_INSTALL_SCRIPT)
+	@cp $(GLUT_PKG_DESCRIPTION_FILE) $(GLUT_PKG)/.DESCRIPTION
+	@cp $(GLUT_PKG_INSTALL_SCRIPT) $(GLUT_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GLUT_PKG)/.REQUIRES
+	@echo "pkgname=$(GLUT_PKG_NAME)"                            >  $(GLUT_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GLUT_PKG_VERSION)"                          >> $(GLUT_PKG)/.PKGINFO ; \
+	 echo "arch=$(GLUT_PKG_ARCH)"                               >> $(GLUT_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GLUT_PKG_DISTRO_NAME)"                  >> $(GLUT_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GLUT_PKG_DISTRO_VERSION)"                >> $(GLUT_PKG)/.PKGINFO ; \
+	 echo "group=$(GLUT_PKG_GROUP)"                             >> $(GLUT_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GLUT_PKG_SHORT_DESCRIPTION)\"" >> $(GLUT_PKG)/.PKGINFO ; \
+	 echo "url=$(GLUT_PKG_URL)"                                 >> $(GLUT_PKG)/.PKGINFO ; \
+	 echo "license=$(GLUT_PKG_LICENSE)"                         >> $(GLUT_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(GLUT_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/freeglut/2.8.1/freeglut-pkg-install.sh
===================================================================
--- X11/libs/freeglut/2.8.1/freeglut-pkg-install.sh	(nonexistent)
+++ X11/libs/freeglut/2.8.1/freeglut-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/freeglut/2.8.1/freeglut-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/freeglut/2.8.1/PATCHES
===================================================================
Index: X11/libs/freeglut/2.8.1/freeglut-pkg-description.in
===================================================================
--- X11/libs/freeglut/2.8.1/freeglut-pkg-description.in	(nonexistent)
+++ X11/libs/freeglut/2.8.1/freeglut-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+freeglut: freeglut @VERSION@ (alternative GLUT library)
+freeglut:
+freeglut: freeglut is a completely OpenSourced alternative to the OpenGL
+freeglut: Utility Toolkit (GLUT) library. GLUT (and hence freeglut) allows
+freeglut: the user to create and manage windows containing OpenGL contexts
+freeglut: on a wide range of platforms and also read the mouse, keyboard, and
+freeglut: joystick functions.
+freeglut:
+freeglut: Homepage: http://freeglut.sourceforge.net
+freeglut:
+freeglut:
Index: X11/libs/freeglut/2.8.1-x86_32/Makefile
===================================================================
--- X11/libs/freeglut/2.8.1-x86_32/Makefile	(nonexistent)
+++ X11/libs/freeglut/2.8.1-x86_32/Makefile	(revision 563)
@@ -0,0 +1,166 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/freeglut
+
+REQUIRES           = X11/libs/freeglut/2.8.1
+REQUIRES          += X11/libs/glu/9.0.0-x86_32
+REQUIRES          += X11/X.org/lib/libXi/1.7.4-x86_32
+REQUIRES          += X11/X.org/lib/libXrandr/1.4.2-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.8.1
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/x/freeglut/freeglut-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/freeglut-$(version)
+src_dir_name       = freeglut-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GLUT_32_PKG_NAME                = freeglut-x32
+GLUT_32_PKG_VERSION             = 2.8.1
+GLUT_32_PKG_ARCH                = $(TOOLCHAIN)
+GLUT_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GLUT_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GLUT_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+GLUT_32_PKG_SHORT_DESCRIPTION   = alternative GLUT library
+GLUT_32_PKG_URL                 = $(BUG_URL)
+GLUT_32_PKG_LICENSE             = MIT
+GLUT_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GLUT_32_PKG_NAME)-pkg-description
+GLUT_32_PKG_DESCRIPTION_FILE_IN = $(GLUT_32_PKG_NAME)-pkg-description.in
+GLUT_32_PKG_INSTALL_SCRIPT      = $(GLUT_32_PKG_NAME)-pkg-install.sh
+
+GLUT_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GLUT_32_PKG_NAME)-package
+
+pkg_basename     = $(GLUT_32_PKG_NAME)-$(GLUT_32_PKG_VERSION)-$(GLUT_32_PKG_ARCH)-$(GLUT_32_PKG_DISTRO_NAME)-$(GLUT_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(GLUT_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --enable-shared=yes
+extra_configure_switches += --enable-static=yes
+
+
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GLUT_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(GLUT_32_PKG)/usr/include
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GLUT_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libglut.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GLUT_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libglut.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libglut.la ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GLUT_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GLUT_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GLUT_32_PKG_DESCRIPTION_FILE): $(GLUT_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GLUT_32_PKG_DESCRIPTION_FILE) $(GLUT_32_PKG_INSTALL_SCRIPT)
+	@cp $(GLUT_32_PKG_DESCRIPTION_FILE) $(GLUT_32_PKG)/.DESCRIPTION
+	@cp $(GLUT_32_PKG_INSTALL_SCRIPT) $(GLUT_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GLUT_32_PKG)/.REQUIRES
+	@echo "pkgname=$(GLUT_32_PKG_NAME)"                            >  $(GLUT_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GLUT_32_PKG_VERSION)"                          >> $(GLUT_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(GLUT_32_PKG_ARCH)"                               >> $(GLUT_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GLUT_32_PKG_DISTRO_NAME)"                  >> $(GLUT_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GLUT_32_PKG_DISTRO_VERSION)"                >> $(GLUT_32_PKG)/.PKGINFO ; \
+	 echo "group=$(GLUT_32_PKG_GROUP)"                             >> $(GLUT_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GLUT_32_PKG_SHORT_DESCRIPTION)\"" >> $(GLUT_32_PKG)/.PKGINFO ; \
+	 echo "url=$(GLUT_32_PKG_URL)"                                 >> $(GLUT_32_PKG)/.PKGINFO ; \
+	 echo "license=$(GLUT_32_PKG_LICENSE)"                         >> $(GLUT_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(GLUT_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/freeglut/2.8.1-x86_32/freeglut-x32-pkg-install.sh
===================================================================
--- X11/libs/freeglut/2.8.1-x86_32/freeglut-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/freeglut/2.8.1-x86_32/freeglut-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/freeglut/2.8.1-x86_32/freeglut-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/freeglut/2.8.1-x86_32/PATCHES
===================================================================
Index: X11/libs/freeglut/2.8.1-x86_32/freeglut-x32-pkg-description.in
===================================================================
--- X11/libs/freeglut/2.8.1-x86_32/freeglut-x32-pkg-description.in	(nonexistent)
+++ X11/libs/freeglut/2.8.1-x86_32/freeglut-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+            |-----handy-ruler------------------------------------------------------|
+freeglut-x32: freeglut-x32 @VERSION@ (x86_32 alternative GLUT library)
+freeglut-x32:
+freeglut-x32: freeglut is a completely OpenSourced alternative to the OpenGL
+freeglut-x32: Utility Toolkit (GLUT) library. GLUT (and hence freeglut) allows
+freeglut-x32: the user to create and manage windows containing OpenGL contexts
+freeglut-x32: on a wide range of platforms and also read the mouse, keyboard, and
+freeglut-x32: joystick functions.
+freeglut-x32:
+freeglut-x32: Homepage: http://freeglut.sourceforge.net
+freeglut-x32:
+freeglut-x32:
Index: X11/libs/gdk-pixbuf2/2.31.1/Makefile
===================================================================
--- X11/libs/gdk-pixbuf2/2.31.1/Makefile	(nonexistent)
+++ X11/libs/gdk-pixbuf2/2.31.1/Makefile	(revision 563)
@@ -0,0 +1,271 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/GNOME/core/gdk-pixbuf
+
+REQUIRES           = libs/glib2/2.40.0
+REQUIRES          += libs/libpng/libpng14/1.4.13
+REQUIRES          += libs/libtiff/4.0.3
+REQUIRES          += X11/X.org/lib/libX11/1.6.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.31.1
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNOME/core/gdk-pixbuf/gdk-pixbuf-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/gdk-pixbuf-$(version)
+src_dir_name       = gdk-pixbuf-$(version)
+doc_dir_name       = gdk-pixbuf2-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+update_script_in   = $(CURDIR)/update-loaders/update-gdk-pixbuf-loaders.in
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PIXBUF2_PKG_NAME                = gdk-pixbuf2
+PIXBUF2_PKG_VERSION             = 2.31.1
+PIXBUF2_PKG_ARCH                = $(TOOLCHAIN)
+PIXBUF2_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PIXBUF2_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PIXBUF2_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+PIXBUF2_PKG_SHORT_DESCRIPTION   = image library used by GTK+ v2
+PIXBUF2_PKG_URL                 = $(BUG_URL)
+PIXBUF2_PKG_LICENSE             = GPLv2
+PIXBUF2_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PIXBUF2_PKG_NAME)-pkg-description
+PIXBUF2_PKG_DESCRIPTION_FILE_IN = $(PIXBUF2_PKG_NAME)-pkg-description.in
+PIXBUF2_PKG_INSTALL_SCRIPT      = $(PIXBUF2_PKG_NAME)-pkg-install.sh
+
+PIXBUF2_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PIXBUF2_PKG_NAME)-package
+
+pkg_basename     = $(PIXBUF2_PKG_NAME)-$(PIXBUF2_PKG_VERSION)-$(PIXBUF2_PKG_ARCH)-$(PIXBUF2_PKG_DISTRO_NAME)-$(PIXBUF2_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(PIXBUF2_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(doc_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+extra_configure_switches += --enable-introspection=no
+extra_configure_switches += --enable-gio-sniffing=no
+extra_configure_switches += --with-x11
+
+extra_configure_switches += --with-libjasper=no
+extra_configure_switches += --disable-rebuilds
+extra_configure_switches += --enable-gtk-doc=no
+extra_configure_switches += --with-html-dir=/usr/share/gtk-doc/html/$(doc_dir_name)
+
+extra_configure_switches += --disable-rpath
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PIXBUF2_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64)),)
+	@( cd $(PIXBUF2_PKG)/usr/bin ; mv gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-64 ; ln -sf gdk-pixbuf-query-loaders-64 gdk-pixbuf-query-loaders )
+else
+	@( cd $(PIXBUF2_PKG)/usr/bin ; mv gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-32 ; ln -sf gdk-pixbuf-query-loaders-32 gdk-pixbuf-query-loaders )
+endif
+	@cat $(update_script_in) | sed -e 's/@HOST_TRIPLET@/$(TARGET)/g' > $(PIXBUF2_PKG)/usr/bin/update-gdk-pixbuf-loaders
+	@chmod 0755 $(PIXBUF2_PKG)/usr/bin/update-gdk-pixbuf-loaders
+	# ======= Install Documentation =======
+	@if [ -d $(PIXBUF2_PKG)/usr/share/man ]; then \
+	  ( cd $(PIXBUF2_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(PIXBUF2_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(PIXBUF2_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PIXBUF2_PKG)/usr/share/gtk-doc/html/$(doc_dir_name)
+	@( cd $(SRC_DIR)/docs/reference/gdk-pixbuf/html ; \
+	   cp -a *.html *.css *.png \
+	         $(PIXBUF2_PKG)/usr/share/gtk-doc/html/$(doc_dir_name) ; \
+	 )
+	@mkdir -p $(PIXBUF2_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL NEWS \
+	         $(PIXBUF2_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	   ln -sf ../../gtk-doc/html/$(doc_dir_name) $(PIXBUF2_PKG)/usr/share/doc/$(doc_dir_name)/html ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(PIXBUF2_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(PIXBUF2_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libgdk_pixbuf-?.?.la libgdk_pixbuf_xlib-?.?.la ; \
+	 )
+	@( cd $(PIXBUF2_PKG)/usr/lib$(LIBSUFFIX)/gdk-pixbuf-?.?/?.??.?/loaders ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libpixbufloader-ani.la  libpixbufloader-bmp.la   \
+	                                    libpixbufloader-gif.la  libpixbufloader-icns.la  \
+	                                    libpixbufloader-ico.la  libpixbufloader-jpeg.la  \
+	                                    libpixbufloader-pcx.la  libpixbufloader-png.la   \
+	                                    libpixbufloader-pnm.la  libpixbufloader-qtif.la  \
+	                                    libpixbufloader-ras.la  libpixbufloader-tga.la   \
+	                                    libpixbufloader-tiff.la libpixbufloader-wbmp.la  \
+	                                    libpixbufloader-xbm.la  libpixbufloader-xpm.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PIXBUF2_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libgdk_pixbuf-?.?.la libgdk_pixbuf_xlib-?.?.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libgdk_pixbuf-?.?.la libgdk_pixbuf_xlib-?.?.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gdk-pixbuf-?.?/?.??.?/loaders ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libpixbufloader-ani.la  libpixbufloader-bmp.la   \
+	                                            libpixbufloader-gif.la  libpixbufloader-icns.la  \
+	                                            libpixbufloader-ico.la  libpixbufloader-jpeg.la  \
+	                                            libpixbufloader-pcx.la  libpixbufloader-png.la   \
+	                                            libpixbufloader-pnm.la  libpixbufloader-qtif.la  \
+	                                            libpixbufloader-ras.la  libpixbufloader-tga.la   \
+	                                            libpixbufloader-tiff.la libpixbufloader-wbmp.la  \
+	                                            libpixbufloader-xbm.la  libpixbufloader-xpm.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libpixbufloader-ani.la  libpixbufloader-bmp.la   \
+	                                              libpixbufloader-gif.la  libpixbufloader-icns.la  \
+	                                              libpixbufloader-ico.la  libpixbufloader-jpeg.la  \
+	                                              libpixbufloader-pcx.la  libpixbufloader-png.la   \
+	                                              libpixbufloader-pnm.la  libpixbufloader-qtif.la  \
+	                                              libpixbufloader-ras.la  libpixbufloader-tga.la   \
+	                                              libpixbufloader-tiff.la libpixbufloader-wbmp.la  \
+	                                              libpixbufloader-xbm.la  libpixbufloader-xpm.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,prefix=/usr,prefix=$(TARGET_DEST_DIR)/usr,g" gdk-pixbuf-?.?.pc gdk-pixbuf-xlib-?.?.pc ; \
+	   sed -i "s,libdir=/usr,libdir=$(TARGET_DEST_DIR)/usr,g" gdk-pixbuf-?.?.pc gdk-pixbuf-xlib-?.?.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(PIXBUF2_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(PIXBUF2_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(PIXBUF2_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(PIXBUF2_PKG_DESCRIPTION_FILE): $(PIXBUF2_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PIXBUF2_PKG_DESCRIPTION_FILE) $(PIXBUF2_PKG_INSTALL_SCRIPT)
+	@cp $(PIXBUF2_PKG_DESCRIPTION_FILE) $(PIXBUF2_PKG)/.DESCRIPTION
+	@cp $(PIXBUF2_PKG_INSTALL_SCRIPT) $(PIXBUF2_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PIXBUF2_PKG)/.REQUIRES
+	@echo "pkgname=$(PIXBUF2_PKG_NAME)"                            >  $(PIXBUF2_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PIXBUF2_PKG_VERSION)"                          >> $(PIXBUF2_PKG)/.PKGINFO ; \
+	 echo "arch=$(PIXBUF2_PKG_ARCH)"                               >> $(PIXBUF2_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PIXBUF2_PKG_DISTRO_NAME)"                  >> $(PIXBUF2_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PIXBUF2_PKG_DISTRO_VERSION)"                >> $(PIXBUF2_PKG)/.PKGINFO ; \
+	 echo "group=$(PIXBUF2_PKG_GROUP)"                             >> $(PIXBUF2_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PIXBUF2_PKG_SHORT_DESCRIPTION)\"" >> $(PIXBUF2_PKG)/.PKGINFO ; \
+	 echo "url=$(PIXBUF2_PKG_URL)"                                 >> $(PIXBUF2_PKG)/.PKGINFO ; \
+	 echo "license=$(PIXBUF2_PKG_LICENSE)"                         >> $(PIXBUF2_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(PIXBUF2_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/gdk-pixbuf2/2.31.1/gdk-pixbuf2-pkg-install.sh
===================================================================
--- X11/libs/gdk-pixbuf2/2.31.1/gdk-pixbuf2-pkg-install.sh	(nonexistent)
+++ X11/libs/gdk-pixbuf2/2.31.1/gdk-pixbuf2-pkg-install.sh	(revision 563)
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  # Notice we use an absolute path below, rather than usr/bin/update-gdk-pixbuf-loaders.
+  # This is because we're testing to see if we are on the bootdisk, which will not have
+  # /usr/bin/update-gdk-pixbuf-loaders.
+  # Also we have to check that we are not in the installer mode on the target system
+  # ("/etc/system-installer"), and we have to be sure that we are on the working system
+  # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+  if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a -x /usr/bin/update-gdk-pixbuf-loaders ]; then
+    /usr/bin/update-gdk-pixbuf-loaders
+  fi
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  post_install
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/gdk-pixbuf2/2.31.1/gdk-pixbuf2-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/gdk-pixbuf2/2.31.1/PATCHES
===================================================================
Index: X11/libs/gdk-pixbuf2/2.31.1/gdk-pixbuf2-pkg-description.in
===================================================================
--- X11/libs/gdk-pixbuf2/2.31.1/gdk-pixbuf2-pkg-description.in	(nonexistent)
+++ X11/libs/gdk-pixbuf2/2.31.1/gdk-pixbuf2-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+           |-----handy-ruler------------------------------------------------------|
+gdk-pixbuf2: gdk-pixbuf2 @VERSION@ (image library used by GTK+ v2)
+gdk-pixbuf2:
+gdk-pixbuf2: The gdk-pixbuf library provides a number of features:
+gdk-pixbuf2:  - GdkPixbuf structure for representing images.
+gdk-pixbuf2:  - Image loading facilities, both synchronous and progressive.
+gdk-pixbuf2:  - Rendering of a GdkPixbuf into various formats:
+gdk-pixbuf2:    drawables (windows, pixmaps), GdkRGB buffers.
+gdk-pixbuf2:  - Fast scaling and compositing of pixbufs.
+gdk-pixbuf2:  - Simple animation loading (ie. animated gifs).
+gdk-pixbuf2:
+gdk-pixbuf2:
Index: X11/libs/gdk-pixbuf2/2.31.1/update-loaders/update-gdk-pixbuf-loaders.in
===================================================================
--- X11/libs/gdk-pixbuf2/2.31.1/update-loaders/update-gdk-pixbuf-loaders.in	(nonexistent)
+++ X11/libs/gdk-pixbuf2/2.31.1/update-loaders/update-gdk-pixbuf-loaders.in	(revision 563)
@@ -0,0 +1,53 @@
+#! /bin/sh
+# Updates $(libdir)/gdk-pixbuf-2.0/2.10.0/loaders
+
+umask 022
+
+host=@HOST_TRIPLET@
+
+case "$host" in
+  s390x*|x86_64*)
+   if [ -x /usr/bin/gdk-pixbuf-query-loaders-64 ]; then
+     if [ "$1" = "--verbose" ]; then
+       echo "Updating gdk-pixbuf.loaders for ${host}:"
+       echo "  /usr/bin/gdk-pixbuf-query-loaders-64 --update-cache"
+     fi
+     /usr/bin/gdk-pixbuf-query-loaders-64 --update-cache
+     # Check for x86_64 multilib:
+     if ls -d /etc/gtk-2.0/i?86* 1> /dev/null 2> /dev/null ; then
+       for d in $(ls -d /etc/pango/i?86*); do
+         mlhost=$(basename $d)
+         break
+       done
+       if [ -x /usr/bin/gdk-pixbuf-query-loaders-32 ]; then
+         if [ "$1" = "--verbose" ]; then
+           echo "Updating gdk-pixbuf.loaders for ${mlhost}:"
+           echo "  /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache"
+         fi
+         /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache
+       fi
+     fi
+   else
+     if [ "$1" = "--verbose" ]; then
+       echo "Updating gdk-pixbuf.loaders for ${host}:"
+       echo "  /usr/bin/gdk-pixbuf-query-loaders --update-cache"
+     fi
+     /usr/bin/gdk-pixbuf-query-loaders --update-cache
+   fi
+   ;;
+  *)
+   if [ -x /usr/bin/gdk-pixbuf-query-loaders-32 ]; then
+     if [ "$1" = "--verbose" ]; then
+       echo "Updating gdk-pixbuf.loaders for ${host}:"
+       echo "  /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache"
+     fi
+     /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache
+   else
+     if [ "$1" = "--verbose" ]; then
+       echo "Updating gdk-pixbuf.loaders for ${host}:"
+       echo "  /usr/bin/gdk-pixbuf-query-loaders --update-cache"
+     fi
+     /usr/bin/gdk-pixbuf-query-loaders --update-cache
+   fi
+   ;;
+esac
Index: X11/libs/gdk-pixbuf2/2.31.1-x86_32/Makefile
===================================================================
--- X11/libs/gdk-pixbuf2/2.31.1-x86_32/Makefile	(nonexistent)
+++ X11/libs/gdk-pixbuf2/2.31.1-x86_32/Makefile	(revision 563)
@@ -0,0 +1,231 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/GNOME/core/gdk-pixbuf
+
+REQUIRES           = X11/libs/gdk-pixbuf2/2.31.1
+REQUIRES          += libs/glib2/2.40.0-x86_32
+REQUIRES          += libs/libpng/libpng14/1.4.13-x86_32
+REQUIRES          += libs/libtiff/4.0.3-x86_32
+REQUIRES          += X11/X.org/lib/libX11/1.6.2-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.31.1
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNOME/core/gdk-pixbuf/gdk-pixbuf-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/gdk-pixbuf-$(version)
+src_dir_name       = gdk-pixbuf-$(version)
+doc_dir_name       = gdk-pixbuf2-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PIXBUF2_32_PKG_NAME                = gdk-pixbuf2-x32
+PIXBUF2_32_PKG_VERSION             = 2.31.1
+PIXBUF2_32_PKG_ARCH                = $(TOOLCHAIN)
+PIXBUF2_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PIXBUF2_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PIXBUF2_32_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+PIXBUF2_32_PKG_SHORT_DESCRIPTION   = image library used by GTK+ v2
+PIXBUF2_32_PKG_URL                 = $(BUG_URL)
+PIXBUF2_32_PKG_LICENSE             = GPLv2
+PIXBUF2_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PIXBUF2_32_PKG_NAME)-pkg-description
+PIXBUF2_32_PKG_DESCRIPTION_FILE_IN = $(PIXBUF2_32_PKG_NAME)-pkg-description.in
+PIXBUF2_32_PKG_INSTALL_SCRIPT      = $(PIXBUF2_32_PKG_NAME)-pkg-install.sh
+
+PIXBUF2_32_PKG   = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PIXBUF2_32_PKG_NAME)-package
+
+pkg_basename     = $(PIXBUF2_32_PKG_NAME)-$(PIXBUF2_32_PKG_VERSION)-$(PIXBUF2_32_PKG_ARCH)-$(PIXBUF2_32_PKG_DISTRO_NAME)-$(PIXBUF2_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(PIXBUF2_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(doc_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+#
+# NOTE: bindir=/usr/bun is correct! See installation process below.
+#
+extra_configure_switches += --bindir=/usr/bin
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+extra_configure_switches += --enable-introspection=no
+extra_configure_switches += --enable-gio-sniffing=no
+extra_configure_switches += --with-x11
+
+extra_configure_switches += --with-libjasper=no
+extra_configure_switches += --disable-rebuilds
+extra_configure_switches += --enable-gtk-doc=no
+extra_configure_switches += --with-html-dir=/usr/share/gtk-doc/html/$(doc_dir_name)
+
+extra_configure_switches += --disable-rpath
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PIXBUF2_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@mkdir -p $(PIXBUF2_32_PKG)/usr/bin/32
+	@( cd $(PIXBUF2_32_PKG)/usr/bin ; \
+	   mv gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-32 ; \
+	   mv gdk-pixbuf-csource gdk-pixbuf-pixdata 32 ; \
+	 )
+	@rm -rf $(PIXBUF2_32_PKG)/usr/include
+	@rm -rf $(PIXBUF2_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(PIXBUF2_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libgdk_pixbuf-?.?.la libgdk_pixbuf_xlib-?.?.la ; \
+	 )
+	@( cd $(PIXBUF2_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gdk-pixbuf-?.?/?.??.?/loaders ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libpixbufloader-ani.la  libpixbufloader-bmp.la   \
+	                                    libpixbufloader-gif.la  libpixbufloader-icns.la  \
+	                                    libpixbufloader-ico.la  libpixbufloader-jpeg.la  \
+	                                    libpixbufloader-pcx.la  libpixbufloader-png.la   \
+	                                    libpixbufloader-pnm.la  libpixbufloader-qtif.la  \
+	                                    libpixbufloader-ras.la  libpixbufloader-tga.la   \
+	                                    libpixbufloader-tiff.la libpixbufloader-wbmp.la  \
+	                                    libpixbufloader-xbm.la  libpixbufloader-xpm.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PIXBUF2_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libgdk_pixbuf-?.?.la libgdk_pixbuf_xlib-?.?.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libgdk_pixbuf-?.?.la libgdk_pixbuf_xlib-?.?.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gdk-pixbuf-?.?/?.??.?/loaders ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libpixbufloader-ani.la  libpixbufloader-bmp.la   \
+	                                            libpixbufloader-gif.la  libpixbufloader-icns.la  \
+	                                            libpixbufloader-ico.la  libpixbufloader-jpeg.la  \
+	                                            libpixbufloader-pcx.la  libpixbufloader-png.la   \
+	                                            libpixbufloader-pnm.la  libpixbufloader-qtif.la  \
+	                                            libpixbufloader-ras.la  libpixbufloader-tga.la   \
+	                                            libpixbufloader-tiff.la libpixbufloader-wbmp.la  \
+	                                            libpixbufloader-xbm.la  libpixbufloader-xpm.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libpixbufloader-ani.la  libpixbufloader-bmp.la   \
+	                                              libpixbufloader-gif.la  libpixbufloader-icns.la  \
+	                                              libpixbufloader-ico.la  libpixbufloader-jpeg.la  \
+	                                              libpixbufloader-pcx.la  libpixbufloader-png.la   \
+	                                              libpixbufloader-pnm.la  libpixbufloader-qtif.la  \
+	                                              libpixbufloader-ras.la  libpixbufloader-tga.la   \
+	                                              libpixbufloader-tiff.la libpixbufloader-wbmp.la  \
+	                                              libpixbufloader-xbm.la  libpixbufloader-xpm.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,prefix=/usr,prefix=$(TARGET_DEST_DIR)/usr,g" gdk-pixbuf-?.?.pc gdk-pixbuf-xlib-?.?.pc ; \
+	   sed -i "s,libdir=/usr,libdir=$(TARGET_DEST_DIR)/usr,g" gdk-pixbuf-?.?.pc gdk-pixbuf-xlib-?.?.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(PIXBUF2_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(PIXBUF2_32_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(PIXBUF2_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(PIXBUF2_32_PKG_DESCRIPTION_FILE): $(PIXBUF2_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PIXBUF2_32_PKG_DESCRIPTION_FILE) $(PIXBUF2_32_PKG_INSTALL_SCRIPT)
+	@cp $(PIXBUF2_32_PKG_DESCRIPTION_FILE) $(PIXBUF2_32_PKG)/.DESCRIPTION
+	@cp $(PIXBUF2_32_PKG_INSTALL_SCRIPT) $(PIXBUF2_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PIXBUF2_32_PKG)/.REQUIRES
+	@echo "pkgname=$(PIXBUF2_32_PKG_NAME)"                            >  $(PIXBUF2_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PIXBUF2_32_PKG_VERSION)"                          >> $(PIXBUF2_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(PIXBUF2_32_PKG_ARCH)"                               >> $(PIXBUF2_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PIXBUF2_32_PKG_DISTRO_NAME)"                  >> $(PIXBUF2_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PIXBUF2_32_PKG_DISTRO_VERSION)"                >> $(PIXBUF2_32_PKG)/.PKGINFO ; \
+	 echo "group=$(PIXBUF2_32_PKG_GROUP)"                             >> $(PIXBUF2_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PIXBUF2_32_PKG_SHORT_DESCRIPTION)\"" >> $(PIXBUF2_32_PKG)/.PKGINFO ; \
+	 echo "url=$(PIXBUF2_32_PKG_URL)"                                 >> $(PIXBUF2_32_PKG)/.PKGINFO ; \
+	 echo "license=$(PIXBUF2_32_PKG_LICENSE)"                         >> $(PIXBUF2_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(PIXBUF2_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/gdk-pixbuf2/2.31.1-x86_32/gdk-pixbuf2-x32-pkg-install.sh
===================================================================
--- X11/libs/gdk-pixbuf2/2.31.1-x86_32/gdk-pixbuf2-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/gdk-pixbuf2/2.31.1-x86_32/gdk-pixbuf2-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/gdk-pixbuf2/2.31.1-x86_32/gdk-pixbuf2-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/gdk-pixbuf2/2.31.1-x86_32/PATCHES
===================================================================
Index: X11/libs/gdk-pixbuf2/2.31.1-x86_32/gdk-pixbuf2-x32-pkg-description.in
===================================================================
--- X11/libs/gdk-pixbuf2/2.31.1-x86_32/gdk-pixbuf2-x32-pkg-description.in	(nonexistent)
+++ X11/libs/gdk-pixbuf2/2.31.1-x86_32/gdk-pixbuf2-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+               |-----handy-ruler------------------------------------------------------|
+gdk-pixbuf2-x32: gdk-pixbuf2-x32 @VERSION@ (x86_32 image library used by GTK+ v2)
+gdk-pixbuf2-x32:
+gdk-pixbuf2-x32: The gdk-pixbuf library provides a number of features:
+gdk-pixbuf2-x32:  - GdkPixbuf structure for representing images.
+gdk-pixbuf2-x32:  - Image loading facilities, both synchronous and progressive.
+gdk-pixbuf2-x32:  - Rendering of a GdkPixbuf into various formats:
+gdk-pixbuf2-x32:    drawables (windows, pixmaps), GdkRGB buffers.
+gdk-pixbuf2-x32:  - Fast scaling and compositing of pixbufs.
+gdk-pixbuf2-x32:  - Simple animation loading (ie. animated gifs).
+gdk-pixbuf2-x32:
+gdk-pixbuf2-x32:
Index: X11/libs/glew/1.12.0/Makefile
===================================================================
--- X11/libs/glew/1.12.0/Makefile	(nonexistent)
+++ X11/libs/glew/1.12.0/Makefile	(revision 563)
@@ -0,0 +1,180 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/glew
+
+REQUIRES           = X11/libs/glu/9.0.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.12.0
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/x/glew/glew-$(version).tgz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/glew-$(version)
+src_dir_name       = glew-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GLEW_PKG_NAME                = glew
+GLEW_PKG_VERSION             = 1.12.0
+GLEW_PKG_ARCH                = $(TOOLCHAIN)
+GLEW_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GLEW_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GLEW_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+GLEW_PKG_SHORT_DESCRIPTION   = OpenGL Extension Wrangler Library
+GLEW_PKG_URL                 = $(BUG_URL)
+GLEW_PKG_LICENSE             = custom
+GLEW_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GLEW_PKG_NAME)-pkg-description
+GLEW_PKG_DESCRIPTION_FILE_IN = $(GLEW_PKG_NAME)-pkg-description.in
+GLEW_PKG_INSTALL_SCRIPT      = $(GLEW_PKG_NAME)-pkg-install.sh
+
+GLEW_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GLEW_PKG_NAME)-package
+
+pkg_basename     = $(GLEW_PKG_NAME)-$(GLEW_PKG_VERSION)-$(GLEW_PKG_ARCH)-$(GLEW_PKG_DISTRO_NAME)-$(GLEW_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(GLEW_PKG)
+
+
+configure_options  = CC="$(CC) --sysroot=$(TARGET_DEST_DIR)"
+configure_options += LD="$(CC) --sysroot=$(TARGET_DEST_DIR)"
+configure_options += POPT="$(CFLAGS)"
+configure_options += LDFLAGS.EXTRA="$(LDFLAGS) -lGLU"
+configure_options += GLEW_NO_GLU="false"
+configure_options += STRIP=""
+configure_options += BINDIR="/usr/bin"
+configure_options += LIBDIR="/usr/lib$(LIBSUFFIX)"
+configure_options += INCDIR="/usr/include/GL"
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   sed -i "s,-DGLEW_NO_GLU,,g" Makefile ; \
+	   sed -i "s,-s ,,g" Makefile ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) $(configure_options)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GLEW_PKG)
+	@cd $(SRC_DIR) && $(MAKE) $(BUILD_ENVIRONMENT) install.all  $(configure_options) $(env_sysroot)
+	@( cd $(GLEW_PKG)/usr/lib$(LIBSUFFIX) ; chmod a+x libGLEW.so.?.??.? libGLEWmx.so.?.??.? )
+	# ======= Install Documentation =======
+	@if [ -d $(GLEW_PKG)/usr/share/man ]; then \
+	  ( cd $(GLEW_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(GLEW_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE.txt \
+	       $(GLEW_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(GLEW_PKG)/usr/share/doc/$(src_dir_name)/html
+	@( cd $(SRC_DIR) ; \
+	   cp -a LICENSE.txt README.txt TODO.txt \
+	         $(GLEW_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   cp -a doc/*.{html,css,jpg,png,txt,xcf} \
+	         $(GLEW_PKG)/usr/share/doc/$(src_dir_name)/html ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GLEW_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GLEW_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" glew.pc glewmx.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GLEW_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(GLEW_PKG_DESCRIPTION_FILE): $(GLEW_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GLEW_PKG_DESCRIPTION_FILE) $(GLEW_PKG_INSTALL_SCRIPT)
+	@cp $(GLEW_PKG_DESCRIPTION_FILE) $(GLEW_PKG)/.DESCRIPTION
+	@cp $(GLEW_PKG_INSTALL_SCRIPT) $(GLEW_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GLEW_PKG)/.REQUIRES
+	@echo "pkgname=$(GLEW_PKG_NAME)"                            >  $(GLEW_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GLEW_PKG_VERSION)"                          >> $(GLEW_PKG)/.PKGINFO ; \
+	 echo "arch=$(GLEW_PKG_ARCH)"                               >> $(GLEW_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GLEW_PKG_DISTRO_NAME)"                  >> $(GLEW_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GLEW_PKG_DISTRO_VERSION)"                >> $(GLEW_PKG)/.PKGINFO ; \
+	 echo "group=$(GLEW_PKG_GROUP)"                             >> $(GLEW_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GLEW_PKG_SHORT_DESCRIPTION)\"" >> $(GLEW_PKG)/.PKGINFO ; \
+	 echo "url=$(GLEW_PKG_URL)"                                 >> $(GLEW_PKG)/.PKGINFO ; \
+	 echo "license=$(GLEW_PKG_LICENSE)"                         >> $(GLEW_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(GLEW_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/glew/1.12.0/glew-pkg-install.sh
===================================================================
--- X11/libs/glew/1.12.0/glew-pkg-install.sh	(nonexistent)
+++ X11/libs/glew/1.12.0/glew-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/glew/1.12.0/glew-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/glew/1.12.0/PATCHES
===================================================================
Index: X11/libs/glew/1.12.0/glew-pkg-description.in
===================================================================
--- X11/libs/glew/1.12.0/glew-pkg-description.in	(nonexistent)
+++ X11/libs/glew/1.12.0/glew-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+    |-----handy-ruler------------------------------------------------------|
+glew: glew @VERSION@ (OpenGL Extension Wrangler Library)
+glew:
+glew: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
+glew: open-source C/C++ extension loading library. GLEW provides efficient
+glew: run-time mechanisms for determining which OpenGL extensions are
+glew: supported on the target platform.
+glew:
+glew: Homepage: http://glew.sourceforge.net
+glew:
+glew:
+glew:
Index: X11/libs/glew/1.12.0-x86_32/Makefile
===================================================================
--- X11/libs/glew/1.12.0-x86_32/Makefile	(nonexistent)
+++ X11/libs/glew/1.12.0-x86_32/Makefile	(revision 563)
@@ -0,0 +1,142 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/glew
+
+REQUIRES           = X11/libs/glew/1.12.0
+REQUIRES          += X11/libs/glu/9.0.0-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.12.0
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/x/glew/glew-$(version).tgz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/glew-$(version)
+src_dir_name       = glew-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GLEW_32_PKG_NAME                = glew-x32
+GLEW_32_PKG_VERSION             = 1.12.0
+GLEW_32_PKG_ARCH                = $(TOOLCHAIN)
+GLEW_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GLEW_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GLEW_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+GLEW_32_PKG_SHORT_DESCRIPTION   = OpenGL Extension Wrangler Library
+GLEW_32_PKG_URL                 = $(BUG_URL)
+GLEW_32_PKG_LICENSE             = custom
+GLEW_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GLEW_32_PKG_NAME)-pkg-description
+GLEW_32_PKG_DESCRIPTION_FILE_IN = $(GLEW_32_PKG_NAME)-pkg-description.in
+GLEW_32_PKG_INSTALL_SCRIPT      = $(GLEW_32_PKG_NAME)-pkg-install.sh
+
+GLEW_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GLEW_32_PKG_NAME)-package
+
+pkg_basename     = $(GLEW_32_PKG_NAME)-$(GLEW_32_PKG_VERSION)-$(GLEW_32_PKG_ARCH)-$(GLEW_32_PKG_DISTRO_NAME)-$(GLEW_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(GLEW_32_PKG)
+
+
+configure_options  = CC="$(CC) --sysroot=$(TARGET_DEST_DIR)"
+configure_options += LD="$(CC) --sysroot=$(TARGET_DEST_DIR)"
+configure_options += POPT="$(CFLAGS)"
+configure_options += LDFLAGS.EXTRA="$(LDFLAGS) -lGLU"
+configure_options += GLEW_NO_GLU="false"
+configure_options += STRIP=""
+configure_options += BINDIR="/usr/bin/32"
+configure_options += LIBDIR="/usr/lib$(MULTILIB_X86_32_SUFFIX)"
+configure_options += INCDIR="/usr/include/GL"
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   sed -i "s,-DGLEW_NO_GLU,,g" Makefile ; \
+	   sed -i "s,-s ,,g" Makefile ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) $(configure_options)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GLEW_32_PKG)
+	@cd $(SRC_DIR) && $(MAKE) $(BUILD_ENVIRONMENT) install.all  $(configure_options) $(env_sysroot)
+	@( cd $(GLEW_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; chmod a+x libGLEW.so.?.??.? libGLEWmx.so.?.??.? )
+	@rm -rf $(GLEW_32_PKG)/usr/include
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GLEW_32_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" glew.pc glewmx.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GLEW_32_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(GLEW_32_PKG_DESCRIPTION_FILE): $(GLEW_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GLEW_32_PKG_DESCRIPTION_FILE) $(GLEW_32_PKG_INSTALL_SCRIPT)
+	@cp $(GLEW_32_PKG_DESCRIPTION_FILE) $(GLEW_32_PKG)/.DESCRIPTION
+	@cp $(GLEW_32_PKG_INSTALL_SCRIPT) $(GLEW_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GLEW_32_PKG)/.REQUIRES
+	@echo "pkgname=$(GLEW_32_PKG_NAME)"                            >  $(GLEW_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GLEW_32_PKG_VERSION)"                          >> $(GLEW_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(GLEW_32_PKG_ARCH)"                               >> $(GLEW_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GLEW_32_PKG_DISTRO_NAME)"                  >> $(GLEW_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GLEW_32_PKG_DISTRO_VERSION)"                >> $(GLEW_32_PKG)/.PKGINFO ; \
+	 echo "group=$(GLEW_32_PKG_GROUP)"                             >> $(GLEW_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GLEW_32_PKG_SHORT_DESCRIPTION)\"" >> $(GLEW_32_PKG)/.PKGINFO ; \
+	 echo "url=$(GLEW_32_PKG_URL)"                                 >> $(GLEW_32_PKG)/.PKGINFO ; \
+	 echo "license=$(GLEW_32_PKG_LICENSE)"                         >> $(GLEW_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(GLEW_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/glew/1.12.0-x86_32/glew-x32-pkg-install.sh
===================================================================
--- X11/libs/glew/1.12.0-x86_32/glew-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/glew/1.12.0-x86_32/glew-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/glew/1.12.0-x86_32/glew-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/glew/1.12.0-x86_32/PATCHES
===================================================================
Index: X11/libs/glew/1.12.0-x86_32/glew-x32-pkg-description.in
===================================================================
--- X11/libs/glew/1.12.0-x86_32/glew-x32-pkg-description.in	(nonexistent)
+++ X11/libs/glew/1.12.0-x86_32/glew-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+glew-x32: glew-x32 @VERSION@ (x86_32 OpenGL Extension Wrangler Library)
+glew-x32:
+glew-x32: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
+glew-x32: open-source C/C++ extension loading library. GLEW provides efficient
+glew-x32: run-time mechanisms for determining which OpenGL extensions are
+glew-x32: supported on the target platform.
+glew-x32:
+glew-x32: Homepage: http://glew.sourceforge.net
+glew-x32:
+glew-x32:
+glew-x32:
Index: X11/libs/glu/9.0.0/Makefile
===================================================================
--- X11/libs/glu/9.0.0/Makefile	(nonexistent)
+++ X11/libs/glu/9.0.0/Makefile	(revision 563)
@@ -0,0 +1,204 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/glu
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 9.0.0
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/glu/glu-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/glu-$(version)
+src_dir_name       = glu-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+license            = $(CURDIR)/license/LICENSE
+
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GLU_PKG_NAME                = glu
+GLU_PKG_VERSION             = 9.0.0
+GLU_PKG_ARCH                = $(TOOLCHAIN)
+GLU_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GLU_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GLU_PKG_GROUP               = $(PKG_GROUP)
+###                          |---handy-ruler-------------------------------|
+GLU_PKG_SHORT_DESCRIPTION   = Mesa OpenGL utility library
+GLU_PKG_URL                 = $(BUG_URL)
+GLU_PKG_LICENSE             = LGPLv2
+GLU_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GLU_PKG_NAME)-pkg-description
+GLU_PKG_DESCRIPTION_FILE_IN = $(GLU_PKG_NAME)-pkg-description.in
+GLU_PKG_INSTALL_SCRIPT      = $(GLU_PKG_NAME)-pkg-install.sh
+
+GLU_PKG          = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GLU_PKG_NAME)-package
+
+pkg_basename     = $(GLU_PKG_NAME)-$(GLU_PKG_VERSION)-$(GLU_PKG_ARCH)-$(GLU_PKG_DISTRO_NAME)-$(GLU_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(GLU_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --enable-shared=yes
+extra_configure_switches += --enable-static=yes
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GLU_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(GLU_PKG)/usr/share/man ]; then \
+	  ( cd $(GLU_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(GLU_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(license) \
+	       $(GLU_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(GLU_PKG)/usr/share/doc/$(src_dir_name)
+	@cp -a $(license) \
+	       $(GLU_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GLU_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GLU_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libGLU.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GLU_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libGLU.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libGLU.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" glu.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GLU_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GLU_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GLU_PKG_DESCRIPTION_FILE): $(GLU_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GLU_PKG_DESCRIPTION_FILE) $(GLU_PKG_INSTALL_SCRIPT)
+	@cp $(GLU_PKG_DESCRIPTION_FILE) $(GLU_PKG)/.DESCRIPTION
+	@cp $(GLU_PKG_INSTALL_SCRIPT) $(GLU_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GLU_PKG)/.REQUIRES
+	@echo "pkgname=$(GLU_PKG_NAME)"                            >  $(GLU_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GLU_PKG_VERSION)"                          >> $(GLU_PKG)/.PKGINFO ; \
+	 echo "arch=$(GLU_PKG_ARCH)"                               >> $(GLU_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GLU_PKG_DISTRO_NAME)"                  >> $(GLU_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GLU_PKG_DISTRO_VERSION)"                >> $(GLU_PKG)/.PKGINFO ; \
+	 echo "group=$(GLU_PKG_GROUP)"                             >> $(GLU_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GLU_PKG_SHORT_DESCRIPTION)\"" >> $(GLU_PKG)/.PKGINFO ; \
+	 echo "url=$(GLU_PKG_URL)"                                 >> $(GLU_PKG)/.PKGINFO ; \
+	 echo "license=$(GLU_PKG_LICENSE)"                         >> $(GLU_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(GLU_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/glu/9.0.0/glu-pkg-install.sh
===================================================================
--- X11/libs/glu/9.0.0/glu-pkg-install.sh	(nonexistent)
+++ X11/libs/glu/9.0.0/glu-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/glu/9.0.0/glu-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/glu/9.0.0/PATCHES
===================================================================
Index: X11/libs/glu/9.0.0/glu-pkg-description.in
===================================================================
--- X11/libs/glu/9.0.0/glu-pkg-description.in	(nonexistent)
+++ X11/libs/glu/9.0.0/glu-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+   |-----handy-ruler------------------------------------------------------|
+glu: glu @VERSION@ (Mesa OpenGL utility library)
+glu:
+glu: glu is the Mesa OpenGL utility library (libGLU).
+glu:
+glu:
+glu:
+glu:
+glu:
+glu:
+glu:
+glu:
Index: X11/libs/glu/9.0.0/license/LICENSE
===================================================================
--- X11/libs/glu/9.0.0/license/LICENSE	(nonexistent)
+++ X11/libs/glu/9.0.0/license/LICENSE	(revision 563)
@@ -0,0 +1,51 @@
+
+glu_mangle.h:
+============
+  Mesa 3-D graphics library
+  Version:  3.0
+  Copyright (C) 1995-1998  Brian Paul
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Library General Public
+  License as published by the Free Software Foundation; either
+  version 2 of the License, or (at your option) any later version.
+
+  This library 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
+  Library General Public License for more details.
+
+  You should have received a copy of the GNU Library General Public
+  License along with this library; if not, write to the Free
+  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+
+glu.h:
+=====
+  SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
+  Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
+
+  Permission is hereby granted, free of charge, to any person obtaining a
+  copy of this software and associated documentation files (the "Software"),
+  to deal in the Software without restriction, including without limitation
+  the rights to use, copy, modify, merge, publish, distribute, sublicense,
+  and/or sell copies of the Software, and to permit persons to whom the
+  Software is furnished to do so, subject to the following conditions:
+
+  The above copyright notice including the dates of first publication and
+  either this permission notice or a reference to
+  http://oss.sgi.com/projects/FreeB/
+  shall be included in all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+  SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+  OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+  SOFTWARE.
+
+  Except as contained in this notice, the name of Silicon Graphics, Inc.
+  shall not be used in advertising or otherwise to promote the sale, use or
+  other dealings in this Software without prior written authorization from
+  Silicon Graphics, Inc.
Index: X11/libs/glu/9.0.0-x86_32/Makefile
===================================================================
--- X11/libs/glu/9.0.0-x86_32/Makefile	(nonexistent)
+++ X11/libs/glu/9.0.0-x86_32/Makefile	(revision 563)
@@ -0,0 +1,169 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/glu
+
+REQUIRES           = X11/libs/glu/9.0.0
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 9.0.0
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/glu/glu-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/glu-$(version)
+src_dir_name       = glu-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GLU_32_PKG_NAME                = glu-x32
+GLU_32_PKG_VERSION             = 9.0.0
+GLU_32_PKG_ARCH                = $(TOOLCHAIN)
+GLU_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GLU_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GLU_32_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+GLU_32_PKG_SHORT_DESCRIPTION   = Mesa OpenGL utility library
+GLU_32_PKG_URL                 = $(BUG_URL)
+GLU_32_PKG_LICENSE             = LGPLv2
+GLU_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GLU_32_PKG_NAME)-pkg-description
+GLU_32_PKG_DESCRIPTION_FILE_IN = $(GLU_32_PKG_NAME)-pkg-description.in
+GLU_32_PKG_INSTALL_SCRIPT      = $(GLU_32_PKG_NAME)-pkg-install.sh
+
+GLU_32_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GLU_32_PKG_NAME)-package
+
+pkg_basename     = $(GLU_32_PKG_NAME)-$(GLU_32_PKG_VERSION)-$(GLU_32_PKG_ARCH)-$(GLU_32_PKG_DISTRO_NAME)-$(GLU_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(GLU_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --enable-shared=yes
+extra_configure_switches += --enable-static=yes
+
+
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GLU_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(GLU_32_PKG)/usr/include
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GLU_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libGLU.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GLU_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libGLU.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libGLU.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" glu.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GLU_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GLU_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GLU_32_PKG_DESCRIPTION_FILE): $(GLU_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GLU_32_PKG_DESCRIPTION_FILE) $(GLU_32_PKG_INSTALL_SCRIPT)
+	@cp $(GLU_32_PKG_DESCRIPTION_FILE) $(GLU_32_PKG)/.DESCRIPTION
+	@cp $(GLU_32_PKG_INSTALL_SCRIPT) $(GLU_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GLU_32_PKG)/.REQUIRES
+	@echo "pkgname=$(GLU_32_PKG_NAME)"                            >  $(GLU_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GLU_32_PKG_VERSION)"                          >> $(GLU_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(GLU_32_PKG_ARCH)"                               >> $(GLU_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GLU_32_PKG_DISTRO_NAME)"                  >> $(GLU_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GLU_32_PKG_DISTRO_VERSION)"                >> $(GLU_32_PKG)/.PKGINFO ; \
+	 echo "group=$(GLU_32_PKG_GROUP)"                             >> $(GLU_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GLU_32_PKG_SHORT_DESCRIPTION)\"" >> $(GLU_32_PKG)/.PKGINFO ; \
+	 echo "url=$(GLU_32_PKG_URL)"                                 >> $(GLU_32_PKG)/.PKGINFO ; \
+	 echo "license=$(GLU_32_PKG_LICENSE)"                         >> $(GLU_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(GLU_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/glu/9.0.0-x86_32/glu-x32-pkg-install.sh
===================================================================
--- X11/libs/glu/9.0.0-x86_32/glu-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/glu/9.0.0-x86_32/glu-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/glu/9.0.0-x86_32/glu-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/glu/9.0.0-x86_32/PATCHES
===================================================================
Index: X11/libs/glu/9.0.0-x86_32/glu-x32-pkg-description.in
===================================================================
--- X11/libs/glu/9.0.0-x86_32/glu-x32-pkg-description.in	(nonexistent)
+++ X11/libs/glu/9.0.0-x86_32/glu-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+       |-----handy-ruler------------------------------------------------------|
+glu-x32: glu-x32 @VERSION@ (x86_32 Mesa OpenGL utility library)
+glu-x32:
+glu-x32: glu is the Mesa OpenGL utility library (libGLU).
+glu-x32:
+glu-x32:
+glu-x32:
+glu-x32:
+glu-x32:
+glu-x32:
+glu-x32:
+glu-x32:
Index: X11/libs/gtk+2/2.24.25/Makefile
===================================================================
--- X11/libs/gtk+2/2.24.25/Makefile	(nonexistent)
+++ X11/libs/gtk+2/2.24.25/Makefile	(revision 563)
@@ -0,0 +1,306 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/GNOME/core/gtk+2
+
+REQUIRES           = libs/atk/2.15.1
+REQUIRES          += libs/poppler/0.29.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.24.25
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNOME/core/gtk+2/gtk+-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/gtk+-$(version)
+src_dir_name       = gtk+-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+profile_dir        = $(CURDIR)/profile.d
+update_script_dir  = $(CURDIR)/update-immodules
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GTK2_PKG_NAME                = gtk2
+GTK2_PKG_VERSION             = 2.24.25
+GTK2_PKG_ARCH                = $(TOOLCHAIN)
+GTK2_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GTK2_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GTK2_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+GTK2_PKG_SHORT_DESCRIPTION   = multi-platform GUI toolkit
+GTK2_PKG_URL                 = $(BUG_URL)
+GTK2_PKG_LICENSE             = LGPLv2
+GTK2_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GTK2_PKG_NAME)-pkg-description
+GTK2_PKG_DESCRIPTION_FILE_IN = $(GTK2_PKG_NAME)-pkg-description.in
+GTK2_PKG_INSTALL_SCRIPT      = $(GTK2_PKG_NAME)-pkg-install.sh
+
+GTK2_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GTK2_PKG_NAME)-package
+
+pkg_basename     = $(GTK2_PKG_NAME)-$(GTK2_PKG_VERSION)-$(GTK2_PKG_ARCH)-$(GTK2_PKG_DISTRO_NAME)-$(GTK2_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(GTK2_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+
+extra_configure_switches += --with-x
+extra_configure_switches += --with-gdktarget=x11
+extra_configure_switches += --with-xinput=yes
+extra_configure_switches += --enable-xkb
+
+extra_configure_switches += --enable-introspection=no
+extra_configure_switches += --enable-gtk-doc=no
+extra_configure_switches += --enable-gtk-doc-html=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+environment  = CUPS_CONFIG=$(TARGET_DEST_DIR)/usr/bin/cups-config
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) $(environment) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GTK2_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install a 'starter' gtkrc =======
+	@echo 'gtk-theme-name="GTK+"' > $(GTK2_PKG)/etc/gtk-2.0/gtkrc.new
+	# ======= Don't clobber im-multipress.conf =======
+	@mv $(GTK2_PKG)/etc/gtk-2.0/im-multipress.conf $(GTK2_PKG)/etc/gtk-2.0/im-multipress.conf.new
+	# ======= Add profile scripts to set up GTK+ environment =======
+	@mkdir -p $(GTK2_PKG)/etc/profile.d
+	@cp -a $(profile_dir)/* $(GTK2_PKG)/etc/profile.d
+	@chmod 0755 $(GTK2_PKG)/etc/profile.d/*
+	# ======= Install wrappers for the 'gtk-query-immodules' binary =======
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64)),)
+	@( cd $(GTK2_PKG)/usr/bin ; mv gtk-query-immodules-2.0{,-64} ; ln -sf gtk-query-immodules-2.0-64 gtk-query-immodules-2.0 )
+else
+	@( cd $(GTK2_PKG)/usr/bin ; mv gtk-query-immodules-2.0{,-32} ; ln -sf gtk-query-immodules-2.0-32 gtk-query-immodules-2.0 )
+endif
+	@cat $(update_script_dir)/update-gtk-immodules > $(GTK2_PKG)/usr/bin/update-gtk-immodules
+	@cat $(update_script_dir)/update-gtk-immodules-2.0.in | \
+	     sed -e 's/@HOST_TRIPLET@/$(TARGET)/g' > $(GTK2_PKG)/usr/bin/update-gtk-immodules-2.0
+	@chmod 0755 $(GTK2_PKG)/usr/bin/update-gtk-immodules
+	@chmod 0755 $(GTK2_PKG)/usr/bin/update-gtk-immodules-2.0
+	# ======= Install Documentation =======
+	@if [ -d $(GTK2_PKG)/usr/share/man ]; then \
+	  ( cd $(GTK2_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(GTK2_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(GTK2_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(GTK2_PKG)/usr/share/gtk-doc/html/{gail-libgail-util,gdk2,gtk2}
+	@( cd $(SRC_DIR)/docs/reference/libgail-util/html ; \
+	   cp -a *.html *.png *.css \
+	         $(GTK2_PKG)/usr/share/gtk-doc/html/gail-libgail-util ; \
+	 )
+	@( cd $(SRC_DIR)/docs/reference/gdk/html ; \
+	   cp -a *.html *.png *.css \
+	         $(GTK2_PKG)/usr/share/gtk-doc/html/gdk2 ; \
+	 )
+	@( cd $(SRC_DIR)/docs/reference/gtk/html ; \
+	   cp -a *.html *.png *.css \
+	         $(GTK2_PKG)/usr/share/gtk-doc/html/gtk2 ; \
+	 )
+	@mkdir -p $(GTK2_PKG)/usr/share/doc/$(src_dir_name)/html
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING HACKING INSTALL NEWS* README \
+	         $(GTK2_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   ln -sf ../../../gtk-doc/html/gail-libgail-util $(GTK2_PKG)/usr/share/doc/$(src_dir_name)/html/gail-libgail-util ; \
+	   ln -sf ../../../gtk-doc/html/gdk2              $(GTK2_PKG)/usr/share/doc/$(src_dir_name)/html/gdk2 ; \
+	   ln -sf ../../../gtk-doc/html/gtk2              $(GTK2_PKG)/usr/share/doc/$(src_dir_name)/html/gtk2 ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GTK2_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GTK2_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libgailutil.la libgdk-x11-2.0.la libgtk-x11-2.0.la ; \
+	 )
+	@( cd $(GTK2_PKG)/usr/lib$(LIBSUFFIX)/gtk-?.?/?.??.?/engines ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libpixmap.la ; \
+	 )
+	@( cd $(GTK2_PKG)/usr/lib$(LIBSUFFIX)/gtk-?.?/?.??.?/immodules ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" im-am-et.la im-cedilla.la im-cyrillic-translit.la      \
+	                                    im-inuktitut.la im-ipa.la im-multipress.la im-thai.la  \
+	                                    im-ti-er.la im-ti-et.la im-viqr.la im-xim.la         ; \
+	 )
+	@( cd $(GTK2_PKG)/usr/lib$(LIBSUFFIX)/gtk-?.?/?.??.?/printbackends ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libprintbackend-cups.la  \
+	                                    libprintbackend-file.la  \
+	                                    libprintbackend-lpr.la ; \
+	 )
+	@( cd $(GTK2_PKG)/usr/lib$(LIBSUFFIX)/gtk-?.?/modules ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libferret.la libgail.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GTK2_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libgailutil.la libgdk-x11-2.0.la libgtk-x11-2.0.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libgailutil.la libgdk-x11-2.0.la libgtk-x11-2.0.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gtk-?.?/?.??.?/engines ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libpixmap.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libpixmap.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gtk-?.?/?.??.?/immodules ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" im-am-et.la im-cedilla.la im-cyrillic-translit.la      \
+	                                            im-inuktitut.la im-ipa.la im-multipress.la im-thai.la  \
+	                                            im-ti-er.la im-ti-et.la im-viqr.la im-xim.la         ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" im-am-et.la im-cedilla.la im-cyrillic-translit.la      \
+	                                              im-inuktitut.la im-ipa.la im-multipress.la im-thai.la  \
+	                                              im-ti-er.la im-ti-et.la im-viqr.la im-xim.la         ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gtk-?.?/?.??.?/printbackends ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libprintbackend-cups.la  \
+	                                            libprintbackend-file.la  \
+	                                            libprintbackend-lpr.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libprintbackend-cups.la  \
+	                                              libprintbackend-file.la  \
+	                                              libprintbackend-lpr.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gtk-?.?/modules ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libferret.la libgail.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libferret.la libgail.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" gail.pc gdk-2.0.pc gdk-x11-2.0.pc   \
+	                                            gtk+-2.0.pc gtk+-unix-print-2.0.pc  \
+	                                            gtk+-x11-2.0.pc                   ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GTK2_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(GTK2_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GTK2_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GTK2_PKG_DESCRIPTION_FILE): $(GTK2_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GTK2_PKG_DESCRIPTION_FILE) $(GTK2_PKG_INSTALL_SCRIPT)
+	@cp $(GTK2_PKG_DESCRIPTION_FILE) $(GTK2_PKG)/.DESCRIPTION
+	@cp $(GTK2_PKG_INSTALL_SCRIPT) $(GTK2_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GTK2_PKG)/.REQUIRES
+	@echo "pkgname=$(GTK2_PKG_NAME)"                            >  $(GTK2_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GTK2_PKG_VERSION)"                          >> $(GTK2_PKG)/.PKGINFO ; \
+	 echo "arch=$(GTK2_PKG_ARCH)"                               >> $(GTK2_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GTK2_PKG_DISTRO_NAME)"                  >> $(GTK2_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GTK2_PKG_DISTRO_VERSION)"                >> $(GTK2_PKG)/.PKGINFO ; \
+	 echo "group=$(GTK2_PKG_GROUP)"                             >> $(GTK2_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GTK2_PKG_SHORT_DESCRIPTION)\"" >> $(GTK2_PKG)/.PKGINFO ; \
+	 echo "url=$(GTK2_PKG_URL)"                                 >> $(GTK2_PKG)/.PKGINFO ; \
+	 echo "license=$(GTK2_PKG_LICENSE)"                         >> $(GTK2_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(GTK2_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/gtk+2/2.24.25/gtk2-pkg-install.sh
===================================================================
--- X11/libs/gtk+2/2.24.25/gtk2-pkg-install.sh	(nonexistent)
+++ X11/libs/gtk+2/2.24.25/gtk2-pkg-install.sh	(revision 563)
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  install_file etc/gtk-2.0/gtkrc.new
+  install_file etc/gtk-2.0/im-multipress.conf.new
+  rm -f etc/gtk-2.0/gtkrc.new
+
+  # Notice we use an absolute path below, rather than usr/bin/update-gdk-pixbuf-loaders
+  # or usr/bin/update-gtk-immodules .
+  # Also we have to check that we are not in the installer mode on the target system
+  # ("/etc/system-installer"), and we have to be sure that we are on the working system
+  # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+
+  if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer ]; then
+    rm -f /usr/share/icons/*/icon-theme.cache 1> /dev/null 2> /dev/null
+  fi
+
+  # Run this if we are on an installed system. Otherwise it will be handled on first boot.
+  if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a -x /usr/bin/update-gtk-immodules-2.0 ]; then
+    /usr/bin/update-gtk-immodules
+  fi
+
+  # Run this if we are on an installed system. Otherwise it will be handled on first boot.
+  if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a -x /usr/bin/update-gdk-pixbuf-loaders ]; then
+    /usr/bin/update-gdk-pixbuf-loaders 1> /dev/null 2> /dev/null
+  fi
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/gtk+2/2.24.25/gtk2-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/gtk+2/2.24.25/PATCHES
===================================================================
--- X11/libs/gtk+2/2.24.25/PATCHES	(nonexistent)
+++ X11/libs/gtk+2/2.24.25/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/GNOME/core/gtk+2/patches/gtk+-2.24.25.patch -p0
Index: X11/libs/gtk+2/2.24.25/gtk2-pkg-description.in
===================================================================
--- X11/libs/gtk+2/2.24.25/gtk2-pkg-description.in	(nonexistent)
+++ X11/libs/gtk+2/2.24.25/gtk2-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+    |-----handy-ruler------------------------------------------------------|
+gtk2: GTK+ @VERSION@ (multi-platform GUI toolkit)
+gtk2:
+gtk2: This is GTK+, a multi-platform toolkit for creating graphical user
+gtk2: interfaces. Offering a complete set of widgets, GTK+ is suitable for
+gtk2: projects ranging from small one-off projects to complete application
+gtk2: suites.
+gtk2:
+gtk2:
+gtk2:
+gtk2:
+gtk2:
Index: X11/libs/gtk+2/2.24.25/profile.d/gtk+.csh
===================================================================
--- X11/libs/gtk+2/2.24.25/profile.d/gtk+.csh	(nonexistent)
+++ X11/libs/gtk+2/2.24.25/profile.d/gtk+.csh	(revision 563)
@@ -0,0 +1,3 @@
+#!/bin/csh
+
+setenv GDK_USE_XFT 1
Index: X11/libs/gtk+2/2.24.25/profile.d/gtk+.sh
===================================================================
--- X11/libs/gtk+2/2.24.25/profile.d/gtk+.sh	(nonexistent)
+++ X11/libs/gtk+2/2.24.25/profile.d/gtk+.sh	(revision 563)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+GDK_USE_XFT=1
+export GDK_USE_XFT
Index: X11/libs/gtk+2/2.24.25/update-immodules/update-gtk-immodules
===================================================================
--- X11/libs/gtk+2/2.24.25/update-immodules/update-gtk-immodules	(nonexistent)
+++ X11/libs/gtk+2/2.24.25/update-immodules/update-gtk-immodules	(revision 563)
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# This is a wrapper script that calls update-gtk-immodules-2.0 (GTK+2)
+# and/or update-gtk-immodules-3.0 (GTK+3) to do the actual updating.
+
+if [ -x /usr/bin/update-gtk-immodules-2.0 ]; then
+  /usr/bin/update-gtk-immodules-2.0 $*
+fi
+if [ -x /usr/bin/update-gtk-immodules-3.0 ]; then
+  /usr/bin/update-gtk-immodules-3.0 $*
+fi
Index: X11/libs/gtk+2/2.24.25/update-immodules/update-gtk-immodules-2.0.in
===================================================================
--- X11/libs/gtk+2/2.24.25/update-immodules/update-gtk-immodules-2.0.in	(nonexistent)
+++ X11/libs/gtk+2/2.24.25/update-immodules/update-gtk-immodules-2.0.in	(revision 563)
@@ -0,0 +1,41 @@
+#! /bin/sh
+# Updates the immodules cache at /usr/lib(64)/gtk-2.0/2.10.0/immodules.cache
+
+umask 022
+
+host=@HOST_TRIPLET@
+
+case "$host" in
+  s390x*|x86_64*)
+   if [ -x /usr/bin/gtk-query-immodules-2.0-64 ]; then
+     if [ "$1" = "--verbose" ]; then
+       echo "Updating gtk.immodules for ${host}:"
+       echo "  /usr/bin/gtk-query-immodules-2.0-64 --update-cache"
+     fi
+     /usr/bin/gtk-query-immodules-2.0-64 --update-cache 2>/dev/null
+     # Check for multilib
+     if [ -x /usr/bin/gtk-query-immodules-2.0-32 ]; then
+       if [ "$1" = "--verbose" ]; then
+         echo "Updating 32bit gtk.immodules: "
+         echo "  /usr/bin/gtk-query-immodules-2.0-32 --update-cache"
+       fi
+       /usr/bin/gtk-query-immodules-2.0-32 --update-cache 2>/dev/null
+     fi
+   fi
+   ;;
+  *)
+   if [ -x /usr/bin/gtk-query-immodules-2.0-32 ]; then
+     if [ "$1" = "--verbose" ]; then
+       echo "Updating gtk.immodules for ${host}:"
+       echo "  /usr/bin/gtk-query-immodules-2.0-32 --update-cache"
+     fi
+     /usr/bin/gtk-query-immodules-2.0-32 --update-cache 2>/dev/null
+   else
+     if [ "$1" = "--verbose" ]; then
+       echo "Updating gtk.immodules for ${host}:"
+       echo "  /usr/bin/gtk-query-immodules-2.0 --update-cache"
+     fi
+     /usr/bin/gtk-query-immodules-2.0 --update-cache 2>/dev/null
+   fi
+   ;;
+esac
Index: X11/libs/gtk+2/2.24.25-x86_32/Makefile
===================================================================
--- X11/libs/gtk+2/2.24.25-x86_32/Makefile	(nonexistent)
+++ X11/libs/gtk+2/2.24.25-x86_32/Makefile	(revision 563)
@@ -0,0 +1,240 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/GNOME/core/gtk+2
+
+REQUIRES           = X11/libs/gtk+2/2.24.25
+REQUIRES          += libs/atk/2.15.1-x86_32
+REQUIRES          += libs/poppler/0.29.0-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.24.25
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNOME/core/gtk+2/gtk+-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/gtk+-$(version)
+src_dir_name       = gtk+-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GTK2_32_PKG_NAME                = gtk2-x32
+GTK2_32_PKG_VERSION             = 2.24.25
+GTK2_32_PKG_ARCH                = $(TOOLCHAIN)
+GTK2_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GTK2_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GTK2_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+GTK2_32_PKG_SHORT_DESCRIPTION   = multi-platform GUI toolkit
+GTK2_32_PKG_URL                 = $(BUG_URL)
+GTK2_32_PKG_LICENSE             = LGPLv2
+GTK2_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GTK2_32_PKG_NAME)-pkg-description
+GTK2_32_PKG_DESCRIPTION_FILE_IN = $(GTK2_32_PKG_NAME)-pkg-description.in
+GTK2_32_PKG_INSTALL_SCRIPT      = $(GTK2_32_PKG_NAME)-pkg-install.sh
+
+GTK2_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GTK2_32_PKG_NAME)-package
+
+pkg_basename     = $(GTK2_32_PKG_NAME)-$(GTK2_32_PKG_VERSION)-$(GTK2_32_PKG_ARCH)-$(GTK2_32_PKG_DISTRO_NAME)-$(GTK2_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(GTK2_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+
+extra_configure_switches += --with-x
+extra_configure_switches += --with-gdktarget=x11
+extra_configure_switches += --with-xinput=yes
+extra_configure_switches += --enable-xkb
+
+extra_configure_switches += --enable-introspection=no
+extra_configure_switches += --enable-gtk-doc=no
+extra_configure_switches += --enable-gtk-doc-html=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+environment  = CUPS_CONFIG=$(TARGET_DEST_DIR)/usr/bin/32/cups-config
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) $(environment) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GTK2_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(GTK2_32_PKG)/etc
+	@rm -rf $(GTK2_32_PKG)/usr/include
+	@rm -rf $(GTK2_32_PKG)/usr/share
+	@mkdir -p $(GTK2_32_PKG)/usr/bin/32
+	@( cd $(GTK2_32_PKG)/usr/bin ; \
+	   mv gtk-query-immodules-2.0{,-32} ; \
+	   mv gtk-builder-convert gtk-demo gtk-update-icon-cache 32 ; \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GTK2_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libgailutil.la libgdk-x11-2.0.la libgtk-x11-2.0.la ; \
+	 )
+	@( cd $(GTK2_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gtk-?.?/?.??.?/engines ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libpixmap.la ; \
+	 )
+	@( cd $(GTK2_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gtk-?.?/?.??.?/immodules ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" im-am-et.la im-cedilla.la im-cyrillic-translit.la      \
+	                                    im-inuktitut.la im-ipa.la im-multipress.la im-thai.la  \
+	                                    im-ti-er.la im-ti-et.la im-viqr.la im-xim.la         ; \
+	 )
+	@( cd $(GTK2_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gtk-?.?/?.??.?/printbackends ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libprintbackend-cups.la  \
+	                                    libprintbackend-file.la  \
+	                                    libprintbackend-lpr.la ; \
+	 )
+	@( cd $(GTK2_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gtk-?.?/modules ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libferret.la libgail.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GTK2_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libgailutil.la libgdk-x11-2.0.la libgtk-x11-2.0.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libgailutil.la libgdk-x11-2.0.la libgtk-x11-2.0.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gtk-?.?/?.??.?/engines ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libpixmap.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libpixmap.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gtk-?.?/?.??.?/immodules ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" im-am-et.la im-cedilla.la im-cyrillic-translit.la      \
+	                                            im-inuktitut.la im-ipa.la im-multipress.la im-thai.la  \
+	                                            im-ti-er.la im-ti-et.la im-viqr.la im-xim.la         ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" im-am-et.la im-cedilla.la im-cyrillic-translit.la      \
+	                                              im-inuktitut.la im-ipa.la im-multipress.la im-thai.la  \
+	                                              im-ti-er.la im-ti-et.la im-viqr.la im-xim.la         ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gtk-?.?/?.??.?/printbackends ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libprintbackend-cups.la  \
+	                                            libprintbackend-file.la  \
+	                                            libprintbackend-lpr.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libprintbackend-cups.la  \
+	                                              libprintbackend-file.la  \
+	                                              libprintbackend-lpr.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gtk-?.?/modules ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libferret.la libgail.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libferret.la libgail.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" gail.pc gdk-2.0.pc gdk-x11-2.0.pc   \
+	                                            gtk+-2.0.pc gtk+-unix-print-2.0.pc  \
+	                                            gtk+-x11-2.0.pc                   ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GTK2_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(GTK2_32_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GTK2_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GTK2_32_PKG_DESCRIPTION_FILE): $(GTK2_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GTK2_32_PKG_DESCRIPTION_FILE) $(GTK2_32_PKG_INSTALL_SCRIPT)
+	@cp $(GTK2_32_PKG_DESCRIPTION_FILE) $(GTK2_32_PKG)/.DESCRIPTION
+	@cp $(GTK2_32_PKG_INSTALL_SCRIPT) $(GTK2_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GTK2_32_PKG)/.REQUIRES
+	@echo "pkgname=$(GTK2_32_PKG_NAME)"                            >  $(GTK2_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GTK2_32_PKG_VERSION)"                          >> $(GTK2_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(GTK2_32_PKG_ARCH)"                               >> $(GTK2_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GTK2_32_PKG_DISTRO_NAME)"                  >> $(GTK2_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GTK2_32_PKG_DISTRO_VERSION)"                >> $(GTK2_32_PKG)/.PKGINFO ; \
+	 echo "group=$(GTK2_32_PKG_GROUP)"                             >> $(GTK2_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GTK2_32_PKG_SHORT_DESCRIPTION)\"" >> $(GTK2_32_PKG)/.PKGINFO ; \
+	 echo "url=$(GTK2_32_PKG_URL)"                                 >> $(GTK2_32_PKG)/.PKGINFO ; \
+	 echo "license=$(GTK2_32_PKG_LICENSE)"                         >> $(GTK2_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(GTK2_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/gtk+2/2.24.25-x86_32/gtk2-x32-pkg-install.sh
===================================================================
--- X11/libs/gtk+2/2.24.25-x86_32/gtk2-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/gtk+2/2.24.25-x86_32/gtk2-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/gtk+2/2.24.25-x86_32/gtk2-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/gtk+2/2.24.25-x86_32/PATCHES
===================================================================
--- X11/libs/gtk+2/2.24.25-x86_32/PATCHES	(nonexistent)
+++ X11/libs/gtk+2/2.24.25-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/GNOME/core/gtk+2/patches/gtk+-2.24.25.patch -p0
Index: X11/libs/gtk+2/2.24.25-x86_32/gtk2-x32-pkg-description.in
===================================================================
--- X11/libs/gtk+2/2.24.25-x86_32/gtk2-x32-pkg-description.in	(nonexistent)
+++ X11/libs/gtk+2/2.24.25-x86_32/gtk2-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+gtk2-x32: GTK+-x32 @VERSION@ (x86_32 multi-platform GUI toolkit)
+gtk2-x32:
+gtk2-x32: This is GTK+, a multi-platform toolkit for creating graphical user
+gtk2-x32: interfaces. Offering a complete set of widgets, GTK+ is suitable for
+gtk2-x32: projects ranging from small one-off projects to complete application
+gtk2-x32: suites.
+gtk2-x32:
+gtk2-x32:
+gtk2-x32:
+gtk2-x32:
+gtk2-x32:
Index: X11/libs/gtk-engines/2.20.2/Makefile
===================================================================
--- X11/libs/gtk-engines/2.20.2/Makefile	(nonexistent)
+++ X11/libs/gtk-engines/2.20.2/Makefile	(revision 563)
@@ -0,0 +1,218 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/GNOME/core/gtk-engines
+
+REQUIRES           = X11/libs/gtk+2/2.24.25
+REQUIRES          += dev/lua/5.2.3
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.20.2
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/GNOME/core/gtk-engines/gtk-engines-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/gtk-engines-$(version)
+src_dir_name       = gtk-engines-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GTKENGINES_PKG_NAME                = gtk-engines
+GTKENGINES_PKG_VERSION             = 2.20.2
+GTKENGINES_PKG_ARCH                = $(TOOLCHAIN)
+GTKENGINES_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GTKENGINES_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GTKENGINES_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+GTKENGINES_PKG_SHORT_DESCRIPTION   = commonly used GTK+ engines
+GTKENGINES_PKG_URL                 = $(BUG_URL)
+GTKENGINES_PKG_LICENSE             = LGPLv2.1
+GTKENGINES_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GTKENGINES_PKG_NAME)-pkg-description
+GTKENGINES_PKG_DESCRIPTION_FILE_IN = $(GTKENGINES_PKG_NAME)-pkg-description.in
+GTKENGINES_PKG_INSTALL_SCRIPT      = $(GTKENGINES_PKG_NAME)-pkg-install.sh
+
+GTKENGINES_PKG   = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GTKENGINES_PKG_NAME)-package
+
+pkg_basename     = $(GTKENGINES_PKG_NAME)-$(GTKENGINES_PKG_VERSION)-$(GTKENGINES_PKG_ARCH)-$(GTKENGINES_PKG_DISTRO_NAME)-$(GTKENGINES_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(GTKENGINES_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+
+extra_configure_switches += --enable-lua
+extra_configure_switches += --with-system-lua
+extra_configure_switches += --enable-animation
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GTKENGINES_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(GTKENGINES_PKG)/usr/share/man ]; then \
+	  ( cd $(GTKENGINES_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(GTKENGINES_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(GTKENGINES_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(GTKENGINES_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL NEWS README \
+	         $(GTKENGINES_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GTKENGINES_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GTKENGINES_PKG)/usr/lib$(LIBSUFFIX)/gtk-?.?/?.??.?/engines ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libclearlooks.la libcrux-engine.la           \
+	                                    libglide.la libhcengine.la libindustrial.la  \
+	                                    libluaengine.la libmist.la libredmond95.la   \
+	                                    libthinice.la                              ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GTKENGINES_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gtk-?.?/?.??.?/engines ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libclearlooks.la libcrux-engine.la           \
+	                                            libglide.la libhcengine.la libindustrial.la  \
+	                                            libluaengine.la libmist.la libredmond95.la   \
+	                                            libthinice.la                              ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libclearlooks.la libcrux-engine.la           \
+	                                              libglide.la libhcengine.la libindustrial.la  \
+	                                              libluaengine.la libmist.la libredmond95.la   \
+	                                              libthinice.la                              ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" gtk-engines-2.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GTKENGINES_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GTKENGINES_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GTKENGINES_PKG_DESCRIPTION_FILE): $(GTKENGINES_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GTKENGINES_PKG_DESCRIPTION_FILE) $(GTKENGINES_PKG_INSTALL_SCRIPT)
+	@cp $(GTKENGINES_PKG_DESCRIPTION_FILE) $(GTKENGINES_PKG)/.DESCRIPTION
+	@cp $(GTKENGINES_PKG_INSTALL_SCRIPT) $(GTKENGINES_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GTKENGINES_PKG)/.REQUIRES
+	@echo "pkgname=$(GTKENGINES_PKG_NAME)"                            >  $(GTKENGINES_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GTKENGINES_PKG_VERSION)"                          >> $(GTKENGINES_PKG)/.PKGINFO ; \
+	 echo "arch=$(GTKENGINES_PKG_ARCH)"                               >> $(GTKENGINES_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GTKENGINES_PKG_DISTRO_NAME)"                  >> $(GTKENGINES_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GTKENGINES_PKG_DISTRO_VERSION)"                >> $(GTKENGINES_PKG)/.PKGINFO ; \
+	 echo "group=$(GTKENGINES_PKG_GROUP)"                             >> $(GTKENGINES_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GTKENGINES_PKG_SHORT_DESCRIPTION)\"" >> $(GTKENGINES_PKG)/.PKGINFO ; \
+	 echo "url=$(GTKENGINES_PKG_URL)"                                 >> $(GTKENGINES_PKG)/.PKGINFO ; \
+	 echo "license=$(GTKENGINES_PKG_LICENSE)"                         >> $(GTKENGINES_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(GTKENGINES_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/gtk-engines/2.20.2/PATCHES
===================================================================
Index: X11/libs/gtk-engines/2.20.2/gtk-engines-pkg-description.in
===================================================================
--- X11/libs/gtk-engines/2.20.2/gtk-engines-pkg-description.in	(nonexistent)
+++ X11/libs/gtk-engines/2.20.2/gtk-engines-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+           |-----handy-ruler------------------------------------------------------|
+gtk-engines: gtk-engines @VERSION@ (commonly used GTK+ engines)
+gtk-engines:
+gtk-engines: gtk-engines provides a central location for commonly used GTK+
+gtk-engines: engines. It currently supplies several engines and default themes
+gtk-engines: for those which have one: Clearlooks, Crux, Glide, HC, Industrial,
+gtk-engines: LUA, Mist, Redmond, Thinice.
+gtk-engines:
+gtk-engines:
+gtk-engines:
+gtk-engines:
+gtk-engines:
Index: X11/libs/gtk-engines/2.20.2/gtk-engines-pkg-install.sh
===================================================================
--- X11/libs/gtk-engines/2.20.2/gtk-engines-pkg-install.sh	(nonexistent)
+++ X11/libs/gtk-engines/2.20.2/gtk-engines-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/gtk-engines/2.20.2/gtk-engines-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/harfbuzz/0.9.36/Makefile
===================================================================
--- X11/libs/harfbuzz/0.9.36/Makefile	(nonexistent)
+++ X11/libs/harfbuzz/0.9.36/Makefile	(revision 563)
@@ -0,0 +1,253 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/l/harfbuzz
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/4.9.2
+endif
+REQUIRES          += libs/glib2/2.40.0
+REQUIRES          += libs/libpng/libpng14/1.4.13
+REQUIRES          += libs/icu4c/54.1
+REQUIRES          += X11/libs/cairo/1.14.0
+REQUIRES          += libs/libffi/3.0.13
+REQUIRES          += libs/zlib/1.2.8
+REQUIRES          += app/bzip2/1.0.6
+# NOTE (about 'env/freetype/2.5.3'):
+#       We should not require final freetipe to avoid a cycle
+#       in the dependency tree desctibed in package requires,
+#       also we can skip 'env/freetype' dependency because
+#       'freetype' will be installed by 'cairo' request:
+#
+#       REQUIRES          += env/freetype/2.5.3
+#
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.9.36
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/l/harfbuzz/harfbuzz-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/harfbuzz-$(version)
+src_dir_name       = harfbuzz-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+HARFBUZZ_PKG_NAME                = harfbuzz
+HARFBUZZ_PKG_VERSION             = 0.9.36
+HARFBUZZ_PKG_ARCH                = $(TOOLCHAIN)
+HARFBUZZ_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+HARFBUZZ_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+HARFBUZZ_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+HARFBUZZ_PKG_SHORT_DESCRIPTION   = OpenType text shaping engine
+HARFBUZZ_PKG_URL                 = $(BUG_URL)
+HARFBUZZ_PKG_LICENSE             = MIT
+HARFBUZZ_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(HARFBUZZ_PKG_NAME)-pkg-description
+HARFBUZZ_PKG_DESCRIPTION_FILE_IN = $(HARFBUZZ_PKG_NAME)-pkg-description.in
+HARFBUZZ_PKG_INSTALL_SCRIPT      = $(HARFBUZZ_PKG_NAME)-pkg-install.sh
+
+HARFBUZZ_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(HARFBUZZ_PKG_NAME)-package
+
+pkg_basename     = $(HARFBUZZ_PKG_NAME)-$(HARFBUZZ_PKG_VERSION)-$(HARFBUZZ_PKG_ARCH)-$(HARFBUZZ_PKG_DISTRO_NAME)-$(HARFBUZZ_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_UPDATE_TARGETS = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(HARFBUZZ_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+extra_configure_switches += --with-glib=yes
+extra_configure_switches += --with-gobject=yes
+extra_configure_switches += --enable-introspection=no
+extra_configure_switches += --with-freetype=yes
+extra_configure_switches += --with-icu=yes
+extra_configure_switches += --with-cairo=yes
+extra_configure_switches += --with-graphite2=no
+extra_configure_switches += --with-uniscribe=no
+extra_configure_switches += --with-coretext=no
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(HARFBUZZ_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(HARFBUZZ_PKG)/usr/share/man ]; then \
+	  ( cd $(HARFBUZZ_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(HARFBUZZ_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING* \
+	       $(HARFBUZZ_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(HARFBUZZ_PKG)/usr/share/gtk-doc/html/$(src_dir_name)
+	@( cd $(SRC_DIR)/docs/reference/html ; \
+	   cp -a *.html *.css *.png \
+	         $(HARFBUZZ_PKG)/usr/share/gtk-doc/html/$(src_dir_name) ; \
+	 )
+	@mkdir -p $(HARFBUZZ_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL NEWS README THANKS TODO \
+	         $(HARFBUZZ_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   ln -sf ../../gtk-doc/html/$(src_dir_name) $(HARFBUZZ_PKG)/usr/share/doc/$(src_dir_name)/html ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(HARFBUZZ_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(HARFBUZZ_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libharfbuzz.la          \
+	                                    libharfbuzz-gobject.la  \
+	                                    libharfbuzz-icu.la    ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(HARFBUZZ_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libharfbuzz.la          \
+	                                            libharfbuzz-gobject.la  \
+	                                            libharfbuzz-icu.la    ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libharfbuzz.la          \
+	                                              libharfbuzz-gobject.la  \
+	                                              libharfbuzz-icu.la    ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" harfbuzz.pc          \
+	                                            harfbuzz-gobject.pc  \
+	                                            harfbuzz-icu.pc    ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(HARFBUZZ_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(HARFBUZZ_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(HARFBUZZ_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(HARFBUZZ_PKG_DESCRIPTION_FILE): $(HARFBUZZ_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(HARFBUZZ_PKG_DESCRIPTION_FILE) $(HARFBUZZ_PKG_INSTALL_SCRIPT)
+	@cp $(HARFBUZZ_PKG_DESCRIPTION_FILE) $(HARFBUZZ_PKG)/.DESCRIPTION
+	@cp $(HARFBUZZ_PKG_INSTALL_SCRIPT) $(HARFBUZZ_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(HARFBUZZ_PKG)/.REQUIRES
+	@echo "pkgname=$(HARFBUZZ_PKG_NAME)"                            >  $(HARFBUZZ_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(HARFBUZZ_PKG_VERSION)"                          >> $(HARFBUZZ_PKG)/.PKGINFO ; \
+	 echo "arch=$(HARFBUZZ_PKG_ARCH)"                               >> $(HARFBUZZ_PKG)/.PKGINFO ; \
+	 echo "distroname=$(HARFBUZZ_PKG_DISTRO_NAME)"                  >> $(HARFBUZZ_PKG)/.PKGINFO ; \
+	 echo "distrover=$(HARFBUZZ_PKG_DISTRO_VERSION)"                >> $(HARFBUZZ_PKG)/.PKGINFO ; \
+	 echo "group=$(HARFBUZZ_PKG_GROUP)"                             >> $(HARFBUZZ_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(HARFBUZZ_PKG_SHORT_DESCRIPTION)\"" >> $(HARFBUZZ_PKG)/.PKGINFO ; \
+	 echo "url=$(HARFBUZZ_PKG_URL)"                                 >> $(HARFBUZZ_PKG)/.PKGINFO ; \
+	 echo "license=$(HARFBUZZ_PKG_LICENSE)"                         >> $(HARFBUZZ_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(HARFBUZZ_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/harfbuzz/0.9.36/harfbuzz-pkg-install.sh
===================================================================
--- X11/libs/harfbuzz/0.9.36/harfbuzz-pkg-install.sh	(nonexistent)
+++ X11/libs/harfbuzz/0.9.36/harfbuzz-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/harfbuzz/0.9.36/harfbuzz-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/harfbuzz/0.9.36/PATCHES
===================================================================
Index: X11/libs/harfbuzz/0.9.36/harfbuzz-pkg-description.in
===================================================================
--- X11/libs/harfbuzz/0.9.36/harfbuzz-pkg-description.in	(nonexistent)
+++ X11/libs/harfbuzz/0.9.36/harfbuzz-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+harfbuzz: harfbuzz @VERSION@ (OpenType text shaping engine)
+harfbuzz:
+harfbuzz: HarfBuzz is an OpenType text shaping engine.
+harfbuzz:
+harfbuzz: http://www.freedesktop.org/wiki/Software/HarfBuzz
+harfbuzz:
+harfbuzz:
+harfbuzz:
+harfbuzz:
+harfbuzz:
+harfbuzz:
Index: X11/libs/harfbuzz/0.9.36-x86_32/Makefile
===================================================================
--- X11/libs/harfbuzz/0.9.36-x86_32/Makefile	(nonexistent)
+++ X11/libs/harfbuzz/0.9.36-x86_32/Makefile	(revision 563)
@@ -0,0 +1,211 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/l/harfbuzz
+
+REQUIRES           = libs/harfbuzz/0.9.36
+REQUIRES          += libs/glib2/2.40.0-x86_32
+REQUIRES          += libs/libpng/libpng14/1.4.13-x86_32
+REQUIRES          += libs/icu4c/54.1-x86_32
+REQUIRES          += X11/libs/cairo/1.14.0-x86_32
+REQUIRES          += libs/libffi/3.0.13-x86_32
+REQUIRES          += libs/zlib/1.2.8-x86_32
+REQUIRES          += app/bzip2/1.0.6-x86_32
+# NOTE (about 'env/freetype/2.5.3-x86_32'):
+#       We should not require final freetipe to avoid a cycle
+#       in the dependency tree desctibed in package requires,
+#       also we can skip 'env/freetype' dependency because
+#       'freetype' will be installed by 'cairo' request:
+#
+#       REQUIRES          += env/freetype/2.5.3-x86_32
+#
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.9.36
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/l/harfbuzz/harfbuzz-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/harfbuzz-$(version)
+src_dir_name       = harfbuzz-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+HARFBUZZ_32_PKG_NAME                = harfbuzz-x32
+HARFBUZZ_32_PKG_VERSION             = 0.9.36
+HARFBUZZ_32_PKG_ARCH                = $(TOOLCHAIN)
+HARFBUZZ_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+HARFBUZZ_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+HARFBUZZ_32_PKG_GROUP               = $(PKG_GROUP)
+###                                  |---handy-ruler-------------------------------|
+HARFBUZZ_32_PKG_SHORT_DESCRIPTION   = OpenType text shaping engine
+HARFBUZZ_32_PKG_URL                 = $(BUG_URL)
+HARFBUZZ_32_PKG_LICENSE             = MIT
+HARFBUZZ_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(HARFBUZZ_32_PKG_NAME)-pkg-description
+HARFBUZZ_32_PKG_DESCRIPTION_FILE_IN = $(HARFBUZZ_32_PKG_NAME)-pkg-description.in
+HARFBUZZ_32_PKG_INSTALL_SCRIPT      = $(HARFBUZZ_32_PKG_NAME)-pkg-install.sh
+
+HARFBUZZ_32_PKG  = $(CURDIR)/$(TARGET_BUILD_DIR)/$(HARFBUZZ_32_PKG_NAME)-package
+
+pkg_basename     = $(HARFBUZZ_32_PKG_NAME)-$(HARFBUZZ_32_PKG_VERSION)-$(HARFBUZZ_32_PKG_ARCH)-$(HARFBUZZ_32_PKG_DISTRO_NAME)-$(HARFBUZZ_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_UPDATE_TARGETS = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(HARFBUZZ_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+extra_configure_switches += --with-glib=yes
+extra_configure_switches += --with-gobject=yes
+extra_configure_switches += --enable-introspection=no
+extra_configure_switches += --with-freetype=yes
+extra_configure_switches += --with-icu=yes
+extra_configure_switches += --with-cairo=yes
+extra_configure_switches += --with-graphite2=no
+extra_configure_switches += --with-uniscribe=no
+extra_configure_switches += --with-coretext=no
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(HARFBUZZ_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(HARFBUZZ_32_PKG)/usr/include
+	@rm -rf $(HARFBUZZ_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(HARFBUZZ_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libharfbuzz.la          \
+	                                    libharfbuzz-gobject.la  \
+	                                    libharfbuzz-icu.la    ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(HARFBUZZ_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libharfbuzz.la          \
+	                                            libharfbuzz-gobject.la  \
+	                                            libharfbuzz-icu.la    ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libharfbuzz.la          \
+	                                              libharfbuzz-gobject.la  \
+	                                              libharfbuzz-icu.la    ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" harfbuzz.pc          \
+	                                            harfbuzz-gobject.pc  \
+	                                            harfbuzz-icu.pc    ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(HARFBUZZ_32_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(HARFBUZZ_32_PKG)/usr/bin/32 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(HARFBUZZ_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(HARFBUZZ_32_PKG_DESCRIPTION_FILE): $(HARFBUZZ_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(HARFBUZZ_32_PKG_DESCRIPTION_FILE) $(HARFBUZZ_32_PKG_INSTALL_SCRIPT)
+	@cp $(HARFBUZZ_32_PKG_DESCRIPTION_FILE) $(HARFBUZZ_32_PKG)/.DESCRIPTION
+	@cp $(HARFBUZZ_32_PKG_INSTALL_SCRIPT) $(HARFBUZZ_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(HARFBUZZ_32_PKG)/.REQUIRES
+	@echo "pkgname=$(HARFBUZZ_32_PKG_NAME)"                            >  $(HARFBUZZ_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(HARFBUZZ_32_PKG_VERSION)"                          >> $(HARFBUZZ_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(HARFBUZZ_32_PKG_ARCH)"                               >> $(HARFBUZZ_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(HARFBUZZ_32_PKG_DISTRO_NAME)"                  >> $(HARFBUZZ_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(HARFBUZZ_32_PKG_DISTRO_VERSION)"                >> $(HARFBUZZ_32_PKG)/.PKGINFO ; \
+	 echo "group=$(HARFBUZZ_32_PKG_GROUP)"                             >> $(HARFBUZZ_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(HARFBUZZ_32_PKG_SHORT_DESCRIPTION)\"" >> $(HARFBUZZ_32_PKG)/.PKGINFO ; \
+	 echo "url=$(HARFBUZZ_32_PKG_URL)"                                 >> $(HARFBUZZ_32_PKG)/.PKGINFO ; \
+	 echo "license=$(HARFBUZZ_32_PKG_LICENSE)"                         >> $(HARFBUZZ_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(HARFBUZZ_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/harfbuzz/0.9.36-x86_32/harfbuzz-x32-pkg-install.sh
===================================================================
--- X11/libs/harfbuzz/0.9.36-x86_32/harfbuzz-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/harfbuzz/0.9.36-x86_32/harfbuzz-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/harfbuzz/0.9.36-x86_32/harfbuzz-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/harfbuzz/0.9.36-x86_32/PATCHES
===================================================================
Index: X11/libs/harfbuzz/0.9.36-x86_32/harfbuzz-x32-pkg-description.in
===================================================================
--- X11/libs/harfbuzz/0.9.36-x86_32/harfbuzz-x32-pkg-description.in	(nonexistent)
+++ X11/libs/harfbuzz/0.9.36-x86_32/harfbuzz-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+            |-----handy-ruler------------------------------------------------------|
+harfbuzz-x32: harfbuzz-x32 @VERSION@ (x86_32 OpenType text shaping engine)
+harfbuzz-x32:
+harfbuzz-x32: HarfBuzz is an OpenType text shaping engine.
+harfbuzz-x32:
+harfbuzz-x32: http://www.freedesktop.org/wiki/Software/HarfBuzz
+harfbuzz-x32:
+harfbuzz-x32:
+harfbuzz-x32:
+harfbuzz-x32:
+harfbuzz-x32:
+harfbuzz-x32:
Index: X11/libs/hicolor-icon-theme/0.14/Makefile
===================================================================
--- X11/libs/hicolor-icon-theme/0.14/Makefile	(nonexistent)
+++ X11/libs/hicolor-icon-theme/0.14/Makefile	(revision 563)
@@ -0,0 +1,166 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/hicolor-icon-theme
+
+REQUIRES           = base/pkgtool
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.14
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/x/hicolor-icon-theme/hicolor-icon-theme-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/hicolor-icon-theme-$(version)
+src_dir_name       = hicolor-icon-theme-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+DITHEME_PKG_NAME                = hicolor-icon-theme
+DITHEME_PKG_VERSION             = 0.14
+DITHEME_PKG_ARCH                = $(TOOLCHAIN)
+DITHEME_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+DITHEME_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+DITHEME_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+DITHEME_PKG_SHORT_DESCRIPTION   = default icon theme
+DITHEME_PKG_URL                 = $(BUG_URL)
+DITHEME_PKG_LICENSE             = GPLv2
+DITHEME_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(DITHEME_PKG_NAME)-pkg-description
+DITHEME_PKG_DESCRIPTION_FILE_IN = $(DITHEME_PKG_NAME)-pkg-description.in
+DITHEME_PKG_INSTALL_SCRIPT      = $(DITHEME_PKG_NAME)-pkg-install.sh
+
+DITHEME_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(DITHEME_PKG_NAME)-package
+
+pkg_basename     = $(DITHEME_PKG_NAME)-$(DITHEME_PKG_VERSION)-$(DITHEME_PKG_ARCH)-$(DITHEME_PKG_DISTRO_NAME)-$(DITHEME_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(DITHEME_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; ./autogen.sh ; make distclean ; chmod 0644 COPYING )
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) $(environment) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(DITHEME_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(environment) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(DITHEME_PKG)/usr/share/man ]; then \
+	  ( cd $(DITHEME_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(DITHEME_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(DITHEME_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(DITHEME_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING README spec \
+	         $(DITHEME_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(DITHEME_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(DITHEME_PKG))
+	@touch $@
+
+$(DITHEME_PKG_DESCRIPTION_FILE): $(DITHEME_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(DITHEME_PKG_DESCRIPTION_FILE) $(DITHEME_PKG_INSTALL_SCRIPT)
+	@cp $(DITHEME_PKG_DESCRIPTION_FILE) $(DITHEME_PKG)/.DESCRIPTION
+	@cp $(DITHEME_PKG_INSTALL_SCRIPT) $(DITHEME_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(DITHEME_PKG)/.REQUIRES
+	@echo "pkgname=$(DITHEME_PKG_NAME)"                            >  $(DITHEME_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(DITHEME_PKG_VERSION)"                          >> $(DITHEME_PKG)/.PKGINFO ; \
+	 echo "arch=$(DITHEME_PKG_ARCH)"                               >> $(DITHEME_PKG)/.PKGINFO ; \
+	 echo "distroname=$(DITHEME_PKG_DISTRO_NAME)"                  >> $(DITHEME_PKG)/.PKGINFO ; \
+	 echo "distrover=$(DITHEME_PKG_DISTRO_VERSION)"                >> $(DITHEME_PKG)/.PKGINFO ; \
+	 echo "group=$(DITHEME_PKG_GROUP)"                             >> $(DITHEME_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(DITHEME_PKG_SHORT_DESCRIPTION)\"" >> $(DITHEME_PKG)/.PKGINFO ; \
+	 echo "url=$(DITHEME_PKG_URL)"                                 >> $(DITHEME_PKG)/.PKGINFO ; \
+	 echo "license=$(DITHEME_PKG_LICENSE)"                         >> $(DITHEME_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(DITHEME_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/hicolor-icon-theme/0.14/hicolor-icon-theme-pkg-install.sh
===================================================================
--- X11/libs/hicolor-icon-theme/0.14/hicolor-icon-theme-pkg-install.sh	(nonexistent)
+++ X11/libs/hicolor-icon-theme/0.14/hicolor-icon-theme-pkg-install.sh	(revision 563)
@@ -0,0 +1,59 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if [ -d usr/share/icons/hicolor ] ; then
+    if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+      if [ -x /usr/bin/gtk-update-icon-cache ]; then
+        /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor > /dev/null 2>&1
+      fi
+    fi
+  fi
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/hicolor-icon-theme/0.14/hicolor-icon-theme-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/hicolor-icon-theme/0.14/PATCHES
===================================================================
Index: X11/libs/hicolor-icon-theme/0.14/hicolor-icon-theme-pkg-description.in
===================================================================
--- X11/libs/hicolor-icon-theme/0.14/hicolor-icon-theme-pkg-description.in	(nonexistent)
+++ X11/libs/hicolor-icon-theme/0.14/hicolor-icon-theme-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+                  |-----handy-ruler------------------------------------------------------|
+hicolor-icon-theme: hicolor-icon-theme @VERSION@ (default icon theme)
+hicolor-icon-theme:
+hicolor-icon-theme: This is the default fallback theme used by implementations of the
+hicolor-icon-theme: icon theme specification.
+hicolor-icon-theme:
+hicolor-icon-theme: The specification is available at:
+hicolor-icon-theme:   http://www.freedesktop.org/standards/icon-theme-spec
+hicolor-icon-theme:
+hicolor-icon-theme:
+hicolor-icon-theme:
+hicolor-icon-theme:
Index: X11/libs/libdrm/2.4.58/Makefile
===================================================================
--- X11/libs/libdrm/2.4.58/Makefile	(nonexistent)
+++ X11/libs/libdrm/2.4.58/Makefile	(revision 563)
@@ -0,0 +1,253 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libdrm
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/4.9.2
+else
+ifneq ($(HARDWARE),$(HARDWARE_PC64))
+REQUIRES           = libs/glibc/2.21
+else
+REQUIRES           = libs/glibc/2.21-x86_32
+endif
+endif
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+REQUIRES          += X11/X.org/lib/libpciaccess/0.13.2
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.4.58
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/libdrm/libdrm-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libdrm-$(version)
+src_dir_name       = libdrm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+license            = $(CURDIR)/license/COPYING
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBDRM_PKG_NAME                = libdrm
+LIBDRM_PKG_VERSION             = 2.4.58
+LIBDRM_PKG_ARCH                = $(TOOLCHAIN)
+LIBDRM_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBDRM_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBDRM_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+LIBDRM_PKG_SHORT_DESCRIPTION   = Direct Rendering library
+LIBDRM_PKG_URL                 = $(BUG_URL)
+LIBDRM_PKG_LICENSE             = custom
+LIBDRM_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBDRM_PKG_NAME)-pkg-description
+LIBDRM_PKG_DESCRIPTION_FILE_IN = $(LIBDRM_PKG_NAME)-pkg-description.in
+LIBDRM_PKG_INSTALL_SCRIPT      = $(LIBDRM_PKG_NAME)-pkg-install.sh
+
+LIBDRM_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBDRM_PKG_NAME)-package
+
+pkg_basename     = $(LIBDRM_PKG_NAME)-$(LIBDRM_PKG_VERSION)-$(LIBDRM_PKG_ARCH)-$(LIBDRM_PKG_DISTRO_NAME)-$(LIBDRM_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(LIBDRM_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-udev
+extra_configure_switches += --enable-omap-experimental-api
+extra_configure_switches += --enable-exynos-experimental-api
+extra_configure_switches += --enable-cairo-tests=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBDRM_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@( cd $(LIBDRM_PKG)/usr/share/man/man7 ; \
+	   for file in *.7 ; do                                \
+	     ln=`head -n 1 $$file` ;                           \
+	     if [ "`echo $$ln | grep '^\.so '`" != "" ] ; then \
+	       origin=`echo $$ln | cut -f 2 -d ' '` ;          \
+	       origin=`basename $$origin` ;                    \
+	       rm -f $$file ;                                  \
+	       ln -sf $$origin $$file ;                        \
+	     fi ;                                              \
+	   done ;                                              \
+	 )
+	@if [ -d $(LIBDRM_PKG)/usr/share/man ]; then \
+	  ( cd $(LIBDRM_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(LIBDRM_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(license) \
+	       $(LIBDRM_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(LIBDRM_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a $(license) README \
+	         $(LIBDRM_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LIBDRM_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBDRM_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libdrm.la          \
+	                                    libdrm_exynos.la   \
+	                                    libdrm_nouveau.la  \
+	                                    libdrm_omap.la     \
+	                                    libdrm_radeon.la   \
+	                                    libkms.la        ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+	@( cd $(LIBDRM_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libdrm_intel.la ; \
+	 )
+endif
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBDRM_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm.la          \
+	                                            libdrm_exynos.la   \
+	                                            libdrm_nouveau.la  \
+	                                            libdrm_omap.la     \
+	                                            libdrm_radeon.la   \
+	                                            libkms.la        ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libdrm.la          \
+	                                              libdrm_exynos.la   \
+	                                              libdrm_nouveau.la  \
+	                                              libdrm_omap.la     \
+	                                              libdrm_radeon.la   \
+	                                              libkms.la        ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm_intel.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libdrm_intel.la ; \
+	 )
+endif
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm.pc          \
+	                                            libdrm_exynos.pc   \
+	                                            libdrm_nouveau.pc  \
+	                                            libdrm_omap.pc     \
+	                                            libdrm_radeon.pc   \
+	                                            libkms.pc        ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm_intel.pc ; \
+	 )
+endif
+	# ======= Strip binaries =======
+	@( cd $(LIBDRM_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(LIBDRM_PKG_DESCRIPTION_FILE): $(LIBDRM_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBDRM_PKG_DESCRIPTION_FILE) $(LIBDRM_PKG_INSTALL_SCRIPT)
+	@cp $(LIBDRM_PKG_DESCRIPTION_FILE) $(LIBDRM_PKG)/.DESCRIPTION
+	@cp $(LIBDRM_PKG_INSTALL_SCRIPT) $(LIBDRM_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBDRM_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBDRM_PKG_NAME)"                            >  $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBDRM_PKG_VERSION)"                          >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBDRM_PKG_ARCH)"                               >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBDRM_PKG_DISTRO_NAME)"                  >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBDRM_PKG_DISTRO_VERSION)"                >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBDRM_PKG_GROUP)"                             >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBDRM_PKG_SHORT_DESCRIPTION)\"" >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBDRM_PKG_URL)"                                 >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBDRM_PKG_LICENSE)"                         >> $(LIBDRM_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBDRM_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libdrm/2.4.58/libdrm-pkg-install.sh
===================================================================
--- X11/libs/libdrm/2.4.58/libdrm-pkg-install.sh	(nonexistent)
+++ X11/libs/libdrm/2.4.58/libdrm-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libdrm/2.4.58/libdrm-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libdrm/2.4.58/PATCHES
===================================================================
--- X11/libs/libdrm/2.4.58/PATCHES	(nonexistent)
+++ X11/libs/libdrm/2.4.58/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/libdrm/patches/libdrm-2.4.58-ti-glsdk.patch -p0
Index: X11/libs/libdrm/2.4.58/libdrm-pkg-description.in
===================================================================
--- X11/libs/libdrm/2.4.58/libdrm-pkg-description.in	(nonexistent)
+++ X11/libs/libdrm/2.4.58/libdrm-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+      |-----handy-ruler------------------------------------------------------|
+libdrm: libdrm @VERSION@ (Direct Rendering library)
+libdrm:
+libdrm: This library implements an interface to the kernel's DRM services.
+libdrm: It is used to support hardware accelerated 3-D rendering.
+libdrm:
+libdrm:
+libdrm:
+libdrm:
+libdrm:
+libdrm:
+libdrm:
Index: X11/libs/libdrm/2.4.58/license/COPYING
===================================================================
--- X11/libs/libdrm/2.4.58/license/COPYING	(nonexistent)
+++ X11/libs/libdrm/2.4.58/license/COPYING	(revision 563)
@@ -0,0 +1,49 @@
+
+ Copyright 2005 Adam Jackson.
+
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation on the rights to use, copy, modify, merge,
+ publish, distribute, sub license, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+
+ The above copyright notice and this permission notice (including the
+ next paragraph) shall be included in all copies or substantial
+ portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NON-INFRINGEMENT.  IN NO EVENT SHALL ADAM JACKSON BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------
+
+ Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
+ Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
+ All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+
+ The above copyright notice and this permission notice (including the
+ next paragraph) shall be included in all copies or substantial
+ portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT.  IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS
+ SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
Index: X11/libs/libdrm/2.4.64/Makefile
===================================================================
--- X11/libs/libdrm/2.4.64/Makefile	(nonexistent)
+++ X11/libs/libdrm/2.4.64/Makefile	(revision 563)
@@ -0,0 +1,253 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libdrm
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/4.9.2
+else
+ifneq ($(HARDWARE),$(HARDWARE_PC64))
+REQUIRES           = libs/glibc/2.21
+else
+REQUIRES           = libs/glibc/2.21-x86_32
+endif
+endif
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+REQUIRES          += X11/X.org/lib/libpciaccess/0.13.2
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.4.64
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/libdrm/libdrm-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libdrm-$(version)
+src_dir_name       = libdrm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+license            = $(CURDIR)/license/COPYING
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBDRM_PKG_NAME                = libdrm
+LIBDRM_PKG_VERSION             = 2.4.64
+LIBDRM_PKG_ARCH                = $(TOOLCHAIN)
+LIBDRM_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBDRM_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBDRM_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+LIBDRM_PKG_SHORT_DESCRIPTION   = Direct Rendering library
+LIBDRM_PKG_URL                 = $(BUG_URL)
+LIBDRM_PKG_LICENSE             = custom
+LIBDRM_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBDRM_PKG_NAME)-pkg-description
+LIBDRM_PKG_DESCRIPTION_FILE_IN = $(LIBDRM_PKG_NAME)-pkg-description.in
+LIBDRM_PKG_INSTALL_SCRIPT      = $(LIBDRM_PKG_NAME)-pkg-install.sh
+
+LIBDRM_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBDRM_PKG_NAME)-package
+
+pkg_basename     = $(LIBDRM_PKG_NAME)-$(LIBDRM_PKG_VERSION)-$(LIBDRM_PKG_ARCH)-$(LIBDRM_PKG_DISTRO_NAME)-$(LIBDRM_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(LIBDRM_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-udev
+extra_configure_switches += --enable-omap-experimental-api
+extra_configure_switches += --enable-exynos-experimental-api
+extra_configure_switches += --enable-cairo-tests=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBDRM_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@( cd $(LIBDRM_PKG)/usr/share/man/man7 ; \
+	   for file in *.7 ; do                                \
+	     ln=`head -n 1 $$file` ;                           \
+	     if [ "`echo $$ln | grep '^\.so '`" != "" ] ; then \
+	       origin=`echo $$ln | cut -f 2 -d ' '` ;          \
+	       origin=`basename $$origin` ;                    \
+	       rm -f $$file ;                                  \
+	       ln -sf $$origin $$file ;                        \
+	     fi ;                                              \
+	   done ;                                              \
+	 )
+	@if [ -d $(LIBDRM_PKG)/usr/share/man ]; then \
+	  ( cd $(LIBDRM_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(LIBDRM_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(license) \
+	       $(LIBDRM_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(LIBDRM_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a $(license) README \
+	         $(LIBDRM_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LIBDRM_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBDRM_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libdrm.la          \
+	                                    libdrm_exynos.la   \
+	                                    libdrm_nouveau.la  \
+	                                    libdrm_omap.la     \
+	                                    libdrm_radeon.la   \
+	                                    libkms.la        ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+	@( cd $(LIBDRM_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libdrm_intel.la ; \
+	 )
+endif
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBDRM_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm.la          \
+	                                            libdrm_exynos.la   \
+	                                            libdrm_nouveau.la  \
+	                                            libdrm_omap.la     \
+	                                            libdrm_radeon.la   \
+	                                            libkms.la        ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libdrm.la          \
+	                                              libdrm_exynos.la   \
+	                                              libdrm_nouveau.la  \
+	                                              libdrm_omap.la     \
+	                                              libdrm_radeon.la   \
+	                                              libkms.la        ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm_intel.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libdrm_intel.la ; \
+	 )
+endif
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm.pc          \
+	                                            libdrm_exynos.pc   \
+	                                            libdrm_nouveau.pc  \
+	                                            libdrm_omap.pc     \
+	                                            libdrm_radeon.pc   \
+	                                            libkms.pc        ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64) $(HARDWARE_PC32)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm_intel.pc ; \
+	 )
+endif
+	# ======= Strip binaries =======
+	@( cd $(LIBDRM_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(LIBDRM_PKG_DESCRIPTION_FILE): $(LIBDRM_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBDRM_PKG_DESCRIPTION_FILE) $(LIBDRM_PKG_INSTALL_SCRIPT)
+	@cp $(LIBDRM_PKG_DESCRIPTION_FILE) $(LIBDRM_PKG)/.DESCRIPTION
+	@cp $(LIBDRM_PKG_INSTALL_SCRIPT) $(LIBDRM_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBDRM_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBDRM_PKG_NAME)"                            >  $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBDRM_PKG_VERSION)"                          >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBDRM_PKG_ARCH)"                               >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBDRM_PKG_DISTRO_NAME)"                  >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBDRM_PKG_DISTRO_VERSION)"                >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBDRM_PKG_GROUP)"                             >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBDRM_PKG_SHORT_DESCRIPTION)\"" >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBDRM_PKG_URL)"                                 >> $(LIBDRM_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBDRM_PKG_LICENSE)"                         >> $(LIBDRM_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBDRM_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libdrm/2.4.64/PATCHES
===================================================================
--- X11/libs/libdrm/2.4.64/PATCHES	(nonexistent)
+++ X11/libs/libdrm/2.4.64/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/libdrm/patches/libdrm-2.4.64-ti-glsdk.patch -p0
Index: X11/libs/libdrm/2.4.64/libdrm-pkg-description.in
===================================================================
--- X11/libs/libdrm/2.4.64/libdrm-pkg-description.in	(nonexistent)
+++ X11/libs/libdrm/2.4.64/libdrm-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+      |-----handy-ruler------------------------------------------------------|
+libdrm: libdrm @VERSION@ (Direct Rendering library)
+libdrm:
+libdrm: This library implements an interface to the kernel's DRM services.
+libdrm: It is used to support hardware accelerated 3-D rendering.
+libdrm:
+libdrm:
+libdrm:
+libdrm:
+libdrm:
+libdrm:
+libdrm:
Index: X11/libs/libdrm/2.4.64/libdrm-pkg-install.sh
===================================================================
--- X11/libs/libdrm/2.4.64/libdrm-pkg-install.sh	(nonexistent)
+++ X11/libs/libdrm/2.4.64/libdrm-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libdrm/2.4.64/libdrm-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libdrm/2.4.64/license/COPYING
===================================================================
--- X11/libs/libdrm/2.4.64/license/COPYING	(nonexistent)
+++ X11/libs/libdrm/2.4.64/license/COPYING	(revision 563)
@@ -0,0 +1,49 @@
+
+ Copyright 2005 Adam Jackson.
+
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation on the rights to use, copy, modify, merge,
+ publish, distribute, sub license, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+
+ The above copyright notice and this permission notice (including the
+ next paragraph) shall be included in all copies or substantial
+ portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NON-INFRINGEMENT.  IN NO EVENT SHALL ADAM JACKSON BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------
+
+ Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
+ Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
+ All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+
+ The above copyright notice and this permission notice (including the
+ next paragraph) shall be included in all copies or substantial
+ portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT.  IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS
+ SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
Index: X11/libs/libdrm/2.4.58-x86_32/Makefile
===================================================================
--- X11/libs/libdrm/2.4.58-x86_32/Makefile	(nonexistent)
+++ X11/libs/libdrm/2.4.58-x86_32/Makefile	(revision 563)
@@ -0,0 +1,182 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libdrm
+
+REQUIRES           = X11/libs/libdrm/2.4.58
+REQUIRES          += X11/X.org/lib/libpciaccess/0.13.2-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.4.58
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/libdrm/libdrm-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libdrm-$(version)
+src_dir_name       = libdrm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBDRM_32_PKG_NAME                = libdrm-x32
+LIBDRM_32_PKG_VERSION             = 2.4.58
+LIBDRM_32_PKG_ARCH                = $(TOOLCHAIN)
+LIBDRM_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBDRM_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBDRM_32_PKG_GROUP               = $(PKG_GROUP)
+###                                |---handy-ruler-------------------------------|
+LIBDRM_32_PKG_SHORT_DESCRIPTION   = Direct Rendering library
+LIBDRM_32_PKG_URL                 = $(BUG_URL)
+LIBDRM_32_PKG_LICENSE             = custom
+LIBDRM_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBDRM_32_PKG_NAME)-pkg-description
+LIBDRM_32_PKG_DESCRIPTION_FILE_IN = $(LIBDRM_32_PKG_NAME)-pkg-description.in
+LIBDRM_32_PKG_INSTALL_SCRIPT      = $(LIBDRM_32_PKG_NAME)-pkg-install.sh
+
+LIBDRM_32_PKG    = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBDRM_32_PKG_NAME)-package
+
+pkg_basename     = $(LIBDRM_32_PKG_NAME)-$(LIBDRM_32_PKG_VERSION)-$(LIBDRM_32_PKG_ARCH)-$(LIBDRM_32_PKG_DISTRO_NAME)-$(LIBDRM_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(LIBDRM_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-udev
+extra_configure_switches += --enable-omap-experimental-api
+extra_configure_switches += --enable-exynos-experimental-api
+extra_configure_switches += --enable-cairo-tests=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBDRM_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(LIBDRM_32_PKG)/usr/include
+	@rm -rf $(LIBDRM_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBDRM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libdrm.la          \
+	                                    libdrm_exynos.la   \
+	                                    libdrm_intel.la    \
+	                                    libdrm_nouveau.la  \
+	                                    libdrm_omap.la     \
+	                                    libdrm_radeon.la   \
+	                                    libkms.la        ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBDRM_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm.la          \
+	                                            libdrm_exynos.la   \
+	                                            libdrm_intel.la    \
+	                                            libdrm_nouveau.la  \
+	                                            libdrm_omap.la     \
+	                                            libdrm_radeon.la   \
+	                                            libkms.la        ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libdrm.la          \
+	                                              libdrm_exynos.la   \
+	                                              libdrm_intel.la    \
+	                                              libdrm_nouveau.la  \
+	                                              libdrm_omap.la     \
+	                                              libdrm_radeon.la   \
+	                                              libkms.la        ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm.pc          \
+	                                            libdrm_exynos.pc   \
+	                                            libdrm_intel.pc    \
+	                                            libdrm_nouveau.pc  \
+	                                            libdrm_omap.pc     \
+	                                            libdrm_radeon.pc   \
+	                                            libkms.pc        ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBDRM_32_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(LIBDRM_32_PKG_DESCRIPTION_FILE): $(LIBDRM_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBDRM_32_PKG_DESCRIPTION_FILE) $(LIBDRM_32_PKG_INSTALL_SCRIPT)
+	@cp $(LIBDRM_32_PKG_DESCRIPTION_FILE) $(LIBDRM_32_PKG)/.DESCRIPTION
+	@cp $(LIBDRM_32_PKG_INSTALL_SCRIPT) $(LIBDRM_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBDRM_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBDRM_32_PKG_NAME)"                            >  $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBDRM_32_PKG_VERSION)"                          >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBDRM_32_PKG_ARCH)"                               >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBDRM_32_PKG_DISTRO_NAME)"                  >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBDRM_32_PKG_DISTRO_VERSION)"                >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBDRM_32_PKG_GROUP)"                             >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBDRM_32_PKG_SHORT_DESCRIPTION)\"" >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBDRM_32_PKG_URL)"                                 >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBDRM_32_PKG_LICENSE)"                         >> $(LIBDRM_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBDRM_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libdrm/2.4.58-x86_32/libdrm-x32-pkg-install.sh
===================================================================
--- X11/libs/libdrm/2.4.58-x86_32/libdrm-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/libdrm/2.4.58-x86_32/libdrm-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libdrm/2.4.58-x86_32/libdrm-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libdrm/2.4.58-x86_32/PATCHES
===================================================================
--- X11/libs/libdrm/2.4.58-x86_32/PATCHES	(nonexistent)
+++ X11/libs/libdrm/2.4.58-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/libdrm/patches/libdrm-2.4.58-ti-glsdk.patch -p0
Index: X11/libs/libdrm/2.4.58-x86_32/libdrm-x32-pkg-description.in
===================================================================
--- X11/libs/libdrm/2.4.58-x86_32/libdrm-x32-pkg-description.in	(nonexistent)
+++ X11/libs/libdrm/2.4.58-x86_32/libdrm-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+          |-----handy-ruler------------------------------------------------------|
+libdrm-x32: libdrm-x32 @VERSION@ (x86_32 Direct Rendering library)
+libdrm-x32:
+libdrm-x32: This library implements an interface to the kernel's DRM services.
+libdrm-x32: It is used to support hardware accelerated 3-D rendering.
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
Index: X11/libs/libdrm/2.4.64-x86_32/Makefile
===================================================================
--- X11/libs/libdrm/2.4.64-x86_32/Makefile	(nonexistent)
+++ X11/libs/libdrm/2.4.64-x86_32/Makefile	(revision 563)
@@ -0,0 +1,182 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libdrm
+
+REQUIRES           = X11/libs/libdrm/2.4.64
+REQUIRES          += X11/X.org/lib/libpciaccess/0.13.2-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.4.64
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/libdrm/libdrm-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libdrm-$(version)
+src_dir_name       = libdrm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBDRM_32_PKG_NAME                = libdrm-x32
+LIBDRM_32_PKG_VERSION             = 2.4.64
+LIBDRM_32_PKG_ARCH                = $(TOOLCHAIN)
+LIBDRM_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBDRM_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBDRM_32_PKG_GROUP               = $(PKG_GROUP)
+###                                |---handy-ruler-------------------------------|
+LIBDRM_32_PKG_SHORT_DESCRIPTION   = Direct Rendering library
+LIBDRM_32_PKG_URL                 = $(BUG_URL)
+LIBDRM_32_PKG_LICENSE             = custom
+LIBDRM_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBDRM_32_PKG_NAME)-pkg-description
+LIBDRM_32_PKG_DESCRIPTION_FILE_IN = $(LIBDRM_32_PKG_NAME)-pkg-description.in
+LIBDRM_32_PKG_INSTALL_SCRIPT      = $(LIBDRM_32_PKG_NAME)-pkg-install.sh
+
+LIBDRM_32_PKG    = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBDRM_32_PKG_NAME)-package
+
+pkg_basename     = $(LIBDRM_32_PKG_NAME)-$(LIBDRM_32_PKG_VERSION)-$(LIBDRM_32_PKG_ARCH)-$(LIBDRM_32_PKG_DISTRO_NAME)-$(LIBDRM_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(LIBDRM_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-udev
+extra_configure_switches += --enable-omap-experimental-api
+extra_configure_switches += --enable-exynos-experimental-api
+extra_configure_switches += --enable-cairo-tests=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBDRM_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(LIBDRM_32_PKG)/usr/include
+	@rm -rf $(LIBDRM_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBDRM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libdrm.la          \
+	                                    libdrm_exynos.la   \
+	                                    libdrm_intel.la    \
+	                                    libdrm_nouveau.la  \
+	                                    libdrm_omap.la     \
+	                                    libdrm_radeon.la   \
+	                                    libkms.la        ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBDRM_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm.la          \
+	                                            libdrm_exynos.la   \
+	                                            libdrm_intel.la    \
+	                                            libdrm_nouveau.la  \
+	                                            libdrm_omap.la     \
+	                                            libdrm_radeon.la   \
+	                                            libkms.la        ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libdrm.la          \
+	                                              libdrm_exynos.la   \
+	                                              libdrm_intel.la    \
+	                                              libdrm_nouveau.la  \
+	                                              libdrm_omap.la     \
+	                                              libdrm_radeon.la   \
+	                                              libkms.la        ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdrm.pc          \
+	                                            libdrm_exynos.pc   \
+	                                            libdrm_intel.pc    \
+	                                            libdrm_nouveau.pc  \
+	                                            libdrm_omap.pc     \
+	                                            libdrm_radeon.pc   \
+	                                            libkms.pc        ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBDRM_32_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(LIBDRM_32_PKG_DESCRIPTION_FILE): $(LIBDRM_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBDRM_32_PKG_DESCRIPTION_FILE) $(LIBDRM_32_PKG_INSTALL_SCRIPT)
+	@cp $(LIBDRM_32_PKG_DESCRIPTION_FILE) $(LIBDRM_32_PKG)/.DESCRIPTION
+	@cp $(LIBDRM_32_PKG_INSTALL_SCRIPT) $(LIBDRM_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBDRM_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBDRM_32_PKG_NAME)"                            >  $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBDRM_32_PKG_VERSION)"                          >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBDRM_32_PKG_ARCH)"                               >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBDRM_32_PKG_DISTRO_NAME)"                  >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBDRM_32_PKG_DISTRO_VERSION)"                >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBDRM_32_PKG_GROUP)"                             >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBDRM_32_PKG_SHORT_DESCRIPTION)\"" >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBDRM_32_PKG_URL)"                                 >> $(LIBDRM_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBDRM_32_PKG_LICENSE)"                         >> $(LIBDRM_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBDRM_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libdrm/2.4.64-x86_32/PATCHES
===================================================================
--- X11/libs/libdrm/2.4.64-x86_32/PATCHES	(nonexistent)
+++ X11/libs/libdrm/2.4.64-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/libdrm/patches/libdrm-2.4.64-ti-glsdk.patch -p0
Index: X11/libs/libdrm/2.4.64-x86_32/libdrm-x32-pkg-description.in
===================================================================
--- X11/libs/libdrm/2.4.64-x86_32/libdrm-x32-pkg-description.in	(nonexistent)
+++ X11/libs/libdrm/2.4.64-x86_32/libdrm-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+          |-----handy-ruler------------------------------------------------------|
+libdrm-x32: libdrm-x32 @VERSION@ (x86_32 Direct Rendering library)
+libdrm-x32:
+libdrm-x32: This library implements an interface to the kernel's DRM services.
+libdrm-x32: It is used to support hardware accelerated 3-D rendering.
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
+libdrm-x32:
Index: X11/libs/libdrm/2.4.64-x86_32/libdrm-x32-pkg-install.sh
===================================================================
--- X11/libs/libdrm/2.4.64-x86_32/libdrm-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/libdrm/2.4.64-x86_32/libdrm-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libdrm/2.4.64-x86_32/libdrm-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libepoxy/1.2/Makefile
===================================================================
--- X11/libs/libepoxy/1.2/Makefile	(nonexistent)
+++ X11/libs/libepoxy/1.2/Makefile	(revision 563)
@@ -0,0 +1,188 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libepoxy
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.2
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/libepoxy/libepoxy-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libepoxy-$(version)
+src_dir_name       = libepoxy-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBEPOXY_PKG_NAME                = libepoxy
+LIBEPOXY_PKG_VERSION             = 1.2
+LIBEPOXY_PKG_ARCH                = $(TOOLCHAIN)
+LIBEPOXY_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBEPOXY_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBEPOXY_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+LIBEPOXY_PKG_SHORT_DESCRIPTION   = OpenGL function pointer management
+LIBEPOXY_PKG_URL                 = $(BUG_URL)
+LIBEPOXY_PKG_LICENSE             = MIT
+LIBEPOXY_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBEPOXY_PKG_NAME)-pkg-description
+LIBEPOXY_PKG_DESCRIPTION_FILE_IN = $(LIBEPOXY_PKG_NAME)-pkg-description.in
+LIBEPOXY_PKG_INSTALL_SCRIPT      = $(LIBEPOXY_PKG_NAME)-pkg-install.sh
+
+LIBEPOXY_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBEPOXY_PKG_NAME)-package
+
+pkg_basename     = $(LIBEPOXY_PKG_NAME)-$(LIBEPOXY_PKG_VERSION)-$(LIBEPOXY_PKG_ARCH)-$(LIBEPOXY_PKG_DISTRO_NAME)-$(LIBEPOXY_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(LIBEPOXY_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBEPOXY_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(LIBEPOXY_PKG)/usr/share/man ]; then \
+	  ( cd $(LIBEPOXY_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(LIBEPOXY_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(LIBEPOXY_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(LIBEPOXY_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING README.md \
+	         $(LIBEPOXY_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LIBEPOXY_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBEPOXY_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libepoxy.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBEPOXY_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libepoxy.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libepoxy.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" epoxy.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBEPOXY_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(LIBEPOXY_PKG_DESCRIPTION_FILE): $(LIBEPOXY_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBEPOXY_PKG_DESCRIPTION_FILE) $(LIBEPOXY_PKG_INSTALL_SCRIPT)
+	@cp $(LIBEPOXY_PKG_DESCRIPTION_FILE) $(LIBEPOXY_PKG)/.DESCRIPTION
+	@cp $(LIBEPOXY_PKG_INSTALL_SCRIPT) $(LIBEPOXY_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBEPOXY_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBEPOXY_PKG_NAME)"                            >  $(LIBEPOXY_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBEPOXY_PKG_VERSION)"                          >> $(LIBEPOXY_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBEPOXY_PKG_ARCH)"                               >> $(LIBEPOXY_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBEPOXY_PKG_DISTRO_NAME)"                  >> $(LIBEPOXY_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBEPOXY_PKG_DISTRO_VERSION)"                >> $(LIBEPOXY_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBEPOXY_PKG_GROUP)"                             >> $(LIBEPOXY_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBEPOXY_PKG_SHORT_DESCRIPTION)\"" >> $(LIBEPOXY_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBEPOXY_PKG_URL)"                                 >> $(LIBEPOXY_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBEPOXY_PKG_LICENSE)"                         >> $(LIBEPOXY_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBEPOXY_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libepoxy/1.2/libepoxy-pkg-install.sh
===================================================================
--- X11/libs/libepoxy/1.2/libepoxy-pkg-install.sh	(nonexistent)
+++ X11/libs/libepoxy/1.2/libepoxy-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libepoxy/1.2/libepoxy-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libepoxy/1.2/PATCHES
===================================================================
Index: X11/libs/libepoxy/1.2/libepoxy-pkg-description.in
===================================================================
--- X11/libs/libepoxy/1.2/libepoxy-pkg-description.in	(nonexistent)
+++ X11/libs/libepoxy/1.2/libepoxy-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+libepoxy: libepoxy @VERSION@ (OpenGL function pointer management)
+libepoxy:
+libepoxy: Epoxy is a library for handling OpenGL function pointer management.
+libepoxy: It hides the complexity of dlopen(), dlsym(), glXGetProcAddress(),
+libepoxy: eglGetProcAddress(), etc. from the app developer, with very little
+libepoxy: knowledge needed on their part. They get to read GL specs and write
+libepoxy: code using undecorated function names like glCompileShader().
+libepoxy:
+libepoxy:
+libepoxy:
+libepoxy:
Index: X11/libs/libepoxy/1.2-x86_32/Makefile
===================================================================
--- X11/libs/libepoxy/1.2-x86_32/Makefile	(nonexistent)
+++ X11/libs/libepoxy/1.2-x86_32/Makefile	(revision 563)
@@ -0,0 +1,154 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libepoxy
+
+REQUIRES           = X11/libs/libepoxy/1.2
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.2
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/libepoxy/libepoxy-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libepoxy-$(version)
+src_dir_name       = libepoxy-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBEPOXY_32_PKG_NAME                = libepoxy-x32
+LIBEPOXY_32_PKG_VERSION             = 1.2
+LIBEPOXY_32_PKG_ARCH                = $(TOOLCHAIN)
+LIBEPOXY_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBEPOXY_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBEPOXY_32_PKG_GROUP               = $(PKG_GROUP)
+###                                  |---handy-ruler-------------------------------|
+LIBEPOXY_32_PKG_SHORT_DESCRIPTION   = OpenGL function pointer management
+LIBEPOXY_32_PKG_URL                 = $(BUG_URL)
+LIBEPOXY_32_PKG_LICENSE             = MIT
+LIBEPOXY_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBEPOXY_32_PKG_NAME)-pkg-description
+LIBEPOXY_32_PKG_DESCRIPTION_FILE_IN = $(LIBEPOXY_32_PKG_NAME)-pkg-description.in
+LIBEPOXY_32_PKG_INSTALL_SCRIPT      = $(LIBEPOXY_32_PKG_NAME)-pkg-install.sh
+
+LIBEPOXY_32_PKG  = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBEPOXY_32_PKG_NAME)-package
+
+pkg_basename     = $(LIBEPOXY_32_PKG_NAME)-$(LIBEPOXY_32_PKG_VERSION)-$(LIBEPOXY_32_PKG_ARCH)-$(LIBEPOXY_32_PKG_DISTRO_NAME)-$(LIBEPOXY_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(LIBEPOXY_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBEPOXY_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(LIBEPOXY_32_PKG)/usr/include
+	@rm -rf $(LIBEPOXY_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBEPOXY_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libepoxy.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBEPOXY_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libepoxy.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libepoxy.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" epoxy.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBEPOXY_32_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(LIBEPOXY_32_PKG_DESCRIPTION_FILE): $(LIBEPOXY_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBEPOXY_32_PKG_DESCRIPTION_FILE) $(LIBEPOXY_32_PKG_INSTALL_SCRIPT)
+	@cp $(LIBEPOXY_32_PKG_DESCRIPTION_FILE) $(LIBEPOXY_32_PKG)/.DESCRIPTION
+	@cp $(LIBEPOXY_32_PKG_INSTALL_SCRIPT) $(LIBEPOXY_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBEPOXY_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBEPOXY_32_PKG_NAME)"                            >  $(LIBEPOXY_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBEPOXY_32_PKG_VERSION)"                          >> $(LIBEPOXY_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBEPOXY_32_PKG_ARCH)"                               >> $(LIBEPOXY_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBEPOXY_32_PKG_DISTRO_NAME)"                  >> $(LIBEPOXY_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBEPOXY_32_PKG_DISTRO_VERSION)"                >> $(LIBEPOXY_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBEPOXY_32_PKG_GROUP)"                             >> $(LIBEPOXY_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBEPOXY_32_PKG_SHORT_DESCRIPTION)\"" >> $(LIBEPOXY_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBEPOXY_32_PKG_URL)"                                 >> $(LIBEPOXY_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBEPOXY_32_PKG_LICENSE)"                         >> $(LIBEPOXY_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBEPOXY_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libepoxy/1.2-x86_32/libepoxy-x32-pkg-install.sh
===================================================================
--- X11/libs/libepoxy/1.2-x86_32/libepoxy-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/libepoxy/1.2-x86_32/libepoxy-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libepoxy/1.2-x86_32/libepoxy-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libepoxy/1.2-x86_32/PATCHES
===================================================================
Index: X11/libs/libepoxy/1.2-x86_32/libepoxy-x32-pkg-description.in
===================================================================
--- X11/libs/libepoxy/1.2-x86_32/libepoxy-x32-pkg-description.in	(nonexistent)
+++ X11/libs/libepoxy/1.2-x86_32/libepoxy-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+            |-----handy-ruler------------------------------------------------------|
+libepoxy-x32: libepoxy-x32 @VERSION@ (x86_32 OpenGL function pointer management)
+libepoxy-x32:
+libepoxy-x32: Epoxy is a library for handling OpenGL function pointer management.
+libepoxy-x32: It hides the complexity of dlopen(), dlsym(), glXGetProcAddress(),
+libepoxy-x32: eglGetProcAddress(), etc. from the app developer, with very little
+libepoxy-x32: knowledge needed on their part. They get to read GL specs and write
+libepoxy-x32: code using undecorated function names like glCompileShader().
+libepoxy-x32:
+libepoxy-x32:
+libepoxy-x32:
+libepoxy-x32:
Index: X11/libs/libevdev/1.3.2/Makefile
===================================================================
--- X11/libs/libevdev/1.3.2/Makefile	(nonexistent)
+++ X11/libs/libevdev/1.3.2/Makefile	(revision 563)
@@ -0,0 +1,188 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libevdev
+
+REQUIRES          += dev/check/0.9.13
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.3.2
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/x/libevdev/libevdev-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libevdev-$(version)
+src_dir_name       = libevdev-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBEVDEV_PKG_NAME                = libevdev
+LIBEVDEV_PKG_VERSION             = 1.3.2
+LIBEVDEV_PKG_ARCH                = $(TOOLCHAIN)
+LIBEVDEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBEVDEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBEVDEV_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+LIBEVDEV_PKG_SHORT_DESCRIPTION   = Wrapper library for evdev devices
+LIBEVDEV_PKG_URL                 = $(BUG_URL)
+LIBEVDEV_PKG_LICENSE             = custom
+LIBEVDEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBEVDEV_PKG_NAME)-pkg-description
+LIBEVDEV_PKG_DESCRIPTION_FILE_IN = $(LIBEVDEV_PKG_NAME)-pkg-description.in
+LIBEVDEV_PKG_INSTALL_SCRIPT      = $(LIBEVDEV_PKG_NAME)-pkg-install.sh
+
+LIBEVDEV_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBEVDEV_PKG_NAME)-package
+
+pkg_basename     = $(LIBEVDEV_PKG_NAME)-$(LIBEVDEV_PKG_VERSION)-$(LIBEVDEV_PKG_ARCH)-$(LIBEVDEV_PKG_DISTRO_NAME)-$(LIBEVDEV_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(LIBEVDEV_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBEVDEV_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(LIBEVDEV_PKG)/usr/share/man ]; then \
+	  ( cd $(LIBEVDEV_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(LIBEVDEV_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(LIBEVDEV_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(LIBEVDEV_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING doc/html \
+	         $(LIBEVDEV_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LIBEVDEV_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBEVDEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libevdev.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBEVDEV_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libevdev.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libevdev.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libevdev.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBEVDEV_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(LIBEVDEV_PKG_DESCRIPTION_FILE): $(LIBEVDEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBEVDEV_PKG_DESCRIPTION_FILE) $(LIBEVDEV_PKG_INSTALL_SCRIPT)
+	@cp $(LIBEVDEV_PKG_DESCRIPTION_FILE) $(LIBEVDEV_PKG)/.DESCRIPTION
+	@cp $(LIBEVDEV_PKG_INSTALL_SCRIPT) $(LIBEVDEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBEVDEV_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBEVDEV_PKG_NAME)"                            >  $(LIBEVDEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBEVDEV_PKG_VERSION)"                          >> $(LIBEVDEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBEVDEV_PKG_ARCH)"                               >> $(LIBEVDEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBEVDEV_PKG_DISTRO_NAME)"                  >> $(LIBEVDEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBEVDEV_PKG_DISTRO_VERSION)"                >> $(LIBEVDEV_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBEVDEV_PKG_GROUP)"                             >> $(LIBEVDEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBEVDEV_PKG_SHORT_DESCRIPTION)\"" >> $(LIBEVDEV_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBEVDEV_PKG_URL)"                                 >> $(LIBEVDEV_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBEVDEV_PKG_LICENSE)"                         >> $(LIBEVDEV_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBEVDEV_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libevdev/1.3.2/libevdev-pkg-install.sh
===================================================================
--- X11/libs/libevdev/1.3.2/libevdev-pkg-install.sh	(nonexistent)
+++ X11/libs/libevdev/1.3.2/libevdev-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libevdev/1.3.2/libevdev-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libevdev/1.3.2/PATCHES
===================================================================
Index: X11/libs/libevdev/1.3.2/libevdev-pkg-description.in
===================================================================
--- X11/libs/libevdev/1.3.2/libevdev-pkg-description.in	(nonexistent)
+++ X11/libs/libevdev/1.3.2/libevdev-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+libevdev: libevdev @VERSION@ (Wrapper library for evdev devices)
+libevdev:
+libevdev: libevdev is a library for handling evdev kernel devices.
+libevdev: It abstracts the evdev ioctls through type-safe interfaces and
+libevdev: provides functions to change the appearance of the device.
+libevdev:
+libevdev:
+libevdev:
+libevdev:
+libevdev:
+libevdev:
Index: X11/libs/libevdev/1.3.2-x86_32/Makefile
===================================================================
--- X11/libs/libevdev/1.3.2-x86_32/Makefile	(nonexistent)
+++ X11/libs/libevdev/1.3.2-x86_32/Makefile	(revision 563)
@@ -0,0 +1,155 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libevdev
+
+REQUIRES           = X11/libs/libevdev/1.3.2
+REQUIRES          += dev/check/0.9.13-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.3.2
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/x/libevdev/libevdev-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libevdev-$(version)
+src_dir_name       = libevdev-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBEVDEV_32_PKG_NAME                = libevdev-x32
+LIBEVDEV_32_PKG_VERSION             = 1.3.2
+LIBEVDEV_32_PKG_ARCH                = $(TOOLCHAIN)
+LIBEVDEV_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBEVDEV_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBEVDEV_32_PKG_GROUP               = $(PKG_GROUP)
+###                                  |---handy-ruler-------------------------------|
+LIBEVDEV_32_PKG_SHORT_DESCRIPTION   = Wrapper library for evdev devices
+LIBEVDEV_32_PKG_URL                 = $(BUG_URL)
+LIBEVDEV_32_PKG_LICENSE             = custom
+LIBEVDEV_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBEVDEV_32_PKG_NAME)-pkg-description
+LIBEVDEV_32_PKG_DESCRIPTION_FILE_IN = $(LIBEVDEV_32_PKG_NAME)-pkg-description.in
+LIBEVDEV_32_PKG_INSTALL_SCRIPT      = $(LIBEVDEV_32_PKG_NAME)-pkg-install.sh
+
+LIBEVDEV_32_PKG  = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBEVDEV_32_PKG_NAME)-package
+
+pkg_basename     = $(LIBEVDEV_32_PKG_NAME)-$(LIBEVDEV_32_PKG_VERSION)-$(LIBEVDEV_32_PKG_ARCH)-$(LIBEVDEV_32_PKG_DISTRO_NAME)-$(LIBEVDEV_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(LIBEVDEV_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBEVDEV_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(LIBEVDEV_32_PKG)/usr/include
+	@rm -rf $(LIBEVDEV_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBEVDEV_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libevdev.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBEVDEV_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libevdev.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libevdev.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libevdev.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBEVDEV_32_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(LIBEVDEV_32_PKG_DESCRIPTION_FILE): $(LIBEVDEV_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBEVDEV_32_PKG_DESCRIPTION_FILE) $(LIBEVDEV_32_PKG_INSTALL_SCRIPT)
+	@cp $(LIBEVDEV_32_PKG_DESCRIPTION_FILE) $(LIBEVDEV_32_PKG)/.DESCRIPTION
+	@cp $(LIBEVDEV_32_PKG_INSTALL_SCRIPT) $(LIBEVDEV_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBEVDEV_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBEVDEV_32_PKG_NAME)"                            >  $(LIBEVDEV_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBEVDEV_32_PKG_VERSION)"                          >> $(LIBEVDEV_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBEVDEV_32_PKG_ARCH)"                               >> $(LIBEVDEV_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBEVDEV_32_PKG_DISTRO_NAME)"                  >> $(LIBEVDEV_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBEVDEV_32_PKG_DISTRO_VERSION)"                >> $(LIBEVDEV_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBEVDEV_32_PKG_GROUP)"                             >> $(LIBEVDEV_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBEVDEV_32_PKG_SHORT_DESCRIPTION)\"" >> $(LIBEVDEV_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBEVDEV_32_PKG_URL)"                                 >> $(LIBEVDEV_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBEVDEV_32_PKG_LICENSE)"                         >> $(LIBEVDEV_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBEVDEV_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libevdev/1.3.2-x86_32/libevdev-x32-pkg-install.sh
===================================================================
--- X11/libs/libevdev/1.3.2-x86_32/libevdev-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/libevdev/1.3.2-x86_32/libevdev-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libevdev/1.3.2-x86_32/libevdev-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libevdev/1.3.2-x86_32/PATCHES
===================================================================
Index: X11/libs/libevdev/1.3.2-x86_32/libevdev-x32-pkg-description.in
===================================================================
--- X11/libs/libevdev/1.3.2-x86_32/libevdev-x32-pkg-description.in	(nonexistent)
+++ X11/libs/libevdev/1.3.2-x86_32/libevdev-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+            |-----handy-ruler------------------------------------------------------|
+libevdev-x32: libevdev-x32 @VERSION@ (x86_32 Wrapper library for evdev devices)
+libevdev-x32:
+libevdev-x32: libevdev is a library for handling evdev kernel devices.
+libevdev-x32: It abstracts the evdev ioctls through type-safe interfaces and
+libevdev-x32: provides functions to change the appearance of the device.
+libevdev-x32:
+libevdev-x32:
+libevdev-x32:
+libevdev-x32:
+libevdev-x32:
+libevdev-x32:
Index: X11/libs/libglade/2.6.4/Makefile
===================================================================
--- X11/libs/libglade/2.6.4/Makefile	(nonexistent)
+++ X11/libs/libglade/2.6.4/Makefile	(revision 563)
@@ -0,0 +1,206 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/GNOME/core/libglade
+
+REQUIRES           = X11/libs/gtk+2/2.24.25
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.6.4
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/GNOME/core/libglade/libglade-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libglade-$(version)
+src_dir_name       = libglade-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBGLADE_PKG_NAME                = libglade
+LIBGLADE_PKG_VERSION             = 2.6.4
+LIBGLADE_PKG_ARCH                = $(TOOLCHAIN)
+LIBGLADE_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBGLADE_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBGLADE_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+LIBGLADE_PKG_SHORT_DESCRIPTION   = GLADE library
+LIBGLADE_PKG_URL                 = $(BUG_URL)
+LIBGLADE_PKG_LICENSE             = LGPLv2
+LIBGLADE_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBGLADE_PKG_NAME)-pkg-description
+LIBGLADE_PKG_DESCRIPTION_FILE_IN = $(LIBGLADE_PKG_NAME)-pkg-description.in
+LIBGLADE_PKG_INSTALL_SCRIPT      = $(LIBGLADE_PKG_NAME)-pkg-install.sh
+
+LIBGLADE_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBGLADE_PKG_NAME)-package
+
+pkg_basename     = $(LIBGLADE_PKG_NAME)-$(LIBGLADE_PKG_VERSION)-$(LIBGLADE_PKG_ARCH)-$(LIBGLADE_PKG_DISTRO_NAME)-$(LIBGLADE_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(LIBGLADE_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var/lib
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBGLADE_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(LIBGLADE_PKG)/usr/share/man ]; then \
+	  ( cd $(LIBGLADE_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(LIBGLADE_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(LIBGLADE_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(LIBGLADE_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL NEWS README \
+	         $(LIBGLADE_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   ln -sf ../../gtk-doc/html/libglade $(LIBGLADE_PKG)/usr/share/doc/$(src_dir_name)/html ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LIBGLADE_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBGLADE_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libglade-2.0.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBGLADE_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libglade-2.0.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libglade-2.0.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libglade-2.0.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBGLADE_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(LIBGLADE_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(LIBGLADE_PKG_DESCRIPTION_FILE): $(LIBGLADE_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBGLADE_PKG_DESCRIPTION_FILE) $(LIBGLADE_PKG_INSTALL_SCRIPT)
+	@cp $(LIBGLADE_PKG_DESCRIPTION_FILE) $(LIBGLADE_PKG)/.DESCRIPTION
+	@cp $(LIBGLADE_PKG_INSTALL_SCRIPT) $(LIBGLADE_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBGLADE_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBGLADE_PKG_NAME)"                            >  $(LIBGLADE_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBGLADE_PKG_VERSION)"                          >> $(LIBGLADE_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBGLADE_PKG_ARCH)"                               >> $(LIBGLADE_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBGLADE_PKG_DISTRO_NAME)"                  >> $(LIBGLADE_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBGLADE_PKG_DISTRO_VERSION)"                >> $(LIBGLADE_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBGLADE_PKG_GROUP)"                             >> $(LIBGLADE_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBGLADE_PKG_SHORT_DESCRIPTION)\"" >> $(LIBGLADE_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBGLADE_PKG_URL)"                                 >> $(LIBGLADE_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBGLADE_PKG_LICENSE)"                         >> $(LIBGLADE_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBGLADE_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libglade/2.6.4/PATCHES
===================================================================
--- X11/libs/libglade/2.6.4/PATCHES	(nonexistent)
+++ X11/libs/libglade/2.6.4/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/GNOME/core/libglade/patches/libglade-2.6.4.patch -p0
Index: X11/libs/libglade/2.6.4/libglade-pkg-description.in
===================================================================
--- X11/libs/libglade/2.6.4/libglade-pkg-description.in	(nonexistent)
+++ X11/libs/libglade/2.6.4/libglade-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+libglade: libglade @VERSION@ (GLADE library)
+libglade:
+libglade: The GLADE library allows loading user interfaces which are stored
+libglade: externally into a program.  This allows the interface to be changed
+libglade: without recompiling the program.  The interfaces can also be edited
+libglade: with GLADE.
+libglade:
+libglade:
+libglade:
+libglade:
+libglade:
Index: X11/libs/libglade/2.6.4/libglade-pkg-install.sh
===================================================================
--- X11/libs/libglade/2.6.4/libglade-pkg-install.sh	(nonexistent)
+++ X11/libs/libglade/2.6.4/libglade-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libglade/2.6.4/libglade-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libglade/2.6.4-x86_32/Makefile
===================================================================
--- X11/libs/libglade/2.6.4-x86_32/Makefile	(nonexistent)
+++ X11/libs/libglade/2.6.4-x86_32/Makefile	(revision 563)
@@ -0,0 +1,172 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/GNOME/core/libglade
+
+REQUIRES           = X11/libs/libglade/2.6.4
+REQUIRES          += X11/libs/gtk+2/2.24.25-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.6.4
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/GNOME/core/libglade/libglade-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libglade-$(version)
+src_dir_name       = libglade-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBGLADE_32_PKG_NAME                = libglade-x32
+LIBGLADE_32_PKG_VERSION             = 2.6.4
+LIBGLADE_32_PKG_ARCH                = $(TOOLCHAIN)
+LIBGLADE_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBGLADE_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBGLADE_32_PKG_GROUP               = $(PKG_GROUP)
+###                                  |---handy-ruler-------------------------------|
+LIBGLADE_32_PKG_SHORT_DESCRIPTION   = GLADE library
+LIBGLADE_32_PKG_URL                 = $(BUG_URL)
+LIBGLADE_32_PKG_LICENSE             = LGPLv2
+LIBGLADE_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBGLADE_32_PKG_NAME)-pkg-description
+LIBGLADE_32_PKG_DESCRIPTION_FILE_IN = $(LIBGLADE_32_PKG_NAME)-pkg-description.in
+LIBGLADE_32_PKG_INSTALL_SCRIPT      = $(LIBGLADE_32_PKG_NAME)-pkg-install.sh
+
+LIBGLADE_32_PKG  = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBGLADE_32_PKG_NAME)-package
+
+pkg_basename     = $(LIBGLADE_32_PKG_NAME)-$(LIBGLADE_32_PKG_VERSION)-$(LIBGLADE_32_PKG_ARCH)-$(LIBGLADE_32_PKG_DISTRO_NAME)-$(LIBGLADE_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(LIBGLADE_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var/lib
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBGLADE_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(LIBGLADE_32_PKG)/usr/bin
+	@rm -rf $(LIBGLADE_32_PKG)/usr/include
+	@rm -rf $(LIBGLADE_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBGLADE_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libglade-2.0.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBGLADE_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libglade-2.0.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libglade-2.0.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libglade-2.0.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBGLADE_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(LIBGLADE_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(LIBGLADE_32_PKG_DESCRIPTION_FILE): $(LIBGLADE_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBGLADE_32_PKG_DESCRIPTION_FILE) $(LIBGLADE_32_PKG_INSTALL_SCRIPT)
+	@cp $(LIBGLADE_32_PKG_DESCRIPTION_FILE) $(LIBGLADE_32_PKG)/.DESCRIPTION
+	@cp $(LIBGLADE_32_PKG_INSTALL_SCRIPT) $(LIBGLADE_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBGLADE_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBGLADE_32_PKG_NAME)"                            >  $(LIBGLADE_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBGLADE_32_PKG_VERSION)"                          >> $(LIBGLADE_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBGLADE_32_PKG_ARCH)"                               >> $(LIBGLADE_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBGLADE_32_PKG_DISTRO_NAME)"                  >> $(LIBGLADE_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBGLADE_32_PKG_DISTRO_VERSION)"                >> $(LIBGLADE_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBGLADE_32_PKG_GROUP)"                             >> $(LIBGLADE_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBGLADE_32_PKG_SHORT_DESCRIPTION)\"" >> $(LIBGLADE_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBGLADE_32_PKG_URL)"                                 >> $(LIBGLADE_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBGLADE_32_PKG_LICENSE)"                         >> $(LIBGLADE_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBGLADE_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libglade/2.6.4-x86_32/PATCHES
===================================================================
--- X11/libs/libglade/2.6.4-x86_32/PATCHES	(nonexistent)
+++ X11/libs/libglade/2.6.4-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/GNOME/core/libglade/patches/libglade-2.6.4.patch -p0
Index: X11/libs/libglade/2.6.4-x86_32/libglade-x32-pkg-description.in
===================================================================
--- X11/libs/libglade/2.6.4-x86_32/libglade-x32-pkg-description.in	(nonexistent)
+++ X11/libs/libglade/2.6.4-x86_32/libglade-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+            |-----handy-ruler------------------------------------------------------|
+libglade-x32: libglade-x32 @VERSION@ (x86_32 GLADE library)
+libglade-x32:
+libglade-x32: The GLADE library allows loading user interfaces which are stored
+libglade-x32: externally into a program.  This allows the interface to be changed
+libglade-x32: without recompiling the program.  The interfaces can also be edited
+libglade-x32: with GLADE.
+libglade-x32:
+libglade-x32:
+libglade-x32:
+libglade-x32:
+libglade-x32:
Index: X11/libs/libglade/2.6.4-x86_32/libglade-x32-pkg-install.sh
===================================================================
--- X11/libs/libglade/2.6.4-x86_32/libglade-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/libglade/2.6.4-x86_32/libglade-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libglade/2.6.4-x86_32/libglade-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libinput/0.7.0/Makefile
===================================================================
--- X11/libs/libinput/0.7.0/Makefile	(nonexistent)
+++ X11/libs/libinput/0.7.0/Makefile	(revision 563)
@@ -0,0 +1,207 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libinput
+
+REQUIRES           = libs/eudev/1.9
+REQUIRES          += X11/libs/libevdev/1.3.2
+REQUIRES          += X11/libs/mtdev/1.1.5
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.7.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/x/libinput/libinput-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libinput-$(version)
+src_dir_name       = libinput-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBINPUT_PKG_NAME                = libinput
+LIBINPUT_PKG_VERSION             = 0.7.0
+LIBINPUT_PKG_ARCH                = $(TOOLCHAIN)
+LIBINPUT_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBINPUT_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBINPUT_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+LIBINPUT_PKG_SHORT_DESCRIPTION   = input devices handler
+LIBINPUT_PKG_URL                 = $(BUG_URL)
+LIBINPUT_PKG_LICENSE             = custom
+LIBINPUT_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBINPUT_PKG_NAME)-pkg-description
+LIBINPUT_PKG_DESCRIPTION_FILE_IN = $(LIBINPUT_PKG_NAME)-pkg-description.in
+LIBINPUT_PKG_INSTALL_SCRIPT      = $(LIBINPUT_PKG_NAME)-pkg-install.sh
+
+LIBINPUT_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBINPUT_PKG_NAME)-package
+
+pkg_basename     = $(LIBINPUT_PKG_NAME)-$(LIBINPUT_PKG_VERSION)-$(LIBINPUT_PKG_ARCH)-$(LIBINPUT_PKG_DISTRO_NAME)-$(LIBINPUT_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(LIBINPUT_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-event-gui=no
+
+extra_configure_switches += --enable-shared=yes
+extra_configure_switches += --enable-static=no
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBINPUT_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(LIBINPUT_PKG)/usr/share/man ]; then \
+	  ( cd $(LIBINPUT_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(LIBINPUT_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(LIBINPUT_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(LIBINPUT_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING README $(CURDIR)/$(build_dir)/doc/html \
+	         $(LIBINPUT_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   cp -a doc/*.svg \
+	         $(LIBINPUT_PKG)/usr/share/doc/$(src_dir_name)/html ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LIBINPUT_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBINPUT_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libinput.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBINPUT_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libinput.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libinput.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libinput.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBINPUT_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(LIBINPUT_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(LIBINPUT_PKG_DESCRIPTION_FILE): $(LIBINPUT_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBINPUT_PKG_DESCRIPTION_FILE) $(LIBINPUT_PKG_INSTALL_SCRIPT)
+	@cp $(LIBINPUT_PKG_DESCRIPTION_FILE) $(LIBINPUT_PKG)/.DESCRIPTION
+	@cp $(LIBINPUT_PKG_INSTALL_SCRIPT) $(LIBINPUT_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBINPUT_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBINPUT_PKG_NAME)"                            >  $(LIBINPUT_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBINPUT_PKG_VERSION)"                          >> $(LIBINPUT_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBINPUT_PKG_ARCH)"                               >> $(LIBINPUT_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBINPUT_PKG_DISTRO_NAME)"                  >> $(LIBINPUT_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBINPUT_PKG_DISTRO_VERSION)"                >> $(LIBINPUT_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBINPUT_PKG_GROUP)"                             >> $(LIBINPUT_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBINPUT_PKG_SHORT_DESCRIPTION)\"" >> $(LIBINPUT_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBINPUT_PKG_URL)"                                 >> $(LIBINPUT_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBINPUT_PKG_LICENSE)"                         >> $(LIBINPUT_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBINPUT_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libinput/0.7.0/libinput-pkg-install.sh
===================================================================
--- X11/libs/libinput/0.7.0/libinput-pkg-install.sh	(nonexistent)
+++ X11/libs/libinput/0.7.0/libinput-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libinput/0.7.0/libinput-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libinput/0.7.0/PATCHES
===================================================================
Index: X11/libs/libinput/0.7.0/libinput-pkg-description.in
===================================================================
--- X11/libs/libinput/0.7.0/libinput-pkg-description.in	(nonexistent)
+++ X11/libs/libinput/0.7.0/libinput-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+libinput: libinput @VERSION@ (input devices handler)
+libinput:
+libinput: libinput is a library that handles input devices for display servers
+libinput: and other applications that need to directly deal with input devices.
+libinput:
+libinput:
+libinput:
+libinput:
+libinput:
+libinput:
+libinput:
Index: X11/libs/libinput/0.7.0-x86_32/Makefile
===================================================================
--- X11/libs/libinput/0.7.0-x86_32/Makefile	(nonexistent)
+++ X11/libs/libinput/0.7.0-x86_32/Makefile	(revision 563)
@@ -0,0 +1,170 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/libinput
+
+REQUIRES           = X11/libs/libinput/0.7.0
+REQUIRES          += libs/eudev/1.9-x86_32
+REQUIRES          += X11/libs/libevdev/1.3.2-x86_32
+REQUIRES          += X11/libs/mtdev/1.1.5-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.7.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/x/libinput/libinput-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libinput-$(version)
+src_dir_name       = libinput-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBINPUT_32_PKG_NAME                = libinput-x32
+LIBINPUT_32_PKG_VERSION             = 0.7.0
+LIBINPUT_32_PKG_ARCH                = $(TOOLCHAIN)
+LIBINPUT_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBINPUT_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBINPUT_32_PKG_GROUP               = $(PKG_GROUP)
+###                                  |---handy-ruler-------------------------------|
+LIBINPUT_32_PKG_SHORT_DESCRIPTION   = input devices handler
+LIBINPUT_32_PKG_URL                 = $(BUG_URL)
+LIBINPUT_32_PKG_LICENSE             = custom
+LIBINPUT_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBINPUT_32_PKG_NAME)-pkg-description
+LIBINPUT_32_PKG_DESCRIPTION_FILE_IN = $(LIBINPUT_32_PKG_NAME)-pkg-description.in
+LIBINPUT_32_PKG_INSTALL_SCRIPT      = $(LIBINPUT_32_PKG_NAME)-pkg-install.sh
+
+LIBINPUT_32_PKG  = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBINPUT_32_PKG_NAME)-package
+
+pkg_basename     = $(LIBINPUT_32_PKG_NAME)-$(LIBINPUT_32_PKG_VERSION)-$(LIBINPUT_32_PKG_ARCH)-$(LIBINPUT_32_PKG_DISTRO_NAME)-$(LIBINPUT_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(LIBINPUT_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-event-gui=no
+
+extra_configure_switches += --enable-shared=yes
+extra_configure_switches += --enable-static=no
+
+
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBINPUT_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(LIBINPUT_32_PKG)/usr/include
+	@rm -rf $(LIBINPUT_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBINPUT_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libinput.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBINPUT_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libinput.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libinput.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libinput.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBINPUT_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(LIBINPUT_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(LIBINPUT_32_PKG_DESCRIPTION_FILE): $(LIBINPUT_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBINPUT_32_PKG_DESCRIPTION_FILE) $(LIBINPUT_32_PKG_INSTALL_SCRIPT)
+	@cp $(LIBINPUT_32_PKG_DESCRIPTION_FILE) $(LIBINPUT_32_PKG)/.DESCRIPTION
+	@cp $(LIBINPUT_32_PKG_INSTALL_SCRIPT) $(LIBINPUT_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBINPUT_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBINPUT_32_PKG_NAME)"                            >  $(LIBINPUT_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBINPUT_32_PKG_VERSION)"                          >> $(LIBINPUT_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBINPUT_32_PKG_ARCH)"                               >> $(LIBINPUT_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBINPUT_32_PKG_DISTRO_NAME)"                  >> $(LIBINPUT_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBINPUT_32_PKG_DISTRO_VERSION)"                >> $(LIBINPUT_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBINPUT_32_PKG_GROUP)"                             >> $(LIBINPUT_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBINPUT_32_PKG_SHORT_DESCRIPTION)\"" >> $(LIBINPUT_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBINPUT_32_PKG_URL)"                                 >> $(LIBINPUT_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBINPUT_32_PKG_LICENSE)"                         >> $(LIBINPUT_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBINPUT_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/libinput/0.7.0-x86_32/libinput-x32-pkg-install.sh
===================================================================
--- X11/libs/libinput/0.7.0-x86_32/libinput-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/libinput/0.7.0-x86_32/libinput-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/libinput/0.7.0-x86_32/libinput-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/libinput/0.7.0-x86_32/PATCHES
===================================================================
Index: X11/libs/libinput/0.7.0-x86_32/libinput-x32-pkg-description.in
===================================================================
--- X11/libs/libinput/0.7.0-x86_32/libinput-x32-pkg-description.in	(nonexistent)
+++ X11/libs/libinput/0.7.0-x86_32/libinput-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+            |-----handy-ruler------------------------------------------------------|
+libinput-x32: libinput-x32 @VERSION@ (x86_32 input devices handler)
+libinput-x32:
+libinput-x32: libinput is a library that handles input devices for display servers
+libinput-x32: and other applications that need to directly deal with input devices.
+libinput-x32:
+libinput-x32:
+libinput-x32:
+libinput-x32:
+libinput-x32:
+libinput-x32:
+libinput-x32:
Index: X11/libs/librsvg/2.40.5/Makefile
===================================================================
--- X11/libs/librsvg/2.40.5/Makefile	(nonexistent)
+++ X11/libs/librsvg/2.40.5/Makefile	(revision 563)
@@ -0,0 +1,236 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/GNOME/core/librsvg
+
+REQUIRES           = X11/libs/gdk-pixbuf2/2.31.1
+REQUIRES          += libs/libcroco/0.6.8
+REQUIRES          += libs/pango/1.36.8
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.40.5
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNOME/core/librsvg/librsvg-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/librsvg-$(version)
+src_dir_name       = librsvg-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBRSVG_PKG_NAME                = librsvg
+LIBRSVG_PKG_VERSION             = 2.40.5
+LIBRSVG_PKG_ARCH                = $(TOOLCHAIN)
+LIBRSVG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBRSVG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBRSVG_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+LIBRSVG_PKG_SHORT_DESCRIPTION   = SVG library
+LIBRSVG_PKG_URL                 = $(BUG_URL)
+LIBRSVG_PKG_LICENSE             = GPLv2
+LIBRSVG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBRSVG_PKG_NAME)-pkg-description
+LIBRSVG_PKG_DESCRIPTION_FILE_IN = $(LIBRSVG_PKG_NAME)-pkg-description.in
+LIBRSVG_PKG_INSTALL_SCRIPT      = $(LIBRSVG_PKG_NAME)-pkg-install.sh
+
+LIBRSVG_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBRSVG_PKG_NAME)-package
+
+pkg_basename     = $(LIBRSVG_PKG_NAME)-$(LIBRSVG_PKG_VERSION)-$(LIBRSVG_PKG_ARCH)-$(LIBRSVG_PKG_DISTRO_NAME)-$(LIBRSVG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(LIBRSVG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --enable-introspection=no
+extra_configure_switches += --enable-gtk-doc=no
+extra_configure_switches += --enable-vala=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	# ======= Disable rsvg-view-3 (required GTK+ v3) =======
+	@( cd $(build_dir) ; \
+	   sed -i "s,^am__append_1,#am_append_1,g" Makefile ; \
+	   sed -i "s,^am__EXEEXT_1,#am_EXEEXT_1,g" Makefile ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBRSVG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(LIBRSVG_PKG)/usr/share/man ]; then \
+	  ( cd $(LIBRSVG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(LIBRSVG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING* \
+	       $(LIBRSVG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(LIBRSVG_PKG)/usr/share/gtk-doc/html/$(src_dir_name)
+	@( cd $(SRC_DIR)/doc/html ; \
+	   cp -a *.html *.css *.png \
+	         $(LIBRSVG_PKG)/usr/share/gtk-doc/html/$(src_dir_name) ; \
+	 )
+	@mkdir -p $(LIBRSVG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING* INSTALL NEWS README \
+	         $(LIBRSVG_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   ln -sf ../../gtk-doc/html/$(src_dir_name) $(LIBRSVG_PKG)/usr/share/doc/$(src_dir_name)/html ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LIBRSVG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBRSVG_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" librsvg-?.la ; \
+	 )
+	@( cd $(LIBRSVG_PKG)/usr/lib$(LIBSUFFIX)/gdk-pixbuf-?.?/?.??.?/loaders ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libpixbufloader-svg.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBRSVG_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" librsvg-?.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" librsvg-?.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gdk-pixbuf-?.?/?.??.?/loaders ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libpixbufloader-svg.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libpixbufloader-svg.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" librsvg-?.?.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBRSVG_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(LIBRSVG_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(LIBRSVG_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(LIBRSVG_PKG_DESCRIPTION_FILE): $(LIBRSVG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBRSVG_PKG_DESCRIPTION_FILE) $(LIBRSVG_PKG_INSTALL_SCRIPT)
+	@cp $(LIBRSVG_PKG_DESCRIPTION_FILE) $(LIBRSVG_PKG)/.DESCRIPTION
+	@cp $(LIBRSVG_PKG_INSTALL_SCRIPT) $(LIBRSVG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBRSVG_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBRSVG_PKG_NAME)"                            >  $(LIBRSVG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBRSVG_PKG_VERSION)"                          >> $(LIBRSVG_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBRSVG_PKG_ARCH)"                               >> $(LIBRSVG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBRSVG_PKG_DISTRO_NAME)"                  >> $(LIBRSVG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBRSVG_PKG_DISTRO_VERSION)"                >> $(LIBRSVG_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBRSVG_PKG_GROUP)"                             >> $(LIBRSVG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBRSVG_PKG_SHORT_DESCRIPTION)\"" >> $(LIBRSVG_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBRSVG_PKG_URL)"                                 >> $(LIBRSVG_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBRSVG_PKG_LICENSE)"                         >> $(LIBRSVG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBRSVG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/librsvg/2.40.5/librsvg-pkg-install.sh
===================================================================
--- X11/libs/librsvg/2.40.5/librsvg-pkg-install.sh	(nonexistent)
+++ X11/libs/librsvg/2.40.5/librsvg-pkg-install.sh	(revision 563)
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  # Notice we use an absolute path below, rather than usr/bin/update-gdk-pixbuf-loaders.
+  # This is because we're testing to see if we are on the bootdisk, which will not have
+  # /usr/bin/update-gdk-pixbuf-loaders.
+  # Also we have to check that we are not in the installer mode on the target system
+  # ("/etc/system-installer"), and we have to be sure that we are on the working system
+  # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+  if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a -x /usr/bin/update-gdk-pixbuf-loaders ]; then
+    /usr/bin/update-gdk-pixbuf-loaders
+  fi
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/librsvg/2.40.5/librsvg-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/librsvg/2.40.5/PATCHES
===================================================================
--- X11/libs/librsvg/2.40.5/PATCHES	(nonexistent)
+++ X11/libs/librsvg/2.40.5/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/GNOME/core/librsvg/patches/librsvg-2.40.5-no-eps.patch -p0
Index: X11/libs/librsvg/2.40.5/librsvg-pkg-description.in
===================================================================
--- X11/libs/librsvg/2.40.5/librsvg-pkg-description.in	(nonexistent)
+++ X11/libs/librsvg/2.40.5/librsvg-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+       |-----handy-ruler------------------------------------------------------|
+librsvg: librsvg @VERSION@ (SVG library)
+librsvg:
+librsvg: Library for handling SVG (Scalable Vector Graphics).
+librsvg:
+librsvg:
+librsvg:
+librsvg:
+librsvg:
+librsvg:
+librsvg:
+librsvg:
Index: X11/libs/librsvg/2.40.5-x86_32/Makefile
===================================================================
--- X11/libs/librsvg/2.40.5-x86_32/Makefile	(nonexistent)
+++ X11/libs/librsvg/2.40.5-x86_32/Makefile	(revision 563)
@@ -0,0 +1,197 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/GNOME/core/librsvg
+
+REQUIRES           = X11/libs/librsvg/2.40.5
+REQUIRES          += X11/libs/gdk-pixbuf2/2.31.1-x86_32
+REQUIRES          += libs/libcroco/0.6.8-x86_32
+REQUIRES          += libs/pango/1.36.8-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.40.5
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNOME/core/librsvg/librsvg-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/librsvg-$(version)
+src_dir_name       = librsvg-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBRSVG_32_PKG_NAME                = librsvg-x32
+LIBRSVG_32_PKG_VERSION             = 2.40.5
+LIBRSVG_32_PKG_ARCH                = $(TOOLCHAIN)
+LIBRSVG_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBRSVG_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBRSVG_32_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+LIBRSVG_32_PKG_SHORT_DESCRIPTION   = SVG library
+LIBRSVG_32_PKG_URL                 = $(BUG_URL)
+LIBRSVG_32_PKG_LICENSE             = GPLv2
+LIBRSVG_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBRSVG_32_PKG_NAME)-pkg-description
+LIBRSVG_32_PKG_DESCRIPTION_FILE_IN = $(LIBRSVG_32_PKG_NAME)-pkg-description.in
+LIBRSVG_32_PKG_INSTALL_SCRIPT      = $(LIBRSVG_32_PKG_NAME)-pkg-install.sh
+
+LIBRSVG_32_PKG   = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBRSVG_32_PKG_NAME)-package
+
+pkg_basename     = $(LIBRSVG_32_PKG_NAME)-$(LIBRSVG_32_PKG_VERSION)-$(LIBRSVG_32_PKG_ARCH)-$(LIBRSVG_32_PKG_DISTRO_NAME)-$(LIBRSVG_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(LIBRSVG_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+extra_configure_switches += --enable-introspection=no
+extra_configure_switches += --enable-gtk-doc=no
+extra_configure_switches += --enable-vala=no
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	# ======= Disable rsvg-view-3 (required GTK+ v3) =======
+	@( cd $(build_dir) ; \
+	   sed -i "s,^am__append_1,#am_append_1,g" Makefile ; \
+	   sed -i "s,^am__EXEEXT_1,#am_EXEEXT_1,g" Makefile ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBRSVG_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(LIBRSVG_32_PKG)/usr/include
+	@rm -rf $(LIBRSVG_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBRSVG_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" librsvg-?.la ; \
+	 )
+	@( cd $(LIBRSVG_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gdk-pixbuf-?.?/?.??.?/loaders ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libpixbufloader-svg.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBRSVG_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" librsvg-?.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" librsvg-?.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/gdk-pixbuf-?.?/?.??.?/loaders ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libpixbufloader-svg.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libpixbufloader-svg.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" librsvg-?.?.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBRSVG_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(LIBRSVG_32_PKG)/usr/bin/32 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(LIBRSVG_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(LIBRSVG_32_PKG_DESCRIPTION_FILE): $(LIBRSVG_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(LIBRSVG_32_PKG_DESCRIPTION_FILE) $(LIBRSVG_32_PKG_INSTALL_SCRIPT)
+	@cp $(LIBRSVG_32_PKG_DESCRIPTION_FILE) $(LIBRSVG_32_PKG)/.DESCRIPTION
+	@cp $(LIBRSVG_32_PKG_INSTALL_SCRIPT) $(LIBRSVG_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBRSVG_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBRSVG_32_PKG_NAME)"                            >  $(LIBRSVG_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBRSVG_32_PKG_VERSION)"                          >> $(LIBRSVG_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBRSVG_32_PKG_ARCH)"                               >> $(LIBRSVG_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBRSVG_32_PKG_DISTRO_NAME)"                  >> $(LIBRSVG_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBRSVG_32_PKG_DISTRO_VERSION)"                >> $(LIBRSVG_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBRSVG_32_PKG_GROUP)"                             >> $(LIBRSVG_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBRSVG_32_PKG_SHORT_DESCRIPTION)\"" >> $(LIBRSVG_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBRSVG_32_PKG_URL)"                                 >> $(LIBRSVG_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBRSVG_32_PKG_LICENSE)"                         >> $(LIBRSVG_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(LIBRSVG_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/librsvg/2.40.5-x86_32/librsvg-x32-pkg-install.sh
===================================================================
--- X11/libs/librsvg/2.40.5-x86_32/librsvg-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/librsvg/2.40.5-x86_32/librsvg-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  # Notice we use an absolute path below, rather than usr/bin/gdk-pixbuf-query-loaders-32.
+  # This is because we're testing to see if we are on the bootdisk, which will not have
+  # /usr/bin/gdk-pixbuf-query-loaders-32.
+  # Also we have to check that we are not in the installer mode on the target system
+  # ("/etc/system-installer"), and we have to be sure that we are on the working system
+  # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+  if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a -x /usr/bin/gdk-pixbuf-query-loaders-32 ]; then
+    /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache
+  fi
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  post_install
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/librsvg/2.40.5-x86_32/librsvg-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/librsvg/2.40.5-x86_32/PATCHES
===================================================================
--- X11/libs/librsvg/2.40.5-x86_32/PATCHES	(nonexistent)
+++ X11/libs/librsvg/2.40.5-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/GNOME/core/librsvg/patches/librsvg-2.40.5-no-eps.patch -p0
Index: X11/libs/librsvg/2.40.5-x86_32/librsvg-x32-pkg-description.in
===================================================================
--- X11/libs/librsvg/2.40.5-x86_32/librsvg-x32-pkg-description.in	(nonexistent)
+++ X11/libs/librsvg/2.40.5-x86_32/librsvg-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+           |-----handy-ruler------------------------------------------------------|
+librsvg-x32: librsvg-x32 @VERSION@ (x86_32 SVG library)
+librsvg-x32:
+librsvg-x32: Library for handling SVG (Scalable Vector Graphics).
+librsvg-x32:
+librsvg-x32:
+librsvg-x32:
+librsvg-x32:
+librsvg-x32:
+librsvg-x32:
+librsvg-x32:
+librsvg-x32:
Index: X11/libs/mtdev/1.1.5/Makefile
===================================================================
--- X11/libs/mtdev/1.1.5/Makefile	(nonexistent)
+++ X11/libs/mtdev/1.1.5/Makefile	(revision 563)
@@ -0,0 +1,199 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/mtdev
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/4.9.2
+else
+ifneq ($(HARDWARE),$(HARDWARE_PC64))
+REQUIRES           = libs/glibc/2.21
+else
+REQUIRES           = libs/glibc/2.21-x86_32
+endif
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.1.5
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/mtdev/mtdev-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/mtdev-$(version)
+src_dir_name       = mtdev-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+MTDEV_PKG_NAME                = mtdev
+MTDEV_PKG_VERSION             = 1.1.5
+MTDEV_PKG_ARCH                = $(TOOLCHAIN)
+MTDEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+MTDEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+MTDEV_PKG_GROUP               = $(PKG_GROUP)
+###                            |---handy-ruler-------------------------------|
+MTDEV_PKG_SHORT_DESCRIPTION   = Multitouch Protocol Translation Library
+MTDEV_PKG_URL                 = $(BUG_URL)
+MTDEV_PKG_LICENSE             = custom
+MTDEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(MTDEV_PKG_NAME)-pkg-description
+MTDEV_PKG_DESCRIPTION_FILE_IN = $(MTDEV_PKG_NAME)-pkg-description.in
+MTDEV_PKG_INSTALL_SCRIPT      = $(MTDEV_PKG_NAME)-pkg-install.sh
+
+MTDEV_PKG        = $(CURDIR)/$(TARGET_BUILD_DIR)/$(MTDEV_PKG_NAME)-package
+
+pkg_basename     = $(MTDEV_PKG_NAME)-$(MTDEV_PKG_VERSION)-$(MTDEV_PKG_ARCH)-$(MTDEV_PKG_DISTRO_NAME)-$(MTDEV_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(MTDEV_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(MTDEV_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(MTDEV_PKG)/usr/share/man ]; then \
+	  ( cd $(MTDEV_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(MTDEV_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(MTDEV_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(MTDEV_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING INSTALL README \
+	         $(MTDEV_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(MTDEV_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(MTDEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libmtdev.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(MTDEV_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libmtdev.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libmtdev.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" mtdev.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(MTDEV_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(MTDEV_PKG_DESCRIPTION_FILE): $(MTDEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(MTDEV_PKG_DESCRIPTION_FILE) $(MTDEV_PKG_INSTALL_SCRIPT)
+	@cp $(MTDEV_PKG_DESCRIPTION_FILE) $(MTDEV_PKG)/.DESCRIPTION
+	@cp $(MTDEV_PKG_INSTALL_SCRIPT) $(MTDEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(MTDEV_PKG)/.REQUIRES
+	@echo "pkgname=$(MTDEV_PKG_NAME)"                            >  $(MTDEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(MTDEV_PKG_VERSION)"                          >> $(MTDEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(MTDEV_PKG_ARCH)"                               >> $(MTDEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(MTDEV_PKG_DISTRO_NAME)"                  >> $(MTDEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(MTDEV_PKG_DISTRO_VERSION)"                >> $(MTDEV_PKG)/.PKGINFO ; \
+	 echo "group=$(MTDEV_PKG_GROUP)"                             >> $(MTDEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(MTDEV_PKG_SHORT_DESCRIPTION)\"" >> $(MTDEV_PKG)/.PKGINFO ; \
+	 echo "url=$(MTDEV_PKG_URL)"                                 >> $(MTDEV_PKG)/.PKGINFO ; \
+	 echo "license=$(MTDEV_PKG_LICENSE)"                         >> $(MTDEV_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(MTDEV_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/mtdev/1.1.5/mtdev-pkg-install.sh
===================================================================
--- X11/libs/mtdev/1.1.5/mtdev-pkg-install.sh	(nonexistent)
+++ X11/libs/mtdev/1.1.5/mtdev-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/mtdev/1.1.5/mtdev-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/mtdev/1.1.5/PATCHES
===================================================================
Index: X11/libs/mtdev/1.1.5/mtdev-pkg-description.in
===================================================================
--- X11/libs/mtdev/1.1.5/mtdev-pkg-description.in	(nonexistent)
+++ X11/libs/mtdev/1.1.5/mtdev-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+     |-----handy-ruler------------------------------------------------------|
+mtdev: mtdev @VERSION@ (Multitouch Protocol Translation Library)
+mtdev:
+mtdev: The mtdev is a stand-alone library which transforms all variants of
+mtdev: kernel MT events to the slotted type B protocol. The events put into
+mtdev: mtdev may be from any MT device, specifically type A without contact
+mtdev: tracking, type A with contact tracking, or type B with contact
+mtdev: tracking. See the kernel documentation for further details.
+mtdev:
+mtdev:
+mtdev:
+mtdev:
Index: X11/libs/mtdev/1.1.5-x86_32/Makefile
===================================================================
--- X11/libs/mtdev/1.1.5-x86_32/Makefile	(nonexistent)
+++ X11/libs/mtdev/1.1.5-x86_32/Makefile	(revision 563)
@@ -0,0 +1,154 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/mtdev
+
+REQUIRES           = X11/libs/mtdev/1.1.5
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.1.5
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/x/mtdev/mtdev-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/mtdev-$(version)
+src_dir_name       = mtdev-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+MTDEV_32_PKG_NAME                = mtdev-x32
+MTDEV_32_PKG_VERSION             = 1.1.5
+MTDEV_32_PKG_ARCH                = $(TOOLCHAIN)
+MTDEV_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+MTDEV_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+MTDEV_32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+MTDEV_32_PKG_SHORT_DESCRIPTION   = Multitouch Protocol Translation Library
+MTDEV_32_PKG_URL                 = $(BUG_URL)
+MTDEV_32_PKG_LICENSE             = custom
+MTDEV_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(MTDEV_32_PKG_NAME)-pkg-description
+MTDEV_32_PKG_DESCRIPTION_FILE_IN = $(MTDEV_32_PKG_NAME)-pkg-description.in
+MTDEV_32_PKG_INSTALL_SCRIPT      = $(MTDEV_32_PKG_NAME)-pkg-install.sh
+
+MTDEV_32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(MTDEV_32_PKG_NAME)-package
+
+pkg_basename     = $(MTDEV_32_PKG_NAME)-$(MTDEV_32_PKG_VERSION)-$(MTDEV_32_PKG_ARCH)-$(MTDEV_32_PKG_DISTRO_NAME)-$(MTDEV_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(MTDEV_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(MTDEV_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(MTDEV_32_PKG)/usr/include
+	@rm -rf $(MTDEV_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(MTDEV_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libmtdev.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(MTDEV_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libmtdev.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libmtdev.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" mtdev.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(MTDEV_32_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(MTDEV_32_PKG_DESCRIPTION_FILE): $(MTDEV_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(MTDEV_32_PKG_DESCRIPTION_FILE) $(MTDEV_32_PKG_INSTALL_SCRIPT)
+	@cp $(MTDEV_32_PKG_DESCRIPTION_FILE) $(MTDEV_32_PKG)/.DESCRIPTION
+	@cp $(MTDEV_32_PKG_INSTALL_SCRIPT) $(MTDEV_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(MTDEV_32_PKG)/.REQUIRES
+	@echo "pkgname=$(MTDEV_32_PKG_NAME)"                            >  $(MTDEV_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(MTDEV_32_PKG_VERSION)"                          >> $(MTDEV_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(MTDEV_32_PKG_ARCH)"                               >> $(MTDEV_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(MTDEV_32_PKG_DISTRO_NAME)"                  >> $(MTDEV_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(MTDEV_32_PKG_DISTRO_VERSION)"                >> $(MTDEV_32_PKG)/.PKGINFO ; \
+	 echo "group=$(MTDEV_32_PKG_GROUP)"                             >> $(MTDEV_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(MTDEV_32_PKG_SHORT_DESCRIPTION)\"" >> $(MTDEV_32_PKG)/.PKGINFO ; \
+	 echo "url=$(MTDEV_32_PKG_URL)"                                 >> $(MTDEV_32_PKG)/.PKGINFO ; \
+	 echo "license=$(MTDEV_32_PKG_LICENSE)"                         >> $(MTDEV_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(MTDEV_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/mtdev/1.1.5-x86_32/mtdev-x32-pkg-install.sh
===================================================================
--- X11/libs/mtdev/1.1.5-x86_32/mtdev-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/mtdev/1.1.5-x86_32/mtdev-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/mtdev/1.1.5-x86_32/mtdev-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/mtdev/1.1.5-x86_32/PATCHES
===================================================================
Index: X11/libs/mtdev/1.1.5-x86_32/mtdev-x32-pkg-description.in
===================================================================
--- X11/libs/mtdev/1.1.5-x86_32/mtdev-x32-pkg-description.in	(nonexistent)
+++ X11/libs/mtdev/1.1.5-x86_32/mtdev-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+         |-----handy-ruler------------------------------------------------------|
+mtdev-x32: mtdev-x32 @VERSION@ (x86_32 Multitouch Protocol Translation Library)
+mtdev-x32:
+mtdev-x32: The mtdev is a stand-alone library which transforms all variants of
+mtdev-x32: kernel MT events to the slotted type B protocol. The events put into
+mtdev-x32: mtdev may be from any MT device, specifically type A without contact
+mtdev-x32: tracking, type A with contact tracking, or type B with contact
+mtdev-x32: tracking. See the kernel documentation for further details.
+mtdev-x32:
+mtdev-x32:
+mtdev-x32:
+mtdev-x32:
Index: X11/libs/netpbm/10.68.01/Makefile
===================================================================
--- X11/libs/netpbm/10.68.01/Makefile	(nonexistent)
+++ X11/libs/netpbm/10.68.01/Makefile	(revision 563)
@@ -0,0 +1,202 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/l/netpbm
+SOURCE_REQUIRES   += sources/packages/l/netpbm-doc
+
+REQUIRES           = libs/zlib/1.2.8
+REQUIRES          += app/xz/5.0.5
+REQUIRES          += libs/libxml2/2.9.1
+REQUIRES          += app/jbigkit/2.1
+REQUIRES          += libs/libpng/libpng14/1.4.13
+REQUIRES          += libs/libtiff/4.0.3
+REQUIRES          += libs/libjpeg-turbo/1.3.1
+REQUIRES          += X11/X.org/lib/libX11/1.6.2
+#
+# Runtime required packages:
+#
+REQUIRES          += dev/perl/5.18.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 10.68.01
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/l/netpbm/netpbm-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/netpbm-$(version)
+src_dir_name       = netpbm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+doc_version         = 20141125
+tar_bz2_doc_archive = $(SRC_PACKAGE_PATH)/packages/l/netpbm-doc/netpbm-doc-$(doc_version).tar.bz2
+
+config_in          = $(CURDIR)/config/config.mk.in
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+NETPBM_PKG_NAME                = netpbm
+NETPBM_PKG_VERSION             = 10.68.01
+NETPBM_PKG_ARCH                = $(TOOLCHAIN)
+NETPBM_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+NETPBM_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+NETPBM_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+NETPBM_PKG_SHORT_DESCRIPTION   = graphics conversion utilities
+NETPBM_PKG_URL                 = $(BUG_URL)
+NETPBM_PKG_LICENSE             = GPLv2
+NETPBM_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(NETPBM_PKG_NAME)-pkg-description
+NETPBM_PKG_DESCRIPTION_FILE_IN = $(NETPBM_PKG_NAME)-pkg-description.in
+NETPBM_PKG_INSTALL_SCRIPT      = $(NETPBM_PKG_NAME)-pkg-install.sh
+
+NETPBM_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(NETPBM_PKG_NAME)-package
+
+pkg_basename     = $(NETPBM_PKG_NAME)-$(NETPBM_PKG_VERSION)-$(NETPBM_PKG_ARCH)-$(NETPBM_PKG_DISTRO_NAME)-$(NETPBM_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+configure_switches  = CC_FOR_BUILD=/usr/bin/gcc
+configure_switches += LD_FOR_BUILD=/usr/bin/gcc
+configure_switches += CFLAGS_FOR_BUILD=-I/usr/include
+configure_switches += LDFLAGS_FOR_BUILD=-L/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@echo "Expanding $(tar_bz2_doc_archive)"
+	@tar xjf $(tar_bz2_doc_archive) -C $(TARGET_BUILD_DIR)
+	@cd $(TARGET_BUILD_DIR); ln -sf netpbm-doc-$(doc_version) userguide
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   cp $(config_in) config.mk ; \
+	   echo "NETPBM_DOCURL = file://$(CURDIR)/$(TARGET_BUILD_DIR)/userguide" >> config.mk ; \
+	   sed -i 's|misc|share/netpbm|' common.mk ; \
+	   sed -i 's|/link|/lib|' lib/Makefile ; \
+	   sed -i 's|install.manwebmain install.manweb install.man|install.man|' GNUmakefile ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(configure_switches) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(configure_switches) \
+	                                MAKEMAN="$(CURDIR)/$(SRC_DIR)/buildtools/makeman" USERGUIDE=../userguide \
+	                                -C ../userguide -f "$(CURDIR)/$(SRC_DIR)/buildtools/manpage.mk" manpages ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(NETPBM_PKG)/usr/share/man/man{1,3,5}
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(configure_switches) \
+	                                pkgdir=$(NETPBM_PKG)/usr \
+	                                PKGMANDIR=share/man install-run install-dev ; \
+	   rm $(NETPBM_PKG)/usr/share/man/man{1,3,5}/* ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(configure_switches) \
+	                                MAKEMAN="$(CURDIR)/$(SRC_DIR)/buildtools/makeman" \
+	                                MANDIR=$(NETPBM_PKG)/usr/share/man \
+	                                -C ../userguide -f "$(CURDIR)/$(SRC_DIR)/buildtools/manpage.mk" installman ; \
+	 )
+	@( cd $(NETPBM_PKG)/usr ; \
+	   if [ "$(LIBSUFFIX)" != "" ] ; then \
+	     mv lib lib$(LIBSUFFIX) ; \
+	   fi ; \
+	 )
+	@( cd $(NETPBM_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   rm -f libnetpbm.so ; \
+	   ln -sf libnetpbm.so.?? libnetpbm.so ; \
+	 )
+	# ======= Remove obsolete utility =======
+	@echo -e '#!/bin/sh\n\npamditherbw $$@ | pamtopnm' > $(NETPBM_PKG)/usr/bin/pgmtopbm
+	# ======= Install Documentation =======
+	@mkdir -p $(NETPBM_PKG)/usr/doc/$(src_dir_name)
+	@( cd $(SRC_DIR)/doc ; \
+	   cp -a COPYRIGHT.PATENT copyright_summary patent_summary *.txt \
+	         $(NETPBM_PKG)/usr/doc/$(src_dir_name) ; \
+	 )
+	@mkdir -p $(NETPBM_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR)/doc ; \
+	   cp -a ../README COPYRIGHT.PATENT INSTALL Netpbm.programming \
+	         README.CYGWIN TESTS USERDOC copyright_summary patent_summary *.txt \
+	         $(NETPBM_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR)/doc ; \
+	   if [ -r HISTORY ]; then \
+	     DOCSDIR=`echo $(NETPBM_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat HISTORY | head -n 1000 > $$DOCSDIR/HISTORY ; \
+	     touch -r HISTORY $$DOCSDIR/HISTORY ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(NETPBM_PKG))
+	# ======= Strip binaries =======
+	@( cd $(NETPBM_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(NETPBM_PKG_DESCRIPTION_FILE): $(NETPBM_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(NETPBM_PKG_DESCRIPTION_FILE) $(NETPBM_PKG_INSTALL_SCRIPT)
+	@cp $(NETPBM_PKG_DESCRIPTION_FILE) $(NETPBM_PKG)/.DESCRIPTION
+	@cp $(NETPBM_PKG_INSTALL_SCRIPT) $(NETPBM_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(NETPBM_PKG)/.REQUIRES
+	@echo "pkgname=$(NETPBM_PKG_NAME)"                            >  $(NETPBM_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(NETPBM_PKG_VERSION)"                          >> $(NETPBM_PKG)/.PKGINFO ; \
+	 echo "arch=$(NETPBM_PKG_ARCH)"                               >> $(NETPBM_PKG)/.PKGINFO ; \
+	 echo "distroname=$(NETPBM_PKG_DISTRO_NAME)"                  >> $(NETPBM_PKG)/.PKGINFO ; \
+	 echo "distrover=$(NETPBM_PKG_DISTRO_VERSION)"                >> $(NETPBM_PKG)/.PKGINFO ; \
+	 echo "group=$(NETPBM_PKG_GROUP)"                             >> $(NETPBM_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(NETPBM_PKG_SHORT_DESCRIPTION)\"" >> $(NETPBM_PKG)/.PKGINFO ; \
+	 echo "url=$(NETPBM_PKG_URL)"                                 >> $(NETPBM_PKG)/.PKGINFO ; \
+	 echo "license=$(NETPBM_PKG_LICENSE)"                         >> $(NETPBM_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(NETPBM_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/netpbm/10.68.01/netpbm-pkg-install.sh
===================================================================
--- X11/libs/netpbm/10.68.01/netpbm-pkg-install.sh	(nonexistent)
+++ X11/libs/netpbm/10.68.01/netpbm-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/netpbm/10.68.01/netpbm-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/netpbm/10.68.01/PATCHES
===================================================================
--- X11/libs/netpbm/10.68.01/PATCHES	(nonexistent)
+++ X11/libs/netpbm/10.68.01/PATCHES	(revision 563)
@@ -0,0 +1,5 @@
+
+../../../../sources/packages/l/netpbm/patches/netpbm-10.68.01-security-code.patch    -p0
+../../../../sources/packages/l/netpbm/patches/netpbm-10.68.01-security-scripts.patch -p0
+../../../../sources/packages/l/netpbm/patches/netpbm-10.68.01-CAN-2005-2471.patch    -p0
+../../../../sources/packages/l/netpbm/patches/netpbm-10.68.01-make.patch             -p0
Index: X11/libs/netpbm/10.68.01/config/config.mk.in
===================================================================
--- X11/libs/netpbm/10.68.01/config/config.mk.in	(nonexistent)
+++ X11/libs/netpbm/10.68.01/config/config.mk.in	(revision 563)
@@ -0,0 +1,669 @@
+# This is a make file inclusion, to be included in all the Netpbm make
+# files.
+
+# This file is meant to contain variable settings that customize the
+# build for a particular target system configuration.
+
+# The distribution contains the file config.mk.in.  You edit
+# config.mk.in in ways relevant to your particular environment 
+# to create config.mk.  The "configure" program will do this
+# for you in simple cases.
+
+# Some of the variables that the including make file must set for this
+# file to work:
+#
+#  SRCDIR: The directory at the top of the Netpbm source tree.  Note that
+#  this is typically a relative directory, and it must be relative to the
+#  make file that includes this file.
+
+DEFAULT_TARGET = nonmerge
+#DEFAULT_TARGET = merge
+
+# Fiasco has some special requirements that make it fail to compile on
+# some systems, and since it isn't very important, just set this to "N"
+# and skip it on those systems unless you want to debug it and fix it.
+# OpenBSD:
+#BUILD_FIASCO = N
+BUILD_FIASCO = Y
+
+# The following are commands for the build process to use.  These values
+# do not get built into anything.
+
+# The C compiler (including macro preprocessor)
+#CC = gcc
+# Note that 'cc' is usually an alias for whatever is the main compiler
+# on a system, e.g. the GNU Compiler on Linux.
+# CC = cc
+
+# The linker.
+LD = $(CC)
+#LD = ld
+#Tru64:
+#LD = cc
+#LD = gcc 
+
+#If the linker identified above is a compiler that invokes a linker
+#(as in 'cc foo.o -o foo'), set LINKERISCOMPILER.  The main difference is
+#that we expect a compiler to take linker options in the '-Wl,-opt1,val1'
+#syntax whereas the actual linker would take '-opt1 val1'.
+LINKERISCOMPILER=Y
+#If $(LD) is 'ld':
+#LINKERISCOMPILER=N
+
+#LINKER_CAN_DO_EXPLICIT_LIBRARY means the linker specified above can
+#take a library as just another link object argument, as in 'ld
+#pnmtojpeg.o /usr/local/lib/libjpeg.so ...'  as opposed to requiring a
+#-l option as in 'ld pnmtojpeg.o -L/usr/local/lib -l jpeg'.
+#This variable controls how 'libopt' gets built.  Note that with some
+#linkers, you can specify a shared library explicitly, but then it has
+#to live in that exact place at run time.  That's not good enough for us.
+
+#LINKER_CAN_DO_EXPLICIT_LIBRARY=N
+#GNU:
+LINKER_CAN_DO_EXPLICIT_LIBRARY=Y
+
+# This is the name of the header file that declares the types
+# uint32_t, etc.  This name is used as #include $(INTTYPES_H)  .
+# Set to null if the types come automatically without including anything.
+
+# We have a report (2005.09.17) that on IRIX 5.3 with the native IDO
+# cc, inttypes.h and sys/types.h conflict (and Netpbm programs include
+# sys/types for other things), so for that environment, <inttypes.h>
+# won't work, but "inttypes_netpbm.h" might.
+
+INTTYPES_H = <inttypes.h>
+# Linux libc5:
+#INTTYPES_H = <types.h>
+# Solaris:
+# Solaris has <sys/inttypes.h>, but it doesn't define int_fast2_t, etc.
+#INTTYPES_H = "inttypes_netpbm.h"
+# Others:
+#INTTYPES_H = <sys/stdint.h>
+#INTTYPES_H = <sys/types.h>
+# The automatically generated Netpbm version:
+#INTTYPES_H = "inttypes_netpbm.h"
+
+# HAVE_INT64 tells whether, assuming you include the header indicated by
+# INTTYPES_H, you have the int64_t type and related stuff.  (If you don't
+# the build will omit certain code that does 64 bit computations).
+HAVE_INT64 = Y
+#HAVE_INT64 = N
+
+# WANT_SSE tells whether the build should use SSE instructions, via the the
+# standard SSE intrinsics (operators such as '_mm_movemask_epi8').  SSE
+# instructions are faster than traditional instructions, but aren't available
+# on all CPUs.  Also, the standard intrinsics are not available in all
+# compilers.  Even if you say N here, Netpbm may still be built with some
+# SSE exploitation (e.g. SSE floating point) because the compiler will 
+# do it automatically.  You can add a -nomsse or -nomsse2 option to
+# CFLAGS or CFLAGS_PERSONAL to stop that.
+WANT_SSE = N
+#WANT_SSE = Y
+
+# CC and LD are for building the Netpbm programs, which are not necessarily
+# intended to run on the same system on which Make is running.  But when we 
+# build a build tool such as Libopt, it is meant to run only on the same 
+# system on which the Make is running.  The variables below define programs
+# to use to compile and link build tools.
+CC_FOR_BUILD = /usr/bin/gcc
+LD_FOR_BUILD = /usr/bin/gcc
+#CFLAGS_FOR_BUILD = $(CFLAGS_CONFIG)
+#LDFLAGS_FOR_BUILD = $(LDFLAGS)
+
+# MAKE is set automatically by Make to what was used to invoke Make.
+
+INSTALL = $(SRCDIR)/buildtools/install.sh
+#Solaris:
+#INSTALL = /usr/ucb/install
+#Tru64:
+#INSTALL = installbsd
+#OSF1:
+#INSTALL = $(SRCDIR)/buildtools/installosf
+#Red Hat Linux:
+#INSTALL = install
+
+# STRIPFLAG is the option you pass to the above install program to make it
+# strip unnecessary information out of binaries.
+#STRIPFLAG = -s
+# If you don't want to strip the binaries, just leave it null:
+#STRIPFLAG = 
+
+SYMLINK = ln -s
+# At least some Windows environments don't have any concept of symbolic
+# links, but direct copies are usually a passable alternative.
+#SYMLINK = cp
+
+#MANPAGE_FORMAT is "nroff" or "cat".  It determines in what format the
+#pointer man pages are installed (ready to nroff, or ready to cat).  
+#A pointer man pages is just a single-paragraph pages that tells you there is
+#no man page for the program, to look at the HTML documentation instead.
+MANPAGE_FORMAT = nroff
+#MANPAGE_FORMAT = cat
+
+# AR = ar
+# RANLIB = ranlib
+# IRIX, SCO don't have Ranlib:
+#RANLIB = true
+
+# LEX is the beginning of a shell command that runs a Lex-like
+# pattern matcher generator.  Null string means there isn't any such
+# command.  That means the build will skip parts that need one.
+
+LEX = flex
+# Solaris:
+# LEX = flex -e
+# Windows Mingw:
+# LEX =
+# 
+# LEX = lex
+
+# C compiler options 
+
+# gcc:
+# -ansi and -Werror should work too, but are not included
+# by default because there's no point in daring the build to fail.
+# -pedantic isn't a problem because it causes at worst a warning.
+
+CFLAGS += -O3 -ffast-math -pedantic -fno-common \
+          -Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit \
+          -Wwrite-strings -Wmissing-prototypes -Wundef -Wno-unknown-pragmas
+
+# The merged programs have a main_XXX subroutine instead of main(),
+# which would cause a warning with -Wmissing-declarations or 
+# -Wmissing-prototypes.
+
+CFLAGS_MERGE += -Wno-missing-declarations -Wno-missing-prototypes
+
+# A user of DEC Tru64 4.0F in May 2000 needed -DLONG_32 for ppmtompeg,
+# but word size-sensitive code was removed from parallel.c in September 2004.
+# A user of Tru64 5.1A in July 2003 needed NOT to have -DLONG_32.  In
+# theory, you need this if on your system, long is 32 bits and int is not.
+# But it may be completely irrelevant today.
+#Tru64:
+#CFLAGS = -O2 -std1 -DLONG_32
+#CFLAGS = -O2 -std1
+#AIX:
+#CFLAGS= -O3
+#HP-UX:
+#CFLAGS= -O3 -fPIC
+#IRIX:
+#CFLAGS= -n32 -O3
+#Amiga with GNU compiler:
+#CFLAGS= -m68020-60 -ffast-math -mstackextend 
+# You can add -noixemul for Amiga and successfully compile most of the 
+# programs.  (Of the remaining ones, if you can supply your own strtod() 
+# function, most of them will build with -noixemul).  So try building 
+# with 'make --keep-going CADD=-noixemul' first, then just 'make' to build
+# everything that failed for lack of the ixemul library in the first step.
+# That way, the parts that don't required the ixemul library won't indicate
+# a dependency on it.
+#OpenBSD:
+#CFLAGS = -I/usr/local/include
+
+# EXE is a suffix that the linker puts on any executable it generates.
+# In cygwin, this is .exe and most programs deal with its existence without
+# us having to know about it.  Some don't though, so set this:
+
+EXE =
+#Cygwin, DJGPP/Windows:
+#EXE = .exe
+  
+# linker options.  
+
+# LDFLAGS is often set as an environment variable;  A setting here overrides
+# it.  So either make sure you want to override it, or do a "LDFLAGS +=" here.
+
+# LDFLAGS is usually not the right place for a -L option, because we put
+# LDFLAGS _before_ our own -L options, so it would cancel out our
+# specific selection of libraries.  For example, if you say
+# LDFLAGS=/usr/local/lib and an old copy of the libnetpbm is in
+# /usr/local/lib, then you'd be linking against that old copy instead of
+# the copy you just built, which is located by a -L option later on the
+# link command.  LIBS is the right variable for adding -L options.  LIBS
+# goes after any of our make files' own -L options.
+
+# Eunice users may want to use -noshare so that the executables can
+# run standalone:
+#LDFLAGS += -noshare
+#Tru64:
+# Russ Allberry says on 2001.06.09 that -oldstyle_liblookup may be necessary
+# to keep from finding an ancient system libjpeg.so that isn't compatible with
+# NetPBM.  Michael Long found that /usr/local/lib is not in the default
+# search path, or not soon enough, and he was getting an old libjpeg that
+# caused all the jpeg symbol references to be unresolved.  He had installed
+# a new libjpeg in /usr/local/lib.
+#LDFLAGS += -call_shared -oldstyle_liblookup -L/usr/local/lib
+#AIX:
+#LDFLAGS += -L /usr/pubsw/lib
+#HP-UX:
+#LDFLAGS += -Wl,+b,/usr/pubsw/lib
+#IRIX:
+#LDFLAGS += -n32
+
+# Linker options for created Netpbm shared libraries.
+
+# Here, $(SONAME) resolves to the soname for the shared library being created.
+# The following are gcc options.  This works on GNU libc systems.
+LDSHLIB = -shared -Wl,-soname,$(SONAME)
+# You need -nostart instead of -shared on BeOS.  Though the BeOS compiler is
+# ostensibly gcc, it has the -nostart option, which is not mentioned in gcc
+# documentation and doesn't exist in at least one non-BeOS installation.
+# BeOS doesn't have sonames built in.
+#LDSHLIB = -nostart
+#LDSHLIB = -G
+# Solaris, SunOS with GNU Ld, SCO:
+# These systems have no soname option.
+#LDSHLIB = -shared
+# Solaris with Sun Ld:
+#LDSHLIB = -Wl,-Bdynamic,-G,-h,$(SONAME) 
+#Tru64:
+#LDSHLIB = -shared -expect_unresolved "*"
+#IRIX:
+#LDSHLIB = -shared -n32
+#AIX GNU compiler/linker:
+#LDSHLIB = -shared
+#AIX Visual Age C:
+#LDSHLIB = -qmkshrobj
+#Mac OSX:
+# According to experiments done by Peter A Crowley in May 2007, if
+# libnetpbm goes in a standard place such as /usr/local/lib,
+# programs need not be built with libnetpbm's location included.
+# But if it goes elsewhere, the link-editor must include the
+# location in the executable.  It finds the runtime location by
+# looking inside the library.  The information in the library
+# comes from the install_name option with which the library was
+# built.  It's an alternative to the -rpath option on other systems.
+#LDSHLIB=-dynamiclib
+#LDSHLIB=-dynamiclib -install_name $(NETPBMLIB_RUNTIME_PATH)/libnetpbm.$(MAJ).dylib
+
+# LDRELOC is the command to combine two .o files (relocateable object files)
+# into a single .o file that can later be linked into something else.  NONE
+# means no such command is available.
+
+LDRELOC = NONE
+# GNU Ld:
+# Older GNU Ld misspells the option as --relocateable.  Newer GNU Ld
+# correctly spells it --relocatable.  The abbreviation --reloc works on
+# both.
+#LDRELOC = ld --reloc
+#LDRELOC = ld -r
+
+
+# On older systems, you have to make shared libraries out of position
+# independent code, so you need -fpic or fPIC here.  (The rule is: if
+# -fpic works, use it.  If it bombs, go to fPIC).  On newer systems,
+# it isn't necessary, but can save real memory at the expense of
+# execution speed.  Without position independent code, the library
+# loader may have to patch addresses into the executable text.  On an
+# older system, this would cause a program crash because the loader
+# would be writing into read-only shared memory.  But on newer
+# systems, the system silently creates a private mapping of the page
+# or segment being modified (the "copy on write" phenomenon).  So it
+# needs its own private real page frame.  In one experiment, A second
+# copy of Pbmtext used 16K less real memory when built with -fpic than
+# when built without.  2001.06.02.
+
+# We have seen -fPIC required on IA64 and AMD64 machines (GNU
+# compiler/linker).  Build-time linking fails without it.  I don't
+# know why -- history seems to be repeating itself.  2005.02.23.
+
+CFLAGS_SHLIB = -fPIC
+# Gcc:
+#CFLAGS_SHLIB = -fpic
+#CFLAGS_SHLIB = -fPIC
+# Sun compiler:
+#CFLAGS_SHLIB = -Kpic
+#CFLAGS_SHLIB = -KPIC
+
+# SHLIB_CLIB is the link option to include the C library in a shared library,
+# normally "-lc".  On typical systems, this serves no purpose.  On some,
+# though, it causes information about which C library to use to be recorded
+# in the shared library and thus choose the correct library among several or
+# avoid using an incompatible one.  But on some systems, the link fails.
+# On 2002.09.30, "John H. DuBois III" <spcecdt@armory.com> reports that on 
+# SCO OpenServer, he gets the following error message with -lc:
+#
+#  -lc; relocations referenced  ;  from file(s) /usr/ccs/lib/libc.so(random.o);
+#   fatal error: relocations remain against allocatable but non-writable 
+#   section: ; .text
+
+SHLIB_CLIB = -lc
+# SCO:
+#SHLIB_CLIB =
+
+# On some systems you have to build into an executable the list of
+# directories where its dynamically linked libraries can be found at
+# run time.  This is typically done with a -R or -rpath linker
+# option.  Even on systems that don't require it, you might prefer to do
+# that rather than set up environment variables or configuration files
+# to tell the system where the libraries are.  A "Y" here means to put
+# the directory information in the executable at link time.
+
+NEED_RUNTIME_PATH = N
+# Solaris, SunOS, NetBSD, AIX:
+#NEED_RUNTIME_PATH = Y
+
+# RPATHOPTNAME is the option you use on the link command to specify
+# a runtime search path for a shared library.  It is meaningless unless
+# NEED_RUNTIME_PATH is Y.
+RPATHOPTNAME = -rpath
+
+# The following variables tell where your various libraries on which
+# Netpbm depends live.  The LIBxxx variable is a full file
+# specification of the link library (not necessarily the library used
+# at run time).  e.g. "/usr/local/lib/graphics/libjpeg.so".  It usually
+# doesn't matter if the library prefix and suffix are right -- you can
+# use "lib" and ".so" or ".a" regardless of what your system actually
+# uses because these just turn into "-L" and "-l" linker options
+# anyway.  ".a" implies a static library for some purposes, though.
+# If you don't have the library in question, use a value of NONE for
+# LIBxxx and the build will simply skip the programs that require that
+# library.  If the library is in your linker's (or the Netpbm build's)
+# default search path, leave off the directory part, e.g. "libjpeg.so".
+
+# The xxxHDR_DIR variable is the directory in which the interface
+# headers for the library live (e.g. /usr/include).  If they are in your
+# compiler's default search path, set this variable to null.
+
+# This is where the Netpbm shared libraries will reside when Netpbm is
+# fully installed.  In some configurations, the Netpbm builder builds
+# this information into the Netpbm executables.  This does NOT affect
+# where the Netpbm installer installs the libraries.  A null value
+# means the libraries are in a default search path used by the runtime
+# library loader.
+NETPBMLIB_RUNTIME_PATH = 
+#NETPBMLIB_RUNTIME_PATH = /usr/lib/netpbm
+
+# The TIFF library.  See above.  If you want to build the tiff
+# converters, you must have the tiff library already installed.
+
+#TIFFLIB = NONE
+TIFFHDR_DIR =
+
+TIFFLIB = libtiff.so
+#TIFFHDR_DIR = /usr/include/libtiff
+#NetBSD:
+#TIFFLIB = $(LOCALBASE)/lib/libtiff.so
+#TIFFHDR_DIR = $(LOCALBASE)/include
+# OSF, Tru64:
+#TIFFLIB = /usr/local1/DEC/lib/libtiff.so
+#TIFFHDR_DIR = /usr/local1/DEC/include
+
+# Some TIFF libraries do Jpeg and/or Z (flate) compression and thus any
+# program linked with the TIFF library needs a Jpeg and/or Z library.  Some
+# TIFF libraries have such library statically linked in, but others need it to
+# be linked with the program at link-edit time or dynamically at program load
+# time.  Make this 'N' if your TIFF library doesn't need such linking.  As of
+# 2005.01, the most usual build of the TIFF library appears to require both.
+TIFFLIB_NEEDS_JPEG = Y
+TIFFLIB_NEEDS_Z = Y
+
+# The JPEG library.  See above.  If you want to build the jpeg
+# converters you must have the jpeg library already installed.
+
+# Tiff files can use JPEG compression, so the Tiff library can reference
+# the JPEG library.  If your Tiff library references a dynamic JPEG 
+# library, you must specify at least JPEGLIB here, or the Tiff
+# converters will not build.  Note that your Tiff library may have the
+# JPEG stuff statically linked in, in which case you won't need 
+# JPEGLIB in order to build the Tiff converters.
+
+#JPEGLIB = NONE
+JPEGHDR_DIR =
+JPEGLIB = libjpeg.so
+#JPEGHDR_DIR = /usr/include/jpeg
+# Netbsd:
+#JPEGLIB = ${LOCALBASE}/lib/libjpeg.so
+#JPEGHDR_DIR = ${LOCALBASE}/include
+# OSF, Tru64:
+#JPEGLIB = /usr/local1/DEC/libjpeg.so
+#JPEGHDR_DIR = /usr/local1/DEC/include
+# Typical:
+#JPEGLIB = /usr/local/lib/libjpeg.so
+#JPEGHDR_DIR = /usr/local/include
+# Don't build JPEG stuff:
+#JPEGLIB = NONE
+
+
+# The PNG library.  See above.  If you want to build the PNG
+# converters you must have the PNG library already installed.
+
+# The PNG library, by convention starting around April 2002, gets installed
+# with names that include a version number, such as libpng10.a and header
+# files in /usr/include/libpng10.  But there is conventionally an unnumbered
+# alias (e.g. libpng.a, /usr/include/libpng) for the preferred version.
+#
+# Recent versions of the library (since some time in the 2002-2006 period)
+# have an associated 'libpng-config' that tells how to link it.  The make
+# files will use that program if it exists (must be in the PATH).  In that
+# case, PNGLIB and PNGHDR_DIR are irrelevant, but PNGVER is still meaningful,
+# because the make file runs 'libpng$(PNGVER)-config'.
+#
+# Even more recent versions have the more modern Pkgconfig database entry
+# to tell how to link it.  The make files will try to use that first.
+#
+# The normal way to choose the libpng the Netpbm build uses from among multiple
+# versions on your system is not to mess with the variables below, but rather
+# to mess with PKG_CONFIG_PATH or PATH environment variable so that the version
+# you want to use appears first in the search path.
+
+#PNGLIB = NONE
+PNGHDR_DIR =
+PNGVER = 
+PNGLIB = libpng$(PNGVER).so
+#PNGHDR_DIR = /usr/include/libpng$(PNGVER)
+# NetBSD:
+#PNGLIB = $(LOCALBASE)/lib/libpng$(PNGVER).so
+#PNGHDR_DIR = $(LOCALBASE)/include
+# OSF/Tru64:
+#PNGLIB = /usr/local1/DEC/lib/libpng$(PNGVER).so
+#PNGHDR_DIR = /usr/local1/DEC/include
+
+# The zlib compression library.  See above.  You need it to build
+# anything that needs the PNG library (see above).  If you selected
+# NONE for the PNG library, it doesn't matter what you specify here --
+# it won't get used.
+#
+# If you have 'libpng-config' (see above), these are irrelevant.
+
+#ZLIB = NONE
+ZHDR_DIR =
+ZLIB = libz.so
+
+# The JBIG lossless image compression library (aka JBIG-KIT):
+
+#JBIGLIB = $(INTERNAL_JBIGLIB)
+#JBIGHDR_DIR = $(INTERNAL_JBIGHDR_DIR)
+
+JBIGLIB = libjbig.a
+JBIGHDR_DIR =
+
+# The Jasper JPEG-2000 image compression library (aka JasPer):
+JASPERLIB = $(INTERNAL_JASPERLIB)
+JASPERHDR_DIR = $(INTERNAL_JASPERHDR_DIR)
+# JASPERDEPLIBS is the libraries (-l options or file names) on which
+# The Jasper library depends -- i.e. what you have to link into any
+# executable that links in the Jasper library.
+JASPERDEPLIBS =
+#JASPERDEPLIBS = -ljpeg
+
+# And the Utah Raster Toolkit (aka URT aka RLE) library:
+
+URTLIB = $(BUILDDIR)/urt/librle.a
+URTHDR_DIR = $(SRCDIR)/urt
+
+# The X11 library has facilities for talking to an X Window System
+# server.  It is required by Pamx.
+
+X11LIB = libX11.so
+X11HDR_DIR =
+
+#X11LIB = /usr/lib/libX11.so
+#X11HDR_DIR =
+
+# The Linux SVGA library (Svgalib) is a facility for displaying graphics
+# on the Linux console.  It is required by Ppmsvgalib.
+
+LINUXSVGALIB = NONE
+LINUXSVGAHDR_DIR = 
+
+#LINUXSVGALIB = /usr/lib/libvga.so
+#LINUXSVGAHDR_DIR = /usr/include/vgalib
+
+# WINICON_OBJECT is the object file to bind into all Netpbm executables
+# to provide the icon for Windows to use for it.  Null for none.
+WINICON_OBJECT =
+#WINICON_OBJECT = $(BUILDDIR)/icon/netpbm.o
+
+# If you don't want any network functions, set OMIT_NETWORK to "Y".
+# The only thing that requires network functions is the option in
+# ppmtompeg to run it on multiple computers simultaneously.  On some
+# systems network functions don't work or we haven't figured out how to 
+# make them work, or they just aren't worth the effort.  
+OMIT_NETWORK =
+#DJGPP/Windows, Tru64:
+#   (there's some minor header problem that prevents network functions from 
+#   building on Tru64 2000.10.06)
+#OMIT_NETWORK = Y
+
+# These are -l options to link in the network libraries.  Often, these are
+# built into the standard C library, so this can be null.  This is irrelevant
+# if OMIT_NETWORK is "Y".
+
+NETWORKLD = 
+# Solaris, SunOS:
+#NETWORKLD = -lsocket -lnsl
+# SCO:
+#NETWORKLD = -lsocket, -lresolv
+
+# DONT_HAVE_PROCESS_MGMT is Y if this system doesn't have the usual
+# Unix process management stuff - fork, wait, etc.  N for a regular Unix
+# system.
+DONT_HAVE_PROCESS_MGMT = N
+
+# The following variables are used only by 'make install' (and the
+# variants of it).  Paths here don't, for example, get built into any
+# programs.
+
+# This is where everything goes when you do 'make package', unless you
+# override it by setting 'pkgdir' on the Make command line.
+PKGDIR_DEFAULT = /tmp/netpbm
+
+# This is where test results are written when you do 'make check', unless
+# you override it by setting 'resultdir' on the Make command line.
+RESULTDIR_DEFAULT = /tmp/netpbm-test
+
+# Subdirectory of the package directory ($(pkgdir)) in which man pages
+# go.
+PKGMANDIR = man
+
+# File permissions for installed files.
+# Note that on some systems (e.g. Solaris), 'install' can't use the 
+# mnemonic permissions - you have to use octal.
+
+# binaries (pbmmake, etc)
+INSTALL_PERM_BIN =  755       # u=rwx,go=rx
+# shared libraries (libpbm.so, etc)
+INSTALL_PERM_LIBD = 755       # u=rwx,go=rx
+# static libraries (libpbm.a, etc)
+INSTALL_PERM_LIBS = 644       # u=rw,go=r
+# header files (pbm.h, etc)
+INSTALL_PERM_HDR =  644       # u=rw,go=r
+# man pages (pbmmake.1, etc)
+INSTALL_PERM_MAN =  644       # u=rw,go=r
+# data files (pnmtopalm color maps, etc)
+INSTALL_PERM_DATA = 644       # u=rw,go=r
+
+# Specify the suffix that want the man pages to have.
+
+SUFFIXMANUALS1 = 1
+SUFFIXMANUALS3 = 3
+SUFFIXMANUALS5 = 5
+
+#NETPBMLIBTYPE tells the kind of libraries that will get built to hold the
+#Netpbm library functions.  The value is used only in make file tests.
+# "unixshared" means a unix-style shared library, typically named like 
+# libxyz.so.2.3
+NETPBMLIBTYPE = unixshared
+# "unixstatic" means a unix-style static library, (like libxyz.a)
+#NETPBMLIBTYPE = unixstatic
+# "dll" means a Windows DLL shared library
+#NETPBMLIBTYPE = dll
+# "dylib" means a Darwin/Mac OS shared library
+#NETPBMLIBTYPE = dylib
+
+#NETPBMLIBSUFFIX is the suffix used on whatever kind of library is 
+#selected above.  All this is used for is to construct library names.
+#The make files never examine the actual value.
+NETPBMLIBSUFFIX = so
+
+# "a" is the suffix for unix-style static libraries.  It is also
+# traditionally used for shared libraries on AIX.  The Visual Age C
+# manual says sometimes .so works on AIX, and GNU software for AIX
+# 5.1.0 does indeed use it.  In our experiments, it works fine if you
+# name the library file explicitly on the link, but isn't in the -l
+# search order.  If you name the library explicitly on the link, the
+# library must live in exactly the same position at run time, so we
+# can't use that.  Therefore, you cannot build both static and shared
+# libraries with AIX.  You have to choose.
+#NETPBMLIBSUFFIX = a
+# For HP-UX shared libraries:
+#NETPBMLIBSUFFIX = sl
+# Darwin/Mac OS shared library:
+#NETPBMLIBSUFFIX = dylib
+# Windows shared library:
+#NETPBMLIBSUFFIX = dll
+
+#STATICLIB_TOO is "Y" to signify that you want a static library built
+#and installed in addition to whatever library type you specified by
+#NETPBMLIBTYPE.  If NETPBMLIBTYPE specified a static library,
+#STATICLIB_TOO simply has no effect.
+STATICLIB_TOO = Y
+#STATICLIB_TOO = N
+
+#STATICLIBSUFFIX is the suffix that static libraries have.  It's
+#meaningless if you aren't building static libraries.
+STATICLIBSUFFIX = a
+
+#SHLIBPREFIXLIST is a blank-delimited list of prefixes that a filename
+#of a shared library may have on this system.  Traditionally, it's
+#just "lib", as in libc or libnetpbm.  On Windows, though, varying
+#prefixes are used when multiple alternative forms of a library are
+#available.  The first prefix in this list is what we use to name the
+#Netpbm shared libraries.
+#
+# This variable controls how 'libopt' gets built.
+#
+SHLIBPREFIXLIST = lib
+#Cygwin:
+#SHLIBPREFIXLIST = cyg lib
+
+NETPBMSHLIBPREFIX = $(firstword $(SHLIBPREFIXLIST))
+
+#DLLVER is used to version the DLLs built on cygwin or other
+#windowsish platforms.  We can't add this to LIBROOT, or we'd
+#version the static libs (which is bad).  We can't add this
+#at the end of the name (like unix does with so numbers) because
+#windows will only load dlls whose name ends in "dll".  So,
+#we have this variable, which becomes the end of the library "root" name
+#for DLLs only.
+#
+# This variable controls how 'libopt' gets built.
+#
+DLLVER =
+#Cygwin
+#DLLVER = $(NETPBM_MAJOR_RELEASE)
+
+#NETPBM_DOCURL is the URL of the main documentation page for Netpbm.
+#This is a directory which contains a file for each Netpbm program,
+#library, and file type.  E.g. The documentation for jpegtopnm might be in
+#http://netpbm.sourceforge.net/doc/jpegtopnm.html .  This value gets
+#installed in the man pages (which say no more than to read the webpage)
+#and in the Manweb netpbm.url file.
+#NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/
+#For a system with no web access, but a local copy of the doc:
+#NETPBM_DOCURL = file:/usr/doc/netpbm/
+
+# RGB_DB_PATH is where Netpbm looks for the color database when the RGBDEF
+# environment variable is not set.  See pm_config_in.h for details.
+RGB_DB_PATH = /usr/share/netpbm/rgb.txt:/usr/lib/X11/rgb.txt:/usr/share/X11/rgb.txt:/usr/X11R6/lib/X11/rgb.txt
Index: X11/libs/netpbm/10.68.01/netpbm-pkg-description.in
===================================================================
--- X11/libs/netpbm/10.68.01/netpbm-pkg-description.in	(nonexistent)
+++ X11/libs/netpbm/10.68.01/netpbm-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+      |-----handy-ruler------------------------------------------------------|
+netpbm: netpbm @VERSION@ (graphics conversion utilities)
+netpbm:
+netpbm: The netpbm package contains a library and tools for converting
+netpbm: between many different graphics formats.
+netpbm:
+netpbm:
+netpbm:
+netpbm:
+netpbm:
+netpbm:
+netpbm:
Index: X11/libs/netpbm/10.68.01-x86_32/Makefile
===================================================================
--- X11/libs/netpbm/10.68.01-x86_32/Makefile	(nonexistent)
+++ X11/libs/netpbm/10.68.01-x86_32/Makefile	(revision 563)
@@ -0,0 +1,184 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/l/netpbm
+SOURCE_REQUIRES   += sources/packages/l/netpbm-doc
+
+REQUIRES           = X11/libs/netpbm/10.68.01
+REQUIRES          += libs/zlib/1.2.8-x86_32
+REQUIRES          += app/xz/5.0.5-x86_32
+REQUIRES          += libs/libxml2/2.9.1-x86_32
+REQUIRES          += app/jbigkit/2.1-x86_32
+REQUIRES          += libs/libpng/libpng14/1.4.13-x86_32
+REQUIRES          += libs/libtiff/4.0.3-x86_32
+REQUIRES          += libs/libjpeg-turbo/1.3.1-x86_32
+REQUIRES          += X11/X.org/lib/libX11/1.6.2-x86_32
+#
+# Runtime required packages:
+#
+REQUIRES          += dev/perl/5.18.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 10.68.01
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/l/netpbm/netpbm-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/netpbm-$(version)
+src_dir_name       = netpbm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+doc_version         = 20141125
+tar_bz2_doc_archive = $(SRC_PACKAGE_PATH)/packages/l/netpbm-doc/netpbm-doc-$(doc_version).tar.bz2
+
+config_in          = $(CURDIR)/config/config.mk.in
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+NETPBM_32_PKG_NAME                = netpbm-x32
+NETPBM_32_PKG_VERSION             = 10.68.01
+NETPBM_32_PKG_ARCH                = $(TOOLCHAIN)
+NETPBM_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+NETPBM_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+NETPBM_32_PKG_GROUP               = $(PKG_GROUP)
+###                                |---handy-ruler-------------------------------|
+NETPBM_32_PKG_SHORT_DESCRIPTION   = graphics conversion utilities
+NETPBM_32_PKG_URL                 = $(BUG_URL)
+NETPBM_32_PKG_LICENSE             = GPLv2
+NETPBM_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(NETPBM_32_PKG_NAME)-pkg-description
+NETPBM_32_PKG_DESCRIPTION_FILE_IN = $(NETPBM_32_PKG_NAME)-pkg-description.in
+NETPBM_32_PKG_INSTALL_SCRIPT      = $(NETPBM_32_PKG_NAME)-pkg-install.sh
+
+NETPBM_32_PKG    = $(CURDIR)/$(TARGET_BUILD_DIR)/$(NETPBM_32_PKG_NAME)-package
+
+pkg_basename     = $(NETPBM_32_PKG_NAME)-$(NETPBM_32_PKG_VERSION)-$(NETPBM_32_PKG_ARCH)-$(NETPBM_32_PKG_DISTRO_NAME)-$(NETPBM_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+configure_switches  = CC_FOR_BUILD=/usr/bin/gcc
+configure_switches += LD_FOR_BUILD=/usr/bin/gcc
+configure_switches += CFLAGS_FOR_BUILD=-I/usr/include
+configure_switches += LDFLAGS_FOR_BUILD=-L/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@echo "Expanding $(tar_bz2_doc_archive)"
+	@tar xjf $(tar_bz2_doc_archive) -C $(TARGET_BUILD_DIR)
+	@cd $(TARGET_BUILD_DIR); ln -sf netpbm-doc-$(doc_version) userguide
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   cp $(config_in) config.mk ; \
+	   echo "NETPBM_DOCURL = file://$(CURDIR)/$(TARGET_BUILD_DIR)/userguide" >> config.mk ; \
+	   sed -i 's|misc|share/netpbm|' common.mk ; \
+	   sed -i 's|/link|/lib|' lib/Makefile ; \
+	   sed -i 's|install.manwebmain install.manweb install.man|install.man|' GNUmakefile ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(configure_switches) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(configure_switches) \
+	                                MAKEMAN="$(CURDIR)/$(SRC_DIR)/buildtools/makeman" USERGUIDE=../userguide \
+	                                -C ../userguide -f "$(CURDIR)/$(SRC_DIR)/buildtools/manpage.mk" manpages ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(NETPBM_32_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(configure_switches) \
+	                                pkgdir=$(NETPBM_32_PKG)/usr \
+	                                PKGMANDIR=share/man install-run install-dev ; \
+	   rm $(NETPBM_32_PKG)/usr/share/man/man{1,3,5}/* ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(configure_switches) \
+	                                MAKEMAN="$(CURDIR)/$(SRC_DIR)/buildtools/makeman" \
+	                                MANDIR=$(NETPBM_32_PKG)/usr/share/man \
+	                                -C ../userguide -f "$(CURDIR)/$(SRC_DIR)/buildtools/manpage.mk" installman ; \
+	 )
+	@( cd $(NETPBM_32_PKG)/usr ; \
+	   if [ "$(MULTILIB_X86_32_SUFFIX)" != "" ] ; then \
+	     mv lib lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   fi ; \
+	 )
+	@( cd $(NETPBM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   rm -f libnetpbm.so ; \
+	   ln -sf libnetpbm.so.?? libnetpbm.so ; \
+	 )
+	@mkdir -p $(NETPBM_32_PKG)/usr/bin/32
+	@( cd $(NETPBM_32_PKG)/usr/bin ; \
+	   find . -type f | xargs mv -t 32 ; \
+	   find . -type l | xargs mv -t 32 ; \
+	 )
+	# ======= Remove obsolete utility =======
+	@echo -e '#!/bin/sh\n\npamditherbw $$@ | pamtopnm' > $(NETPBM_32_PKG)/usr/bin/32/pgmtopbm
+	# ======= Remove unneeded directories =======
+	@rm -rf $(NETPBM_32_PKG)/usr/include
+	@rm -rf $(NETPBM_32_PKG)/usr/share
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(NETPBM_32_PKG))
+	# ======= Strip binaries =======
+	@( cd $(NETPBM_32_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(NETPBM_32_PKG_DESCRIPTION_FILE): $(NETPBM_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(NETPBM_32_PKG_DESCRIPTION_FILE) $(NETPBM_32_PKG_INSTALL_SCRIPT)
+	@cp $(NETPBM_32_PKG_DESCRIPTION_FILE) $(NETPBM_32_PKG)/.DESCRIPTION
+	@cp $(NETPBM_32_PKG_INSTALL_SCRIPT) $(NETPBM_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(NETPBM_32_PKG)/.REQUIRES
+	@echo "pkgname=$(NETPBM_32_PKG_NAME)"                            >  $(NETPBM_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(NETPBM_32_PKG_VERSION)"                          >> $(NETPBM_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(NETPBM_32_PKG_ARCH)"                               >> $(NETPBM_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(NETPBM_32_PKG_DISTRO_NAME)"                  >> $(NETPBM_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(NETPBM_32_PKG_DISTRO_VERSION)"                >> $(NETPBM_32_PKG)/.PKGINFO ; \
+	 echo "group=$(NETPBM_32_PKG_GROUP)"                             >> $(NETPBM_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(NETPBM_32_PKG_SHORT_DESCRIPTION)\"" >> $(NETPBM_32_PKG)/.PKGINFO ; \
+	 echo "url=$(NETPBM_32_PKG_URL)"                                 >> $(NETPBM_32_PKG)/.PKGINFO ; \
+	 echo "license=$(NETPBM_32_PKG_LICENSE)"                         >> $(NETPBM_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(NETPBM_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/netpbm/10.68.01-x86_32/netpbm-x32-pkg-install.sh
===================================================================
--- X11/libs/netpbm/10.68.01-x86_32/netpbm-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/netpbm/10.68.01-x86_32/netpbm-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/netpbm/10.68.01-x86_32/netpbm-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/netpbm/10.68.01-x86_32/PATCHES
===================================================================
--- X11/libs/netpbm/10.68.01-x86_32/PATCHES	(nonexistent)
+++ X11/libs/netpbm/10.68.01-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,5 @@
+
+../../../../sources/packages/l/netpbm/patches/netpbm-10.68.01-security-code.patch    -p0
+../../../../sources/packages/l/netpbm/patches/netpbm-10.68.01-security-scripts.patch -p0
+../../../../sources/packages/l/netpbm/patches/netpbm-10.68.01-CAN-2005-2471.patch    -p0
+../../../../sources/packages/l/netpbm/patches/netpbm-10.68.01-make.patch             -p0
Index: X11/libs/netpbm/10.68.01-x86_32/config/config.mk.in
===================================================================
--- X11/libs/netpbm/10.68.01-x86_32/config/config.mk.in	(nonexistent)
+++ X11/libs/netpbm/10.68.01-x86_32/config/config.mk.in	(revision 563)
@@ -0,0 +1,669 @@
+# This is a make file inclusion, to be included in all the Netpbm make
+# files.
+
+# This file is meant to contain variable settings that customize the
+# build for a particular target system configuration.
+
+# The distribution contains the file config.mk.in.  You edit
+# config.mk.in in ways relevant to your particular environment 
+# to create config.mk.  The "configure" program will do this
+# for you in simple cases.
+
+# Some of the variables that the including make file must set for this
+# file to work:
+#
+#  SRCDIR: The directory at the top of the Netpbm source tree.  Note that
+#  this is typically a relative directory, and it must be relative to the
+#  make file that includes this file.
+
+DEFAULT_TARGET = nonmerge
+#DEFAULT_TARGET = merge
+
+# Fiasco has some special requirements that make it fail to compile on
+# some systems, and since it isn't very important, just set this to "N"
+# and skip it on those systems unless you want to debug it and fix it.
+# OpenBSD:
+#BUILD_FIASCO = N
+BUILD_FIASCO = Y
+
+# The following are commands for the build process to use.  These values
+# do not get built into anything.
+
+# The C compiler (including macro preprocessor)
+#CC = gcc
+# Note that 'cc' is usually an alias for whatever is the main compiler
+# on a system, e.g. the GNU Compiler on Linux.
+# CC = cc
+
+# The linker.
+LD = $(CC)
+#LD = ld
+#Tru64:
+#LD = cc
+#LD = gcc 
+
+#If the linker identified above is a compiler that invokes a linker
+#(as in 'cc foo.o -o foo'), set LINKERISCOMPILER.  The main difference is
+#that we expect a compiler to take linker options in the '-Wl,-opt1,val1'
+#syntax whereas the actual linker would take '-opt1 val1'.
+LINKERISCOMPILER=Y
+#If $(LD) is 'ld':
+#LINKERISCOMPILER=N
+
+#LINKER_CAN_DO_EXPLICIT_LIBRARY means the linker specified above can
+#take a library as just another link object argument, as in 'ld
+#pnmtojpeg.o /usr/local/lib/libjpeg.so ...'  as opposed to requiring a
+#-l option as in 'ld pnmtojpeg.o -L/usr/local/lib -l jpeg'.
+#This variable controls how 'libopt' gets built.  Note that with some
+#linkers, you can specify a shared library explicitly, but then it has
+#to live in that exact place at run time.  That's not good enough for us.
+
+#LINKER_CAN_DO_EXPLICIT_LIBRARY=N
+#GNU:
+LINKER_CAN_DO_EXPLICIT_LIBRARY=Y
+
+# This is the name of the header file that declares the types
+# uint32_t, etc.  This name is used as #include $(INTTYPES_H)  .
+# Set to null if the types come automatically without including anything.
+
+# We have a report (2005.09.17) that on IRIX 5.3 with the native IDO
+# cc, inttypes.h and sys/types.h conflict (and Netpbm programs include
+# sys/types for other things), so for that environment, <inttypes.h>
+# won't work, but "inttypes_netpbm.h" might.
+
+INTTYPES_H = <inttypes.h>
+# Linux libc5:
+#INTTYPES_H = <types.h>
+# Solaris:
+# Solaris has <sys/inttypes.h>, but it doesn't define int_fast2_t, etc.
+#INTTYPES_H = "inttypes_netpbm.h"
+# Others:
+#INTTYPES_H = <sys/stdint.h>
+#INTTYPES_H = <sys/types.h>
+# The automatically generated Netpbm version:
+#INTTYPES_H = "inttypes_netpbm.h"
+
+# HAVE_INT64 tells whether, assuming you include the header indicated by
+# INTTYPES_H, you have the int64_t type and related stuff.  (If you don't
+# the build will omit certain code that does 64 bit computations).
+HAVE_INT64 = Y
+#HAVE_INT64 = N
+
+# WANT_SSE tells whether the build should use SSE instructions, via the the
+# standard SSE intrinsics (operators such as '_mm_movemask_epi8').  SSE
+# instructions are faster than traditional instructions, but aren't available
+# on all CPUs.  Also, the standard intrinsics are not available in all
+# compilers.  Even if you say N here, Netpbm may still be built with some
+# SSE exploitation (e.g. SSE floating point) because the compiler will 
+# do it automatically.  You can add a -nomsse or -nomsse2 option to
+# CFLAGS or CFLAGS_PERSONAL to stop that.
+WANT_SSE = N
+#WANT_SSE = Y
+
+# CC and LD are for building the Netpbm programs, which are not necessarily
+# intended to run on the same system on which Make is running.  But when we 
+# build a build tool such as Libopt, it is meant to run only on the same 
+# system on which the Make is running.  The variables below define programs
+# to use to compile and link build tools.
+CC_FOR_BUILD = /usr/bin/gcc
+LD_FOR_BUILD = /usr/bin/gcc
+#CFLAGS_FOR_BUILD = $(CFLAGS_CONFIG)
+#LDFLAGS_FOR_BUILD = $(LDFLAGS)
+
+# MAKE is set automatically by Make to what was used to invoke Make.
+
+INSTALL = $(SRCDIR)/buildtools/install.sh
+#Solaris:
+#INSTALL = /usr/ucb/install
+#Tru64:
+#INSTALL = installbsd
+#OSF1:
+#INSTALL = $(SRCDIR)/buildtools/installosf
+#Red Hat Linux:
+#INSTALL = install
+
+# STRIPFLAG is the option you pass to the above install program to make it
+# strip unnecessary information out of binaries.
+#STRIPFLAG = -s
+# If you don't want to strip the binaries, just leave it null:
+#STRIPFLAG = 
+
+SYMLINK = ln -s
+# At least some Windows environments don't have any concept of symbolic
+# links, but direct copies are usually a passable alternative.
+#SYMLINK = cp
+
+#MANPAGE_FORMAT is "nroff" or "cat".  It determines in what format the
+#pointer man pages are installed (ready to nroff, or ready to cat).  
+#A pointer man pages is just a single-paragraph pages that tells you there is
+#no man page for the program, to look at the HTML documentation instead.
+MANPAGE_FORMAT = nroff
+#MANPAGE_FORMAT = cat
+
+# AR = ar
+# RANLIB = ranlib
+# IRIX, SCO don't have Ranlib:
+#RANLIB = true
+
+# LEX is the beginning of a shell command that runs a Lex-like
+# pattern matcher generator.  Null string means there isn't any such
+# command.  That means the build will skip parts that need one.
+
+LEX = flex
+# Solaris:
+# LEX = flex -e
+# Windows Mingw:
+# LEX =
+# 
+# LEX = lex
+
+# C compiler options 
+
+# gcc:
+# -ansi and -Werror should work too, but are not included
+# by default because there's no point in daring the build to fail.
+# -pedantic isn't a problem because it causes at worst a warning.
+
+CFLAGS += -O3 -ffast-math -pedantic -fno-common \
+          -Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit \
+          -Wwrite-strings -Wmissing-prototypes -Wundef -Wno-unknown-pragmas
+
+# The merged programs have a main_XXX subroutine instead of main(),
+# which would cause a warning with -Wmissing-declarations or 
+# -Wmissing-prototypes.
+
+CFLAGS_MERGE += -Wno-missing-declarations -Wno-missing-prototypes
+
+# A user of DEC Tru64 4.0F in May 2000 needed -DLONG_32 for ppmtompeg,
+# but word size-sensitive code was removed from parallel.c in September 2004.
+# A user of Tru64 5.1A in July 2003 needed NOT to have -DLONG_32.  In
+# theory, you need this if on your system, long is 32 bits and int is not.
+# But it may be completely irrelevant today.
+#Tru64:
+#CFLAGS = -O2 -std1 -DLONG_32
+#CFLAGS = -O2 -std1
+#AIX:
+#CFLAGS= -O3
+#HP-UX:
+#CFLAGS= -O3 -fPIC
+#IRIX:
+#CFLAGS= -n32 -O3
+#Amiga with GNU compiler:
+#CFLAGS= -m68020-60 -ffast-math -mstackextend 
+# You can add -noixemul for Amiga and successfully compile most of the 
+# programs.  (Of the remaining ones, if you can supply your own strtod() 
+# function, most of them will build with -noixemul).  So try building 
+# with 'make --keep-going CADD=-noixemul' first, then just 'make' to build
+# everything that failed for lack of the ixemul library in the first step.
+# That way, the parts that don't required the ixemul library won't indicate
+# a dependency on it.
+#OpenBSD:
+#CFLAGS = -I/usr/local/include
+
+# EXE is a suffix that the linker puts on any executable it generates.
+# In cygwin, this is .exe and most programs deal with its existence without
+# us having to know about it.  Some don't though, so set this:
+
+EXE =
+#Cygwin, DJGPP/Windows:
+#EXE = .exe
+  
+# linker options.  
+
+# LDFLAGS is often set as an environment variable;  A setting here overrides
+# it.  So either make sure you want to override it, or do a "LDFLAGS +=" here.
+
+# LDFLAGS is usually not the right place for a -L option, because we put
+# LDFLAGS _before_ our own -L options, so it would cancel out our
+# specific selection of libraries.  For example, if you say
+# LDFLAGS=/usr/local/lib and an old copy of the libnetpbm is in
+# /usr/local/lib, then you'd be linking against that old copy instead of
+# the copy you just built, which is located by a -L option later on the
+# link command.  LIBS is the right variable for adding -L options.  LIBS
+# goes after any of our make files' own -L options.
+
+# Eunice users may want to use -noshare so that the executables can
+# run standalone:
+#LDFLAGS += -noshare
+#Tru64:
+# Russ Allberry says on 2001.06.09 that -oldstyle_liblookup may be necessary
+# to keep from finding an ancient system libjpeg.so that isn't compatible with
+# NetPBM.  Michael Long found that /usr/local/lib is not in the default
+# search path, or not soon enough, and he was getting an old libjpeg that
+# caused all the jpeg symbol references to be unresolved.  He had installed
+# a new libjpeg in /usr/local/lib.
+#LDFLAGS += -call_shared -oldstyle_liblookup -L/usr/local/lib
+#AIX:
+#LDFLAGS += -L /usr/pubsw/lib
+#HP-UX:
+#LDFLAGS += -Wl,+b,/usr/pubsw/lib
+#IRIX:
+#LDFLAGS += -n32
+
+# Linker options for created Netpbm shared libraries.
+
+# Here, $(SONAME) resolves to the soname for the shared library being created.
+# The following are gcc options.  This works on GNU libc systems.
+LDSHLIB = -shared -Wl,-soname,$(SONAME)
+# You need -nostart instead of -shared on BeOS.  Though the BeOS compiler is
+# ostensibly gcc, it has the -nostart option, which is not mentioned in gcc
+# documentation and doesn't exist in at least one non-BeOS installation.
+# BeOS doesn't have sonames built in.
+#LDSHLIB = -nostart
+#LDSHLIB = -G
+# Solaris, SunOS with GNU Ld, SCO:
+# These systems have no soname option.
+#LDSHLIB = -shared
+# Solaris with Sun Ld:
+#LDSHLIB = -Wl,-Bdynamic,-G,-h,$(SONAME) 
+#Tru64:
+#LDSHLIB = -shared -expect_unresolved "*"
+#IRIX:
+#LDSHLIB = -shared -n32
+#AIX GNU compiler/linker:
+#LDSHLIB = -shared
+#AIX Visual Age C:
+#LDSHLIB = -qmkshrobj
+#Mac OSX:
+# According to experiments done by Peter A Crowley in May 2007, if
+# libnetpbm goes in a standard place such as /usr/local/lib,
+# programs need not be built with libnetpbm's location included.
+# But if it goes elsewhere, the link-editor must include the
+# location in the executable.  It finds the runtime location by
+# looking inside the library.  The information in the library
+# comes from the install_name option with which the library was
+# built.  It's an alternative to the -rpath option on other systems.
+#LDSHLIB=-dynamiclib
+#LDSHLIB=-dynamiclib -install_name $(NETPBMLIB_RUNTIME_PATH)/libnetpbm.$(MAJ).dylib
+
+# LDRELOC is the command to combine two .o files (relocateable object files)
+# into a single .o file that can later be linked into something else.  NONE
+# means no such command is available.
+
+LDRELOC = NONE
+# GNU Ld:
+# Older GNU Ld misspells the option as --relocateable.  Newer GNU Ld
+# correctly spells it --relocatable.  The abbreviation --reloc works on
+# both.
+#LDRELOC = ld --reloc
+#LDRELOC = ld -r
+
+
+# On older systems, you have to make shared libraries out of position
+# independent code, so you need -fpic or fPIC here.  (The rule is: if
+# -fpic works, use it.  If it bombs, go to fPIC).  On newer systems,
+# it isn't necessary, but can save real memory at the expense of
+# execution speed.  Without position independent code, the library
+# loader may have to patch addresses into the executable text.  On an
+# older system, this would cause a program crash because the loader
+# would be writing into read-only shared memory.  But on newer
+# systems, the system silently creates a private mapping of the page
+# or segment being modified (the "copy on write" phenomenon).  So it
+# needs its own private real page frame.  In one experiment, A second
+# copy of Pbmtext used 16K less real memory when built with -fpic than
+# when built without.  2001.06.02.
+
+# We have seen -fPIC required on IA64 and AMD64 machines (GNU
+# compiler/linker).  Build-time linking fails without it.  I don't
+# know why -- history seems to be repeating itself.  2005.02.23.
+
+CFLAGS_SHLIB = -fPIC
+# Gcc:
+#CFLAGS_SHLIB = -fpic
+#CFLAGS_SHLIB = -fPIC
+# Sun compiler:
+#CFLAGS_SHLIB = -Kpic
+#CFLAGS_SHLIB = -KPIC
+
+# SHLIB_CLIB is the link option to include the C library in a shared library,
+# normally "-lc".  On typical systems, this serves no purpose.  On some,
+# though, it causes information about which C library to use to be recorded
+# in the shared library and thus choose the correct library among several or
+# avoid using an incompatible one.  But on some systems, the link fails.
+# On 2002.09.30, "John H. DuBois III" <spcecdt@armory.com> reports that on 
+# SCO OpenServer, he gets the following error message with -lc:
+#
+#  -lc; relocations referenced  ;  from file(s) /usr/ccs/lib/libc.so(random.o);
+#   fatal error: relocations remain against allocatable but non-writable 
+#   section: ; .text
+
+SHLIB_CLIB = -lc
+# SCO:
+#SHLIB_CLIB =
+
+# On some systems you have to build into an executable the list of
+# directories where its dynamically linked libraries can be found at
+# run time.  This is typically done with a -R or -rpath linker
+# option.  Even on systems that don't require it, you might prefer to do
+# that rather than set up environment variables or configuration files
+# to tell the system where the libraries are.  A "Y" here means to put
+# the directory information in the executable at link time.
+
+NEED_RUNTIME_PATH = N
+# Solaris, SunOS, NetBSD, AIX:
+#NEED_RUNTIME_PATH = Y
+
+# RPATHOPTNAME is the option you use on the link command to specify
+# a runtime search path for a shared library.  It is meaningless unless
+# NEED_RUNTIME_PATH is Y.
+RPATHOPTNAME = -rpath
+
+# The following variables tell where your various libraries on which
+# Netpbm depends live.  The LIBxxx variable is a full file
+# specification of the link library (not necessarily the library used
+# at run time).  e.g. "/usr/local/lib/graphics/libjpeg.so".  It usually
+# doesn't matter if the library prefix and suffix are right -- you can
+# use "lib" and ".so" or ".a" regardless of what your system actually
+# uses because these just turn into "-L" and "-l" linker options
+# anyway.  ".a" implies a static library for some purposes, though.
+# If you don't have the library in question, use a value of NONE for
+# LIBxxx and the build will simply skip the programs that require that
+# library.  If the library is in your linker's (or the Netpbm build's)
+# default search path, leave off the directory part, e.g. "libjpeg.so".
+
+# The xxxHDR_DIR variable is the directory in which the interface
+# headers for the library live (e.g. /usr/include).  If they are in your
+# compiler's default search path, set this variable to null.
+
+# This is where the Netpbm shared libraries will reside when Netpbm is
+# fully installed.  In some configurations, the Netpbm builder builds
+# this information into the Netpbm executables.  This does NOT affect
+# where the Netpbm installer installs the libraries.  A null value
+# means the libraries are in a default search path used by the runtime
+# library loader.
+NETPBMLIB_RUNTIME_PATH = 
+#NETPBMLIB_RUNTIME_PATH = /usr/lib/netpbm
+
+# The TIFF library.  See above.  If you want to build the tiff
+# converters, you must have the tiff library already installed.
+
+#TIFFLIB = NONE
+TIFFHDR_DIR =
+
+TIFFLIB = libtiff.so
+#TIFFHDR_DIR = /usr/include/libtiff
+#NetBSD:
+#TIFFLIB = $(LOCALBASE)/lib/libtiff.so
+#TIFFHDR_DIR = $(LOCALBASE)/include
+# OSF, Tru64:
+#TIFFLIB = /usr/local1/DEC/lib/libtiff.so
+#TIFFHDR_DIR = /usr/local1/DEC/include
+
+# Some TIFF libraries do Jpeg and/or Z (flate) compression and thus any
+# program linked with the TIFF library needs a Jpeg and/or Z library.  Some
+# TIFF libraries have such library statically linked in, but others need it to
+# be linked with the program at link-edit time or dynamically at program load
+# time.  Make this 'N' if your TIFF library doesn't need such linking.  As of
+# 2005.01, the most usual build of the TIFF library appears to require both.
+TIFFLIB_NEEDS_JPEG = Y
+TIFFLIB_NEEDS_Z = Y
+
+# The JPEG library.  See above.  If you want to build the jpeg
+# converters you must have the jpeg library already installed.
+
+# Tiff files can use JPEG compression, so the Tiff library can reference
+# the JPEG library.  If your Tiff library references a dynamic JPEG 
+# library, you must specify at least JPEGLIB here, or the Tiff
+# converters will not build.  Note that your Tiff library may have the
+# JPEG stuff statically linked in, in which case you won't need 
+# JPEGLIB in order to build the Tiff converters.
+
+#JPEGLIB = NONE
+JPEGHDR_DIR =
+JPEGLIB = libjpeg.so
+#JPEGHDR_DIR = /usr/include/jpeg
+# Netbsd:
+#JPEGLIB = ${LOCALBASE}/lib/libjpeg.so
+#JPEGHDR_DIR = ${LOCALBASE}/include
+# OSF, Tru64:
+#JPEGLIB = /usr/local1/DEC/libjpeg.so
+#JPEGHDR_DIR = /usr/local1/DEC/include
+# Typical:
+#JPEGLIB = /usr/local/lib/libjpeg.so
+#JPEGHDR_DIR = /usr/local/include
+# Don't build JPEG stuff:
+#JPEGLIB = NONE
+
+
+# The PNG library.  See above.  If you want to build the PNG
+# converters you must have the PNG library already installed.
+
+# The PNG library, by convention starting around April 2002, gets installed
+# with names that include a version number, such as libpng10.a and header
+# files in /usr/include/libpng10.  But there is conventionally an unnumbered
+# alias (e.g. libpng.a, /usr/include/libpng) for the preferred version.
+#
+# Recent versions of the library (since some time in the 2002-2006 period)
+# have an associated 'libpng-config' that tells how to link it.  The make
+# files will use that program if it exists (must be in the PATH).  In that
+# case, PNGLIB and PNGHDR_DIR are irrelevant, but PNGVER is still meaningful,
+# because the make file runs 'libpng$(PNGVER)-config'.
+#
+# Even more recent versions have the more modern Pkgconfig database entry
+# to tell how to link it.  The make files will try to use that first.
+#
+# The normal way to choose the libpng the Netpbm build uses from among multiple
+# versions on your system is not to mess with the variables below, but rather
+# to mess with PKG_CONFIG_PATH or PATH environment variable so that the version
+# you want to use appears first in the search path.
+
+#PNGLIB = NONE
+PNGHDR_DIR =
+PNGVER = 
+PNGLIB = libpng$(PNGVER).so
+#PNGHDR_DIR = /usr/include/libpng$(PNGVER)
+# NetBSD:
+#PNGLIB = $(LOCALBASE)/lib/libpng$(PNGVER).so
+#PNGHDR_DIR = $(LOCALBASE)/include
+# OSF/Tru64:
+#PNGLIB = /usr/local1/DEC/lib/libpng$(PNGVER).so
+#PNGHDR_DIR = /usr/local1/DEC/include
+
+# The zlib compression library.  See above.  You need it to build
+# anything that needs the PNG library (see above).  If you selected
+# NONE for the PNG library, it doesn't matter what you specify here --
+# it won't get used.
+#
+# If you have 'libpng-config' (see above), these are irrelevant.
+
+#ZLIB = NONE
+ZHDR_DIR =
+ZLIB = libz.so
+
+# The JBIG lossless image compression library (aka JBIG-KIT):
+
+#JBIGLIB = $(INTERNAL_JBIGLIB)
+#JBIGHDR_DIR = $(INTERNAL_JBIGHDR_DIR)
+
+JBIGLIB = libjbig.a
+JBIGHDR_DIR =
+
+# The Jasper JPEG-2000 image compression library (aka JasPer):
+JASPERLIB = $(INTERNAL_JASPERLIB)
+JASPERHDR_DIR = $(INTERNAL_JASPERHDR_DIR)
+# JASPERDEPLIBS is the libraries (-l options or file names) on which
+# The Jasper library depends -- i.e. what you have to link into any
+# executable that links in the Jasper library.
+JASPERDEPLIBS =
+#JASPERDEPLIBS = -ljpeg
+
+# And the Utah Raster Toolkit (aka URT aka RLE) library:
+
+URTLIB = $(BUILDDIR)/urt/librle.a
+URTHDR_DIR = $(SRCDIR)/urt
+
+# The X11 library has facilities for talking to an X Window System
+# server.  It is required by Pamx.
+
+X11LIB = libX11.so
+X11HDR_DIR =
+
+#X11LIB = /usr/lib/libX11.so
+#X11HDR_DIR =
+
+# The Linux SVGA library (Svgalib) is a facility for displaying graphics
+# on the Linux console.  It is required by Ppmsvgalib.
+
+LINUXSVGALIB = NONE
+LINUXSVGAHDR_DIR = 
+
+#LINUXSVGALIB = /usr/lib/libvga.so
+#LINUXSVGAHDR_DIR = /usr/include/vgalib
+
+# WINICON_OBJECT is the object file to bind into all Netpbm executables
+# to provide the icon for Windows to use for it.  Null for none.
+WINICON_OBJECT =
+#WINICON_OBJECT = $(BUILDDIR)/icon/netpbm.o
+
+# If you don't want any network functions, set OMIT_NETWORK to "Y".
+# The only thing that requires network functions is the option in
+# ppmtompeg to run it on multiple computers simultaneously.  On some
+# systems network functions don't work or we haven't figured out how to 
+# make them work, or they just aren't worth the effort.  
+OMIT_NETWORK =
+#DJGPP/Windows, Tru64:
+#   (there's some minor header problem that prevents network functions from 
+#   building on Tru64 2000.10.06)
+#OMIT_NETWORK = Y
+
+# These are -l options to link in the network libraries.  Often, these are
+# built into the standard C library, so this can be null.  This is irrelevant
+# if OMIT_NETWORK is "Y".
+
+NETWORKLD = 
+# Solaris, SunOS:
+#NETWORKLD = -lsocket -lnsl
+# SCO:
+#NETWORKLD = -lsocket, -lresolv
+
+# DONT_HAVE_PROCESS_MGMT is Y if this system doesn't have the usual
+# Unix process management stuff - fork, wait, etc.  N for a regular Unix
+# system.
+DONT_HAVE_PROCESS_MGMT = N
+
+# The following variables are used only by 'make install' (and the
+# variants of it).  Paths here don't, for example, get built into any
+# programs.
+
+# This is where everything goes when you do 'make package', unless you
+# override it by setting 'pkgdir' on the Make command line.
+PKGDIR_DEFAULT = /tmp/netpbm
+
+# This is where test results are written when you do 'make check', unless
+# you override it by setting 'resultdir' on the Make command line.
+RESULTDIR_DEFAULT = /tmp/netpbm-test
+
+# Subdirectory of the package directory ($(pkgdir)) in which man pages
+# go.
+PKGMANDIR = man
+
+# File permissions for installed files.
+# Note that on some systems (e.g. Solaris), 'install' can't use the 
+# mnemonic permissions - you have to use octal.
+
+# binaries (pbmmake, etc)
+INSTALL_PERM_BIN =  755       # u=rwx,go=rx
+# shared libraries (libpbm.so, etc)
+INSTALL_PERM_LIBD = 755       # u=rwx,go=rx
+# static libraries (libpbm.a, etc)
+INSTALL_PERM_LIBS = 644       # u=rw,go=r
+# header files (pbm.h, etc)
+INSTALL_PERM_HDR =  644       # u=rw,go=r
+# man pages (pbmmake.1, etc)
+INSTALL_PERM_MAN =  644       # u=rw,go=r
+# data files (pnmtopalm color maps, etc)
+INSTALL_PERM_DATA = 644       # u=rw,go=r
+
+# Specify the suffix that want the man pages to have.
+
+SUFFIXMANUALS1 = 1
+SUFFIXMANUALS3 = 3
+SUFFIXMANUALS5 = 5
+
+#NETPBMLIBTYPE tells the kind of libraries that will get built to hold the
+#Netpbm library functions.  The value is used only in make file tests.
+# "unixshared" means a unix-style shared library, typically named like 
+# libxyz.so.2.3
+NETPBMLIBTYPE = unixshared
+# "unixstatic" means a unix-style static library, (like libxyz.a)
+#NETPBMLIBTYPE = unixstatic
+# "dll" means a Windows DLL shared library
+#NETPBMLIBTYPE = dll
+# "dylib" means a Darwin/Mac OS shared library
+#NETPBMLIBTYPE = dylib
+
+#NETPBMLIBSUFFIX is the suffix used on whatever kind of library is 
+#selected above.  All this is used for is to construct library names.
+#The make files never examine the actual value.
+NETPBMLIBSUFFIX = so
+
+# "a" is the suffix for unix-style static libraries.  It is also
+# traditionally used for shared libraries on AIX.  The Visual Age C
+# manual says sometimes .so works on AIX, and GNU software for AIX
+# 5.1.0 does indeed use it.  In our experiments, it works fine if you
+# name the library file explicitly on the link, but isn't in the -l
+# search order.  If you name the library explicitly on the link, the
+# library must live in exactly the same position at run time, so we
+# can't use that.  Therefore, you cannot build both static and shared
+# libraries with AIX.  You have to choose.
+#NETPBMLIBSUFFIX = a
+# For HP-UX shared libraries:
+#NETPBMLIBSUFFIX = sl
+# Darwin/Mac OS shared library:
+#NETPBMLIBSUFFIX = dylib
+# Windows shared library:
+#NETPBMLIBSUFFIX = dll
+
+#STATICLIB_TOO is "Y" to signify that you want a static library built
+#and installed in addition to whatever library type you specified by
+#NETPBMLIBTYPE.  If NETPBMLIBTYPE specified a static library,
+#STATICLIB_TOO simply has no effect.
+STATICLIB_TOO = Y
+#STATICLIB_TOO = N
+
+#STATICLIBSUFFIX is the suffix that static libraries have.  It's
+#meaningless if you aren't building static libraries.
+STATICLIBSUFFIX = a
+
+#SHLIBPREFIXLIST is a blank-delimited list of prefixes that a filename
+#of a shared library may have on this system.  Traditionally, it's
+#just "lib", as in libc or libnetpbm.  On Windows, though, varying
+#prefixes are used when multiple alternative forms of a library are
+#available.  The first prefix in this list is what we use to name the
+#Netpbm shared libraries.
+#
+# This variable controls how 'libopt' gets built.
+#
+SHLIBPREFIXLIST = lib
+#Cygwin:
+#SHLIBPREFIXLIST = cyg lib
+
+NETPBMSHLIBPREFIX = $(firstword $(SHLIBPREFIXLIST))
+
+#DLLVER is used to version the DLLs built on cygwin or other
+#windowsish platforms.  We can't add this to LIBROOT, or we'd
+#version the static libs (which is bad).  We can't add this
+#at the end of the name (like unix does with so numbers) because
+#windows will only load dlls whose name ends in "dll".  So,
+#we have this variable, which becomes the end of the library "root" name
+#for DLLs only.
+#
+# This variable controls how 'libopt' gets built.
+#
+DLLVER =
+#Cygwin
+#DLLVER = $(NETPBM_MAJOR_RELEASE)
+
+#NETPBM_DOCURL is the URL of the main documentation page for Netpbm.
+#This is a directory which contains a file for each Netpbm program,
+#library, and file type.  E.g. The documentation for jpegtopnm might be in
+#http://netpbm.sourceforge.net/doc/jpegtopnm.html .  This value gets
+#installed in the man pages (which say no more than to read the webpage)
+#and in the Manweb netpbm.url file.
+#NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/
+#For a system with no web access, but a local copy of the doc:
+#NETPBM_DOCURL = file:/usr/doc/netpbm/
+
+# RGB_DB_PATH is where Netpbm looks for the color database when the RGBDEF
+# environment variable is not set.  See pm_config_in.h for details.
+RGB_DB_PATH = /usr/share/netpbm/rgb.txt:/usr/lib/X11/rgb.txt:/usr/share/X11/rgb.txt:/usr/X11R6/lib/X11/rgb.txt
Index: X11/libs/netpbm/10.68.01-x86_32/netpbm-x32-pkg-description.in
===================================================================
--- X11/libs/netpbm/10.68.01-x86_32/netpbm-x32-pkg-description.in	(nonexistent)
+++ X11/libs/netpbm/10.68.01-x86_32/netpbm-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+          |-----handy-ruler------------------------------------------------------|
+netpbm-x32: netpbm-x32 @VERSION@ (x86_32 graphics conversion utilities)
+netpbm-x32:
+netpbm-x32: The netpbm package contains a library and tools for converting
+netpbm-x32: between many different graphics formats.
+netpbm-x32:
+netpbm-x32:
+netpbm-x32:
+netpbm-x32:
+netpbm-x32:
+netpbm-x32:
+netpbm-x32:
Index: X11/libs/opengl-collection/Makefile
===================================================================
--- X11/libs/opengl-collection/Makefile	(nonexistent)
+++ X11/libs/opengl-collection/Makefile	(revision 563)
@@ -0,0 +1,61 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../build-system/constants.mk
+
+
+#
+# Do not require mesa twice when we build 32bit compatible packages:
+# =================================================================
+#
+# NOTE:
+#  We use filter utility because in the future we will use this mechanism
+#  to create 32bit compat packages for other architectures. for example,
+#  ARM 32 compat for ARM aarch64 platform.
+#
+ifeq ($(filter true,$(CREATE_X86_32_PACKAGE)),)
+REQUIRES += X11/libs/mesa/10.3.4
+endif
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64)),)
+REQUIRES += X11/libs/mesa/10.3.4-x86_32
+endif
+
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X)),)
+REQUIRES += X11/libs/sunxi-mali/3.0.4.0
+endif
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CI20)),)
+REQUIRES += X11/libs/ci20-sgx-um/1.14.3759903
+endif
+
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+BUILD_TARGETS      = $(install_target)
+
+
+include ../../../build-system/core.mk
+
+
+$(install_target):
+	@touch $@
Index: X11/libs/qt4/4.8.6/Makefile
===================================================================
--- X11/libs/qt4/4.8.6/Makefile	(nonexistent)
+++ X11/libs/qt4/4.8.6/Makefile	(revision 563)
@@ -0,0 +1,539 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/qt4
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/4.9.2
+endif
+REQUIRES          += net/ca-certificates/40.0.2
+REQUIRES          += X11/app/desktop-file-utils/0.22
+REQUIRES          += X11/libs/hicolor-icon-theme/0.14
+REQUIRES          += X11/app/xdg-utils/1.1.0
+
+REQUIRES          += libs/alsa-lib/1.0.28
+REQUIRES          += X11/app/dbus-x11-launch/1.8.10
+
+REQUIRES          += libs/libmng/2.0.2
+REQUIRES          += libs/icu4c/54.1
+REQUIRES          += app/cups/2.0.1
+
+REQUIRES          += X11/libs/fontconfig/2.11.1
+
+REQUIRES          += X11/X.org/lib/libXaw/1.0.12
+REQUIRES          += X11/X.org/lib/libXcursor/1.1.14
+REQUIRES          += X11/X.org/lib/libXi/1.7.4
+REQUIRES          += X11/X.org/lib/libXinerama/1.1.3
+REQUIRES          += X11/X.org/lib/libXrandr/1.4.2
+REQUIRES          += X11/X.org/lib/libXv/1.0.10
+REQUIRES          += X11/X.org/lib/libxkbfile/1.0.8
+
+REQUIRES          += libs/gstreamer0/0.10.36
+REQUIRES          += libs/gst-plugins-base0/0.10.36
+
+REQUIRES          += app/sqlite/3.8.7.1
+REQUIRES          += app/mariadb/5.5.41
+REQUIRES          += libs/libiodbc/3.52.9
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 4.8.6
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/x/qt4/qt-everywhere-opensource-src-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/qt-everywhere-opensource-src-$(version)
+src_dir_name       = qt-everywhere-opensource-src-$(version)
+doc_dir_name       = qt4-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+pkgconfig_in       = $(CURDIR)/pkgconfig/Qt.pc.in
+profile_dir        = $(CURDIR)/profile.d
+applications_dir   = $(CURDIR)/applications
+
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_OMAP5UEVM)),)
+PATCHES = PATCHES.omap543x
+else
+PATCHES = PATCHES
+endif
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+QT4_PKG_NAME                = qt4
+QT4_PKG_VERSION             = 4.8.6
+QT4_PKG_ARCH                = $(TOOLCHAIN)
+QT4_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+QT4_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+QT4_PKG_GROUP               = $(PKG_GROUP)
+###                          |---handy-ruler-------------------------------|
+QT4_PKG_SHORT_DESCRIPTION   = graphical user interface toolkit
+QT4_PKG_URL                 = $(BUG_URL)
+QT4_PKG_LICENSE             = GPLv3
+QT4_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(QT4_PKG_NAME)-pkg-description
+QT4_PKG_DESCRIPTION_FILE_IN = $(QT4_PKG_NAME)-pkg-description.in
+QT4_PKG_INSTALL_SCRIPT      = $(QT4_PKG_NAME)-pkg-install.sh
+
+QT4_PKG          = $(CURDIR)/$(TARGET_BUILD_DIR)/$(QT4_PKG_NAME)-package
+
+pkg_basename     = $(QT4_PKG_NAME)-$(QT4_PKG_VERSION)-$(QT4_PKG_ARCH)-$(QT4_PKG_DISTRO_NAME)-$(QT4_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = INSTALL_ROOT=$(QT4_PKG)
+
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CB3X) $(HARDWARE_FFRK3288) $(HARDWARE_BEAGLE) $(HARDWARE_OMAP5UEVM)),)
+ARCH   = arm
+ABI    = gnueabihf
+endif
+ifneq ($(filter $(HARDWARE),$(HARDWARE_DM64X)),)
+ARCH   = arm
+ABI    = gnueabi
+endif
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC32)),)
+ARCH   = i386
+ABI    = gnu
+endif
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64)),)
+ARCH   = x86_64
+ABI    = gnu
+endif
+ifneq ($(filter $(HARDWARE),$(HARDWARE_B74) $(HARDWARE_CI20)),)
+ARCH   = mips
+ABI    = gnu
+endif
+
+TARGET_SPEC_DIR = linux-$(ARCH)-$(ABI)-g++
+
+
+configure_switches  = -confirm-license
+configure_switches += -opensource
+configure_switches += -arch $(ARCH)
+configure_switches += -platform linux-g++
+configure_switches += -xplatform $(TARGET_SPEC_DIR)
+configure_switches += -release
+configure_switches += -shared
+configure_switches += -force-pkg-config
+configure_switches += -no-gtkstyle
+
+configure_switches += -sysconfdir     /etc/xdg
+configure_switches += -prefix         /usr/lib$(LIBSUFFIX)/qt4
+configure_switches += -bindir         /usr/lib$(LIBSUFFIX)/qt4/bin
+configure_switches += -libdir         /usr/lib$(LIBSUFFIX)/qt4/lib
+configure_switches += -docdir         /usr/lib$(LIBSUFFIX)/qt4/doc
+configure_switches += -headerdir      /usr/lib$(LIBSUFFIX)/qt4/include
+configure_switches += -plugindir      /usr/lib$(LIBSUFFIX)/qt4/plugins
+configure_switches += -importdir      /usr/lib$(LIBSUFFIX)/qt4/imports
+configure_switches += -datadir        /usr/lib$(LIBSUFFIX)/qt4
+configure_switches += -translationdir /usr/lib$(LIBSUFFIX)/qt4/translations
+configure_switches += -examplesdir    /usr/lib$(LIBSUFFIX)/qt4/examples
+configure_switches += -demosdir       /usr/lib$(LIBSUFFIX)/qt4/demos
+
+configure_switches += -graphicssystem raster
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+configure_switches += -opengl es2
+else
+configure_switches += -opengl
+endif
+configure_switches += -system-libpng
+configure_switches += -system-libmng
+configure_switches += -system-libjpeg
+configure_switches += -system-libtiff
+configure_switches += -system-zlib
+configure_switches += -system-sqlite
+configure_switches += -plugin-sql-sqlite
+configure_switches += -plugin-sql-mysql
+configure_switches += -plugin-sql-odbc
+configure_switches += -openssl-linked
+configure_switches += -dbus
+configure_switches += -accessibility
+configure_switches += -glib
+configure_switches += -gstreamer
+configure_switches += -multimedia
+configure_switches += -fontconfig
+configure_switches += -webkit
+configure_switches += -no-qt3support
+configure_switches += -make libs
+configure_switches += -make tools
+configure_switches += -make examples
+configure_switches += -make demos
+configure_switches += -nomake docs
+configure_switches += -no-separate-debug-info
+configure_switches += -no-pch
+configure_switches += -no-rpath
+configure_switches += -optimized-qmake
+configure_switches += -reduce-relocations
+configure_switches += -no-openvg
+configure_switches += -verbose
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)/qt4/lib
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; sed -i "s,^\(QMAKE_INCDIR_X11 *=\).*,\1," mkspecs/common/linux.conf )
+	@( cd $(SRC_DIR) ; sed -i "s,^\(QMAKE_INCDIR_OPENGL *=\).*,\1," mkspecs/common/linux.conf )
+	@( cd $(SRC_DIR) ; sed -i "s,^\(QMAKE_LIBDIR_X11 *=\).*,\1," mkspecs/common/linux.conf )
+	@( cd $(SRC_DIR) ; sed -i "s,^\(QMAKE_LIBDIR_OPENGL *=\).*,\1," mkspecs/common/linux.conf )
+	@( cd $(SRC_DIR)/mkspecs ; rm -rf $(TARGET_SPEC_DIR) )
+	@cp -a $(CURDIR)/mkspecs/$(TARGET_SPEC_DIR) $(SRC_DIR)/mkspecs
+	@( cd $(SRC_DIR)/mkspecs/$(TARGET_SPEC_DIR) ; \
+	   cat qmake.conf.in | \
+	     sed 's,@CCACHE@,$(CCACHE),g'              | \
+	     sed 's,@LIBDIRSUFFIX@,$(LIBSUFFIX),g'     | \
+	     sed 's,@CROSS_COMPILE@,$(CROSS_PREFIX),g' | \
+	     sed 's,@SYSROOT@,$(TARGET_DEST_DIR),g'    | \
+	     sed 's,@ARCH_FLAGS@,$(ARCH_FLAGS),g'      | \
+	     sed 's,@ARCH_DEFS@,$(ARCH_DEFS),g'        | \
+	     sed 's,@HW_FLAGS@,$(HW_FLAGS),g'          > qmake.conf ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && \
+	  export PKG_CONFIG_SYSROOT=$(TARGET_DEST_DIR) ; \
+	  export PKG_CONFIG_PATH=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig:$(TARGET_DEST_DIR)/share/pkgconfig ; \
+	  ./configure $(configure_switches)
+	@cd $(SRC_DIR) && $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(QT4_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Rename build-machine tools =======
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/bin ; \
+	   for file in lrelease moc qmake rcc uic ; do \
+	     mv $$file $(TARGET)-$$file ; \
+	   done ; \
+	 )
+	@mkdir -p $(QT4_PKG)/usr/bin
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/bin ; \
+	   for file in lrelease moc qmake rcc uic ; do \
+	     ( cd $(QT4_PKG)/usr/bin ; ln -sf ../../usr/lib$(LIBSUFFIX)/qt4/bin/$(TARGET)-$$file . ) ; \
+	   done ; \
+	 )
+	# ======= Install Qmake =======
+	@( cd $(SRC_DIR)/src/tools ; $(MAKE) clean )
+	@for dir in bootstrap moc rcc uic ; do \
+	  ( cd $(SRC_DIR)/src/tools/$$dir ; \
+	    CC="$(CROSS_PREFIX)gcc --sysroot=$(TARGET_DEST_DIR)" \
+	    CXX="$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR)" \
+	    LINK="$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)" \
+	    ../../../bin/qmake -makefile -spec ../../../mkspecs/$(TARGET_SPEC_DIR) ; \
+	  ) ; \
+	 done
+	@( cd $(SRC_DIR)/src/tools ; \
+	   $(MAKE) && $(MAKE) -j1 install $(env_sysroot) ; \
+	 )
+	@( cd $(SRC_DIR)/tools/linguist/lrelease ; \
+	   $(MAKE) clean ; \
+	    CC="$(CROSS_PREFIX)gcc --sysroot=$(TARGET_DEST_DIR)" \
+	    CXX="$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR)" \
+	    LINK="$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)" \
+	    ../../../bin/qmake -makefile -spec ../../../mkspecs/$(TARGET_SPEC_DIR) ; \
+	   $(MAKE) ; \
+	   $(MAKE) -j1 install $(env_sysroot) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   $(MAKE) distclean ; \
+	   ( cd qmake ; $(MAKE) clean ) ; \
+	   export PKG_CONFIG_SYSROOT=$(TARGET_DEST_DIR) ; \
+	   export PKG_CONFIG_PATH=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig:$(TARGET_DEST_DIR)/share/pkgconfig ; \
+	   ./configure -confirm-license -opensource -prefix /usr/lib$(LIBSUFFIX)/qt4 \
+	               -arch $(ARCH) -platform $(TARGET_SPEC_DIR) \
+	               -force-pkg-config \
+	               -release \
+	               -shared \
+	               -little-endian \
+	               -host-little-endian \
+	               -optimized-qmake \
+	               -v ; \
+	  cp -a bin/qmake $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/bin ; \
+	 )
+	# ======= Remove target mkspecs/$(TARGET_SPEC_DIR) =======
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/mkspecs ; \
+	   rm -rf $(TARGET_SPEC_DIR) ; \
+	   rm -f default ; \
+	 )
+	# ======= Install Qt.pc file =======
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX) ; ln -sf qt4 qt-$(version) )
+	@cat $(pkgconfig_in) | \
+	     sed "s,@PREFIX@,/usr/lib$(LIBSUFFIX)/qt4,g" | \
+	     sed "s,@VERSION@,$(version),g" > $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig/Qt.pc
+	# ======= Remove internal used dependencies of libjscore, libwebcore ======
+	sed -i "s, -ljscore,,g" $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/libQtWebKit.la \
+	                        $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig/QtWebKit.pc
+	sed -i "s,  -lwebcore,,g" $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/libQtWebKit.la \
+	                          $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig/QtWebKit.pc
+	sed -i "s, -L../../JavaScriptCore/release,,g" $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/libQtWebKit.la \
+	                                              $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig/QtWebKit.pc
+	sed -i "s, -L../../WebCore/release,,g" $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/libQtWebKit.la \
+	                                       $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig/QtWebKit.pc
+	# ======= Link shared libraries into /usr/lib$(LIBSUFFIX) =======
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in qt4/lib/*.so* ; do \
+	     ln -sf $$file . ; \
+	   done ; \
+	 )
+	# ======= Add Profile scripts =======
+	@mkdir -p $(QT4_PKG)/etc/profile.d
+	@cat $(profile_dir)/qt4.csh.in | sed "s,@LIBDIR@,/usr/lib$(LIBSUFFIX),g" > $(QT4_PKG)/etc/profile.d/qt4.csh
+	@cat $(profile_dir)/qt4.sh.in  | sed "s,@LIBDIR@,/usr/lib$(LIBSUFFIX),g" > $(QT4_PKG)/etc/profile.d/qt4.sh
+	@chmod 0755 $(QT4_PKG)/etc/profile.d/*
+	# ======= Link pkgconfig files to 'normal' place =======
+	@mkdir -p $(QT4_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig ; \
+	   for file in *.pc ; do \
+	     ( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig ; ln -sf ../../lib$(LIBSUFFIX)/qt4/lib/pkgconfig/$$file . ) ; \
+	   done ; \
+	 )
+	# ======= Install Qt private headers =======
+	@( cd $(SRC_DIR) ; \
+	   rsync -aR \
+	         include/Qt{Core,Declarative,Gui,Script}/private \
+	         src/{corelib,declarative,gui,script}/*/*_p.h \
+	         $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/ ; \
+	 )
+	# ======= Add menu entries for Qt applications =======
+	@mkdir -p $(QT4_PKG)/usr/share/icons/hicolor/{16x16,32x32,48x48,64x64,128x128}/apps
+	@( cd $(SRC_DIR) ; \
+	   convert doc/src/images/qt-logo.png -resize 32x32 $(QT4_PKG)/usr/share/icons/hicolor/32x32/apps/qt-logo.png ; \
+	   convert doc/src/images/qt-logo.png -resize 48x48 $(QT4_PKG)/usr/share/icons/hicolor/48x48/apps/qt-logo.png ; \
+	   install -p -m644 -D tools/assistant/tools/assistant/images/assistant.png $(QT4_PKG)/usr/share/icons/hicolor/32x32/apps/assistant.png ; \
+	   install -p -m644 -D tools/assistant/tools/assistant/images/assistant-128.png $(QT4_PKG)/usr/share/icons/hicolor/128x128/apps/assistant.png ; \
+	   install -p -m644 -D tools/designer/src/designer/images/designer.png $(QT4_PKG)/usr/share/icons/hicolor/128x128/apps/designer.png ; \
+	   for icon in tools/linguist/linguist/images/icons/linguist-*-32.png ; do \
+	     file=`basename $${icon}` ; \
+	     size=`echo $${file} | cut -d- -f2` ; \
+	     install -p -m644 -D $${icon} $(QT4_PKG)/usr/share/icons/hicolor/$${size}x$${size}/apps/linguist.png ; \
+	   done ; \
+	 )
+	@mkdir -p $(QT4_PKG)/usr/share/applications
+	@( cd $(applications_dir) ; \
+	   for file in assistant designer linguist qtconfig ; do \
+	     cat $$file.desktop.in | \
+	       sed "s,@QT4LINK@,/usr/lib$(LIBSUFFIX)/qt4,g" > $(QT4_PKG)/usr/share/applications/$$file.desktop ; \
+	   done ; \
+	 )
+	# ======= Install Documentation =======
+	@mkdir -p $(QT4_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/*GPL_EXCEPTION* $(SRC_DIR)/LICENSE* \
+	       $(QT4_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(QT4_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a INSTALL *GPL_EXCEPTION* LICENSE* README changes-* doc/html \
+	         $(QT4_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libQtCLucene.la     libQtCore.la        \
+	                                    libQtDBus.la        libQtDeclarative.la \
+	                                    libQtGui.la         libQtHelp.la        \
+	                                    libQtMultimedia.la  libQtNetwork.la     \
+	                                    libQtOpenGL.la      libQtScript.la      \
+	                                    libQtScriptTools.la libQtSql.la         \
+	                                    libQtSvg.la         libQtTest.la        \
+	                                    libQtWebKit.la      libQtXml.la         \
+	                                    libQtXmlPatterns.la libphonon.la      ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libQtCLucene.prl     libQtCore.prl               \
+	                                    libQtDBus.prl        libQtDeclarative.prl        \
+	                                    libQtDesigner.prl    libQtDesignerComponents.prl \
+	                                    libQtGui.prl         libQtHelp.prl               \
+	                                    libQtMultimedia.prl  libQtNetwork.prl            \
+	                                    libQtOpenGL.prl      libQtScript.prl             \
+	                                    libQtScriptTools.prl libQtSql.prl                \
+	                                    libQtSvg.prl         libQtTest.prl               \
+	                                    libQtUiTools.prl     libQtWebKit.prl             \
+	                                    libQtXml.prl         libQtXmlPatterns.prl        \
+	                                    libphonon.prl                                  ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libQtMeeGoGraphicsSystemHelper.la  ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libQtMeeGoGraphicsSystemHelper.prl ; \
+	 )
+endif
+	# ======= Change source directory to more 'normal' place =======
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib ; \
+	   sed -i "s,$(CURDIR)/$(SRC_DIR),/usr/src/qt-$(version),g" \
+	           libQtCLucene.prl     libQtCore.prl               \
+	           libQtDBus.prl        libQtDeclarative.prl        \
+	           libQtDesigner.prl    libQtDesignerComponents.prl \
+	           libQtGui.prl         libQtHelp.prl               \
+	           libQtMultimedia.prl  libQtNetwork.prl            \
+	           libQtOpenGL.prl      libQtScript.prl             \
+	           libQtScriptTools.prl libQtSql.prl                \
+	           libQtSvg.prl         libQtTest.prl               \
+	           libQtUiTools.prl     libQtWebKit.prl             \
+	           libQtXml.prl         libQtXmlPatterns.prl        \
+	           libphonon.prl                                  ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib ; \
+	   sed -i "s,$(CURDIR)/$(SRC_DIR),/usr/src/qt-$(version),g" \
+	           libQtMeeGoGraphicsSystemHelper.prl             ; \
+	 )
+endif
+	# ======= remove toolchain path from target pkgconfig *.pc files =======
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" QtCLucene.pc     QtCore.pc               \
+	                                    QtDBus.pc        QtDeclarative.pc        \
+	                                    QtDesigner.pc    QtDesignerComponents.pc \
+	                                    QtGui.pc         QtHelp.pc               \
+	                                    QtMultimedia.pc  QtNetwork.pc            \
+	                                    QtOpenGL.pc      QtScript.pc             \
+	                                    QtScriptTools.pc QtSql.pc                \
+	                                    QtSvg.pc         QtTest.pc               \
+	                                    QtUiTools.pc     QtWebKit.pc             \
+	                                    QtXml.pc         QtXmlPatterns.pc        \
+	                                    phonon.pc                              ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" QtMeeGoGraphicsSystemHelper.pc ; \
+	 )
+endif
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(QT4_PKG))
+	# ======= Remove build-machine tools from target package =======
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/bin ; \
+	   for file in lrelease moc qmake rcc uic ; do \
+	     rm -f $(TARGET)-$$file ; \
+	   done ; \
+	 )
+	@rm -rf $(QT4_PKG)/usr/bin
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/qt4/lib ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libQtCLucene.la     libQtCore.la        \
+	                                                    libQtDBus.la        libQtDeclarative.la \
+	                                                    libQtGui.la         libQtHelp.la        \
+	                                                    libQtMultimedia.la  libQtNetwork.la     \
+	                                                    libQtOpenGL.la      libQtScript.la      \
+	                                                    libQtScriptTools.la libQtSql.la         \
+	                                                    libQtSvg.la         libQtTest.la        \
+	                                                    libQtWebKit.la      libQtXml.la         \
+	                                                    libQtXmlPatterns.la libphonon.la      ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libQtCLucene.prl     libQtCore.prl               \
+	                                                    libQtDBus.prl        libQtDeclarative.prl        \
+	                                                    libQtDesigner.prl    libQtDesignerComponents.prl \
+	                                                    libQtGui.prl         libQtHelp.prl               \
+	                                                    libQtMultimedia.prl  libQtNetwork.prl            \
+	                                                    libQtOpenGL.prl      libQtScript.prl             \
+	                                                    libQtScriptTools.prl libQtSql.prl                \
+	                                                    libQtSvg.prl         libQtTest.prl               \
+	                                                    libQtUiTools.prl     libQtWebKit.prl             \
+	                                                    libQtXml.prl         libQtXmlPatterns.prl        \
+	                                                    libphonon.prl                                  ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/qt4/lib ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libQtMeeGoGraphicsSystemHelper.la  ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libQtMeeGoGraphicsSystemHelper.prl ; \
+	 )
+endif
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" QtCLucene.pc     QtCore.pc               \
+	                                                    QtDBus.pc        QtDeclarative.pc        \
+	                                                    QtDesigner.pc    QtDesignerComponents.pc \
+	                                                    QtGui.pc         QtHelp.pc               \
+	                                                    QtMultimedia.pc  QtNetwork.pc            \
+	                                                    QtOpenGL.pc      QtScript.pc             \
+	                                                    QtScriptTools.pc QtSql.pc                \
+	                                                    QtSvg.pc         QtTest.pc               \
+	                                                    QtUiTools.pc     QtWebKit.pc             \
+	                                                    QtXml.pc         QtXmlPatterns.pc        \
+	                                                    phonon.pc                              ; \
+	 )
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/qt4/lib/pkgconfig ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" QtMeeGoGraphicsSystemHelper.pc ; \
+	 )
+endif
+	# ======= Strip binaries =======
+	@( cd $(QT4_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(QT4_PKG)/usr/lib$(LIBSUFFIX)/qt4/tests/qt4 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if [ -n "$$rpath" ] ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(QT4_PKG_DESCRIPTION_FILE): $(QT4_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(QT4_PKG_DESCRIPTION_FILE) $(QT4_PKG_INSTALL_SCRIPT)
+	@cp $(QT4_PKG_DESCRIPTION_FILE) $(QT4_PKG)/.DESCRIPTION
+	@cp $(QT4_PKG_INSTALL_SCRIPT) $(QT4_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(QT4_PKG)/.REQUIRES
+	@echo "pkgname=$(QT4_PKG_NAME)"                            >  $(QT4_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(QT4_PKG_VERSION)"                          >> $(QT4_PKG)/.PKGINFO ; \
+	 echo "arch=$(QT4_PKG_ARCH)"                               >> $(QT4_PKG)/.PKGINFO ; \
+	 echo "distroname=$(QT4_PKG_DISTRO_NAME)"                  >> $(QT4_PKG)/.PKGINFO ; \
+	 echo "distrover=$(QT4_PKG_DISTRO_VERSION)"                >> $(QT4_PKG)/.PKGINFO ; \
+	 echo "group=$(QT4_PKG_GROUP)"                             >> $(QT4_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(QT4_PKG_SHORT_DESCRIPTION)\"" >> $(QT4_PKG)/.PKGINFO ; \
+	 echo "url=$(QT4_PKG_URL)"                                 >> $(QT4_PKG)/.PKGINFO ; \
+	 echo "license=$(QT4_PKG_LICENSE)"                         >> $(QT4_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(QT4_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/qt4/4.8.6/qt4-pkg-install.sh
===================================================================
--- X11/libs/qt4/4.8.6/qt4-pkg-install.sh	(nonexistent)
+++ X11/libs/qt4/4.8.6/qt4-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/qt4/4.8.6/qt4-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/qt4/4.8.6/PATCHES
===================================================================
--- X11/libs/qt4/4.8.6/PATCHES	(nonexistent)
+++ X11/libs/qt4/4.8.6/PATCHES	(revision 563)
@@ -0,0 +1,4 @@
+
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6.patch                -p0
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6-CVE-2014-0190.patch  -p0
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6-systemtrayicon.patch -p0
Index: X11/libs/qt4/4.8.6/PATCHES.omap543x
===================================================================
--- X11/libs/qt4/4.8.6/PATCHES.omap543x	(nonexistent)
+++ X11/libs/qt4/4.8.6/PATCHES.omap543x	(revision 563)
@@ -0,0 +1,5 @@
+
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6.patch                    -p0
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6-CVE-2014-0190.patch      -p0
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6-systemtrayicon.patch     -p0
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6-webkit-NEON-Thumb2.patch -p0
Index: X11/libs/qt4/4.8.6/applications/assistant.desktop.in
===================================================================
--- X11/libs/qt4/4.8.6/applications/assistant.desktop.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/applications/assistant.desktop.in	(revision 563)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Qt4 Assistant
+Comment=Shows Qt4 documentation and examples
+Exec=@QT4LINK@/bin/assistant
+Icon=assistant
+Terminal=false
+Encoding=UTF-8
+Type=Application
+Categories=Qt;Development;Documentation;
Index: X11/libs/qt4/4.8.6/applications/designer.desktop.in
===================================================================
--- X11/libs/qt4/4.8.6/applications/designer.desktop.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/applications/designer.desktop.in	(revision 563)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Qt4 Designer
+GenericName=Interface Designer
+Comment=Design GUIs for Qt4 applications
+Exec=@QT4LINK@/bin/designer
+Icon=designer
+MimeType=application/x-designer;
+Terminal=false
+Encoding=UTF-8
+Type=Application
+Categories=Qt;Development;
Index: X11/libs/qt4/4.8.6/applications/linguist.desktop.in
===================================================================
--- X11/libs/qt4/4.8.6/applications/linguist.desktop.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/applications/linguist.desktop.in	(revision 563)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Qt4 Linguist 
+Comment=Add translations to Qt4 applications
+Exec=@QT4LINK@/bin/linguist
+Icon=linguist
+MimeType=text/vnd.trolltech.linguist;application/x-linguist;
+Terminal=false
+Encoding=UTF-8
+Type=Application
+Categories=Qt;Development;
Index: X11/libs/qt4/4.8.6/applications/qtconfig.desktop.in
===================================================================
--- X11/libs/qt4/4.8.6/applications/qtconfig.desktop.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/applications/qtconfig.desktop.in	(revision 563)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Qt4 Config
+Comment=Configure Qt4 behavior, styles, fonts
+Exec=@QT4LINK@/bin/qtconfig
+Icon=qt-logo
+Terminal=false
+Encoding=UTF-8
+Type=Application
+Categories=Qt;Settings;
Index: X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabi-g++/qmake.conf.in
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabi-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabi-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,45 @@
+#
+# qmake configuration for building with -xplatform linux-arm-gnueabi-g++
+#
+
+MAKEFILE_GENERATOR      = UNIX
+TARGET_PLATFORM         = unix
+TEMPLATE                = app
+CONFIG                  += qt warn_on release incremental link_prl gdb_dwarf_index
+QT                      += core gui
+QMAKE_INCREMENTAL_STYLE = sublib
+
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX               = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK              = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB        = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY           = @CROSS_COMPILE@objcopy
+QMAKE_STRIP             = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR            = @SYSROOT@/usr/include
+QMAKE_LIBDIR            = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2
+QMAKE_LIBS_OPENVG      += -lOpenVG
+
+
+QMAKE_LFLAGS           += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+QMAKE_LFLAGS_RELEASE   += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += -std=c++0x $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabi-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabi-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabi-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,42 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.  For licensing terms and
+** conditions see http://qt.digia.com/licensing.  For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights.  These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabihf-g++/qmake.conf.in
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabihf-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabihf-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,45 @@
+#
+# qmake configuration for building with -xplatform linux-arm-gnueabihf-g++
+#
+
+MAKEFILE_GENERATOR      = UNIX
+TARGET_PLATFORM         = unix
+TEMPLATE                = app
+CONFIG                  += qt warn_on release incremental link_prl gdb_dwarf_index
+QT                      += core gui
+QMAKE_INCREMENTAL_STYLE = sublib
+
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX               = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK              = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB        = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY           = @CROSS_COMPILE@objcopy
+QMAKE_STRIP             = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR            = @SYSROOT@/usr/include
+QMAKE_LIBDIR            = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2
+QMAKE_LIBS_OPENVG      += -lOpenVG
+
+
+QMAKE_LFLAGS           += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+QMAKE_LFLAGS_RELEASE   += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += -std=c++0x $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabihf-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabihf-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-arm-gnueabihf-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,42 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.  For licensing terms and
+** conditions see http://qt.digia.com/licensing.  For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights.  These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt4/4.8.6/mkspecs/linux-i386-gnu-g++/qmake.conf.in
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-i386-gnu-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-i386-gnu-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,45 @@
+#
+# qmake configuration for building with -xplatform linux-i386-gnu-g++
+#
+
+MAKEFILE_GENERATOR      = UNIX
+TARGET_PLATFORM         = unix
+TEMPLATE                = app
+CONFIG                  += qt warn_on release incremental link_prl gdb_dwarf_index
+QT                      += core gui
+QMAKE_INCREMENTAL_STYLE = sublib
+
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX               = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK              = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB        = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY           = @CROSS_COMPILE@objcopy
+QMAKE_STRIP             = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR            = @SYSROOT@/usr/include
+QMAKE_LIBDIR            = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2
+QMAKE_LIBS_OPENVG      += -lOpenVG
+
+
+QMAKE_LFLAGS           += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+QMAKE_LFLAGS_RELEASE   += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += -std=c++0x $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt4/4.8.6/mkspecs/linux-i386-gnu-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-i386-gnu-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-i386-gnu-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,42 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.  For licensing terms and
+** conditions see http://qt.digia.com/licensing.  For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights.  These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt4/4.8.6/mkspecs/linux-mips-gnu-g++/qmake.conf.in
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-mips-gnu-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-mips-gnu-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,45 @@
+#
+# qmake configuration for building with -xplatform linux-mips-gnu-g++
+#
+
+MAKEFILE_GENERATOR      = UNIX
+TARGET_PLATFORM         = unix
+TEMPLATE                = app
+CONFIG                  += qt warn_on release incremental link_prl gdb_dwarf_index
+QT                      += core gui
+QMAKE_INCREMENTAL_STYLE = sublib
+
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX               = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK              = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB        = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY           = @CROSS_COMPILE@objcopy
+QMAKE_STRIP             = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR            = @SYSROOT@/usr/include
+QMAKE_LIBDIR            = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2
+QMAKE_LIBS_OPENVG      += -lOpenVG
+
+
+QMAKE_LFLAGS           += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+QMAKE_LFLAGS_RELEASE   += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += -std=c++0x $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt4/4.8.6/mkspecs/linux-mips-gnu-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-mips-gnu-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-mips-gnu-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,42 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.  For licensing terms and
+** conditions see http://qt.digia.com/licensing.  For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights.  These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt4/4.8.6/mkspecs/linux-x86_64-gnu-g++/qmake.conf.in
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-x86_64-gnu-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-x86_64-gnu-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,45 @@
+#
+# qmake configuration for building with -xplatform linux-x86_64-gnu-g++
+#
+
+MAKEFILE_GENERATOR      = UNIX
+TARGET_PLATFORM         = unix
+TEMPLATE                = app
+CONFIG                  += qt warn_on release incremental link_prl gdb_dwarf_index
+QT                      += core gui
+QMAKE_INCREMENTAL_STYLE = sublib
+
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX               = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK              = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB        = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY           = @CROSS_COMPILE@objcopy
+QMAKE_STRIP             = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR            = @SYSROOT@/usr/include
+QMAKE_LIBDIR            = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2
+QMAKE_LIBS_OPENVG      += -lOpenVG
+
+
+QMAKE_LFLAGS           += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+QMAKE_LFLAGS_RELEASE   += -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += -std=c++0x $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt4/4.8.6/mkspecs/linux-x86_64-gnu-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt4/4.8.6/mkspecs/linux-x86_64-gnu-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt4/4.8.6/mkspecs/linux-x86_64-gnu-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,42 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.  For licensing terms and
+** conditions see http://qt.digia.com/licensing.  For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights.  These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt4/4.8.6/pkgconfig/Qt.pc.in
===================================================================
--- X11/libs/qt4/4.8.6/pkgconfig/Qt.pc.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/pkgconfig/Qt.pc.in	(revision 563)
@@ -0,0 +1,16 @@
+prefix=@PREFIX@
+bindir=${prefix}/bin
+datadir=${prefix}
+docdir=${prefix}/doc
+headerdir=${prefix}/include
+importdir=${prefix}/imports
+libdir=${prefix}/lib
+moc=${bindir}/moc
+plugindir=${prefix}/plugins
+qmake=${bindir}/qmake
+sysconfdir=${prefix}/etc/settings
+translationdir=${prefix}/translations
+
+Name: Qt
+Description: Qt Configuration
+Version: @VERSION@
Index: X11/libs/qt4/4.8.6/profile.d/qt4.csh.in
===================================================================
--- X11/libs/qt4/4.8.6/profile.d/qt4.csh.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/profile.d/qt4.csh.in	(revision 563)
@@ -0,0 +1,22 @@
+#!/bin/csh
+# Environment path variables for the Qt package:
+if ( ! $?QT4DIR ) then
+    # It's best to use the generic directory to avoid
+    # compiling in a version-containing path:
+    if ( -d @LIBDIR@/qt4 ) then
+        setenv QT4DIR @LIBDIR@/qt4
+    else
+        # Find the newest Qt directory and set $QT4DIR to that:
+        foreach qtd ( @LIBDIR@/qt-* )
+            if ( -d $qtd ) then
+                setenv QT4DIR $qtd
+            endif
+        end
+    endif
+endif
+set path = ( $path $QT4DIR/bin )
+if ( $?CPLUS_INCLUDE_PATH ) then
+    setenv CPLUS_INCLUDE_PATH $QT4DIR/include:$CPLUS_INCLUDE_PATH
+else
+    setenv CPLUS_INCLUDE_PATH $QT4DIR/include
+endif
Index: X11/libs/qt4/4.8.6/profile.d/qt4.sh.in
===================================================================
--- X11/libs/qt4/4.8.6/profile.d/qt4.sh.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/profile.d/qt4.sh.in	(revision 563)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Environment variables for the Qt package.
+#
+# It's best to use the generic directory to avoid
+# compiling in a version-containing path:
+if [ -d @LIBDIR@/qt4 ]; then
+  QT4DIR=@LIBDIR@/qt4
+else
+  # Find the newest Qt directory and set $QT4DIR to that:
+  for qtd in @LIBDIR@/qt-* ; do
+    if [ -d $qtd ]; then
+      QT4DIR=$qtd
+    fi
+  done
+fi
+if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then
+  CPLUS_INCLUDE_PATH=$QT4DIR/include:$CPLUS_INCLUDE_PATH
+else
+  CPLUS_INCLUDE_PATH=$QT4DIR/include
+fi
+PATH="$PATH:$QT4DIR/bin"
+export QT4DIR
+export CPLUS_INCLUDE_PATH
Index: X11/libs/qt4/4.8.6/qt4-pkg-description.in
===================================================================
--- X11/libs/qt4/4.8.6/qt4-pkg-description.in	(nonexistent)
+++ X11/libs/qt4/4.8.6/qt4-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+   |-----handy-ruler------------------------------------------------------|
+qt4: qt4 @VERSION@ (graphical user interface toolkit)
+qt4:
+qt4: Qt is a complete and well-developed object-oriented framework for
+qt4: developing graphical user interface (GUI) applications using C++.
+qt4:
+qt4: Homepage:  http://qt-project.org
+qt4:
+qt4:
+qt4:
+qt4:
+qt4:
Index: X11/libs/qt4/4.8.6-x86_32/Makefile
===================================================================
--- X11/libs/qt4/4.8.6-x86_32/Makefile	(nonexistent)
+++ X11/libs/qt4/4.8.6-x86_32/Makefile	(revision 563)
@@ -0,0 +1,440 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/qt4
+
+REQUIRES           = X11/libs/qt4/4.8.6
+
+REQUIRES          += libs/alsa-lib/1.0.28-x86_32
+REQUIRES          += X11/app/dbus-x11-launch/1.8.10-x86_32
+
+REQUIRES          += libs/libmng/2.0.2-x86_32
+REQUIRES          += libs/icu4c/54.1-x86_32
+REQUIRES          += app/cups/2.0.1-x86_32
+
+REQUIRES          += X11/libs/fontconfig/2.11.1-x86_32
+
+REQUIRES          += X11/X.org/lib/libXaw/1.0.12-x86_32
+REQUIRES          += X11/X.org/lib/libXcursor/1.1.14-x86_32
+REQUIRES          += X11/X.org/lib/libXi/1.7.4-x86_32
+REQUIRES          += X11/X.org/lib/libXinerama/1.1.3-x86_32
+REQUIRES          += X11/X.org/lib/libXrandr/1.4.2-x86_32
+REQUIRES          += X11/X.org/lib/libXv/1.0.10-x86_32
+REQUIRES          += X11/X.org/lib/libxkbfile/1.0.8-x86_32
+
+REQUIRES          += libs/gstreamer0/0.10.36-x86_32
+REQUIRES          += libs/gst-plugins-base0/0.10.36-x86_32
+
+REQUIRES          += app/sqlite/3.8.7.1-x86_32
+REQUIRES          += app/mariadb/5.5.41-x86_32
+REQUIRES          += libs/libiodbc/3.52.9-x86_32
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 4.8.6
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/x/qt4/qt-everywhere-opensource-src-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/qt-everywhere-opensource-src-$(version)
+src_dir_name       = qt-everywhere-opensource-src-$(version)
+doc_dir_name       = qt4-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+pkgconfig_in       = $(CURDIR)/pkgconfig/Qt.pc.in
+profile_dir        = $(CURDIR)/profile.d
+
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+QT4_32_PKG_NAME                = qt4-x32
+QT4_32_PKG_VERSION             = 4.8.6
+QT4_32_PKG_ARCH                = $(TOOLCHAIN)
+QT4_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+QT4_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+QT4_32_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+QT4_32_PKG_SHORT_DESCRIPTION   = graphical user interface toolkit
+QT4_32_PKG_URL                 = $(BUG_URL)
+QT4_32_PKG_LICENSE             = GPLv3
+QT4_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(QT4_32_PKG_NAME)-pkg-description
+QT4_32_PKG_DESCRIPTION_FILE_IN = $(QT4_32_PKG_NAME)-pkg-description.in
+QT4_32_PKG_INSTALL_SCRIPT      = $(QT4_32_PKG_NAME)-pkg-install.sh
+
+QT4_32_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(QT4_32_PKG_NAME)-package
+
+pkg_basename     = $(QT4_32_PKG_NAME)-$(QT4_32_PKG_VERSION)-$(QT4_32_PKG_ARCH)-$(QT4_32_PKG_DISTRO_NAME)-$(QT4_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = INSTALL_ROOT=$(QT4_32_PKG)
+
+
+ARCH   = i386
+ABI    = gnu
+
+
+TARGET_SPEC_DIR = linux-$(ARCH)-$(ABI)-g++
+
+
+configure_switches  = -confirm-license
+configure_switches += -opensource
+configure_switches += -arch $(ARCH)
+configure_switches += -platform linux-g++
+configure_switches += -xplatform $(TARGET_SPEC_DIR)
+configure_switches += -release
+configure_switches += -shared
+configure_switches += -force-pkg-config
+configure_switches += -no-gtkstyle
+
+configure_switches += -sysconfdir     /etc/xdg
+configure_switches += -prefix         /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4
+configure_switches += -bindir         /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/bin
+configure_switches += -libdir         /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib
+configure_switches += -docdir         /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/doc
+configure_switches += -headerdir      /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/include
+configure_switches += -plugindir      /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/plugins
+configure_switches += -importdir      /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/imports
+configure_switches += -datadir        /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4
+configure_switches += -translationdir /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/translations
+configure_switches += -examplesdir    /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/examples
+configure_switches += -demosdir       /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/demos
+
+configure_switches += -graphicssystem raster
+
+configure_switches += -opengl
+configure_switches += -system-libpng
+configure_switches += -system-libmng
+configure_switches += -system-libjpeg
+configure_switches += -system-libtiff
+configure_switches += -system-zlib
+configure_switches += -system-sqlite
+configure_switches += -plugin-sql-sqlite
+configure_switches += -plugin-sql-mysql
+configure_switches += -plugin-sql-odbc
+configure_switches += -openssl-linked
+configure_switches += -dbus
+configure_switches += -accessibility
+configure_switches += -glib
+configure_switches += -gstreamer
+configure_switches += -multimedia
+configure_switches += -fontconfig
+configure_switches += -webkit
+configure_switches += -no-qt3support
+configure_switches += -make libs
+configure_switches += -make tools
+configure_switches += -nomake examples
+configure_switches += -nomake demos
+configure_switches += -nomake docs
+configure_switches += -no-separate-debug-info
+configure_switches += -no-pch
+configure_switches += -no-rpath
+configure_switches += -optimized-qmake
+configure_switches += -reduce-relocations
+configure_switches += -no-openvg
+configure_switches += -verbose
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; sed -i "s,^\(QMAKE_INCDIR_X11 *=\).*,\1," mkspecs/common/linux.conf )
+	@( cd $(SRC_DIR) ; sed -i "s,^\(QMAKE_INCDIR_OPENGL *=\).*,\1," mkspecs/common/linux.conf )
+	@( cd $(SRC_DIR) ; sed -i "s,^\(QMAKE_LIBDIR_X11 *=\).*,\1," mkspecs/common/linux.conf )
+	@( cd $(SRC_DIR) ; sed -i "s,^\(QMAKE_LIBDIR_OPENGL *=\).*,\1," mkspecs/common/linux.conf )
+	@( cd $(SRC_DIR)/mkspecs ; rm -rf $(TARGET_SPEC_DIR) )
+	@cp -a $(CURDIR)/mkspecs/$(TARGET_SPEC_DIR) $(SRC_DIR)/mkspecs
+	@( cd $(SRC_DIR)/mkspecs/$(TARGET_SPEC_DIR) ; \
+	   cat qmake.conf.in | \
+	     sed 's,@CCACHE@,$(CCACHE),g'                       | \
+	     sed 's,@LIBDIRSUFFIX@,$(MULTILIB_X86_32_SUFFIX),g' | \
+	     sed 's,@CROSS_COMPILE@,$(CROSS_PREFIX),g'          | \
+	     sed 's,@SYSROOT@,$(TARGET_DEST_DIR),g'             | \
+	     sed 's,@ARCH_FLAGS@,$(ARCH_FLAGS),g'               | \
+	     sed 's,@ARCH_DEFS@,$(ARCH_DEFS),g'                 | \
+	     sed 's,@HW_FLAGS@,$(HW_FLAGS),g'                   > qmake.conf ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && \
+	  export PKG_CONFIG_SYSROOT=$(TARGET_DEST_DIR) ; \
+	  export PKG_CONFIG_PATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig:$(TARGET_DEST_DIR)/share/pkgconfig ; \
+	  ./configure $(configure_switches)
+	@cd $(SRC_DIR) && $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(QT4_32_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Rename build-machine tools =======
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/bin ; \
+	   for file in lrelease moc qmake rcc uic ; do \
+	     mv $$file $(TARGET32)-$$file ; \
+	   done ; \
+	 )
+	@mkdir -p $(QT4_32_PKG)/usr/bin/32
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/bin ; \
+	   for file in lrelease moc qmake rcc uic ; do \
+	     ( cd $(QT4_32_PKG)/usr/bin/32 ; ln -sf ../../../usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/bin/$(TARGET32)-$$file . ) ; \
+	   done ; \
+	 )
+	# ======= Install Qmake =======
+	@( cd $(SRC_DIR)/src/tools ; $(MAKE) clean )
+	@for dir in bootstrap moc rcc uic ; do \
+	  ( cd $(SRC_DIR)/src/tools/$$dir ; \
+	    CC="$(CROSS_PREFIX)gcc --sysroot=$(TARGET_DEST_DIR) -m32" \
+	    CXX="$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR) -m32" \
+	    LINK="$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR) -m32 -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)" \
+	    ../../../bin/qmake -makefile -spec ../../../mkspecs/$(TARGET_SPEC_DIR) ; \
+	  ) ; \
+	 done
+	@( cd $(SRC_DIR)/src/tools ; \
+	   $(MAKE) && $(MAKE) -j1 install $(env_sysroot) ; \
+	 )
+	@( cd $(SRC_DIR)/tools/linguist/lrelease ; \
+	   $(MAKE) clean ; \
+	    CC="$(CROSS_PREFIX)gcc --sysroot=$(TARGET_DEST_DIR) -m32" \
+	    CXX="$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR) -m32" \
+	    LINK="$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR) -m32 -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)" \
+	    ../../../bin/qmake -makefile -spec ../../../mkspecs/$(TARGET_SPEC_DIR) ; \
+	   $(MAKE) ; \
+	   $(MAKE) -j1 install $(env_sysroot) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   $(MAKE) distclean ; \
+	   ( cd qmake ; $(MAKE) clean ) ; \
+	   export PKG_CONFIG_SYSROOT=$(TARGET_DEST_DIR) ; \
+	   export PKG_CONFIG_PATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig:$(TARGET_DEST_DIR)/share/pkgconfig ; \
+	   ./configure -confirm-license -opensource -prefix /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4 \
+	               -arch $(ARCH) -platform $(TARGET_SPEC_DIR) \
+	               -force-pkg-config \
+	               -release \
+	               -shared \
+	               -little-endian \
+	               -host-little-endian \
+	               -optimized-qmake \
+	               -v ; \
+	  cp -a bin/qmake $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/bin ; \
+	 )
+	# ======= Remove target mkspecs/$(TARGET_SPEC_DIR) =======
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/mkspecs ; \
+	   rm -rf $(TARGET_SPEC_DIR) ; \
+	   rm -f default ; \
+	 )
+	# ======= Install Qt.pc file =======
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; ln -sf qt4 qt-$(version) )
+	@cat $(pkgconfig_in) | \
+	     sed "s,@PREFIX@,/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4,g" | \
+	     sed "s,@VERSION@,$(version),g" > $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/pkgconfig/Qt.pc
+	# ======= Remove internal used dependencies of libjscore, libwebcore ======
+	sed -i "s, -ljscore,,g" $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/libQtWebKit.la \
+	                        $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/pkgconfig/QtWebKit.pc
+	sed -i "s,  -lwebcore,,g" $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/libQtWebKit.la \
+	                          $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/pkgconfig/QtWebKit.pc
+	sed -i "s, -L../../JavaScriptCore/release,,g" $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/libQtWebKit.la \
+	                                              $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/pkgconfig/QtWebKit.pc
+	sed -i "s, -L../../WebCore/release,,g" $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/libQtWebKit.la \
+	                                       $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/pkgconfig/QtWebKit.pc
+	# ======= Link shared libraries into /usr/lib$(MULTILIB_X86_32_SUFFIX) =======
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in qt4/lib/*.so* ; do \
+	     ln -sf $$file . ; \
+	   done ; \
+	 )
+	# ======= Add Profile scripts =======
+	@mkdir -p $(QT4_32_PKG)/etc/profile.d/32
+	@cat $(profile_dir)/qt4.csh.in | sed "s,@LIBDIR@,/usr/lib$(MULTILIB_X86_32_SUFFIX),g" > $(QT4_32_PKG)/etc/profile.d/32/qt4.csh
+	@cat $(profile_dir)/qt4.sh.in  | sed "s,@LIBDIR@,/usr/lib$(MULTILIB_X86_32_SUFFIX),g" > $(QT4_32_PKG)/etc/profile.d/32/qt4.sh
+	@chmod 0644 $(QT4_32_PKG)/etc/profile.d/32/*
+	# ======= Link pkgconfig files to 'normal' place =======
+	@mkdir -p $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/pkgconfig ; \
+	   for file in *.pc ; do \
+	     ( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; ln -sf ../../lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/pkgconfig/$$file . ) ; \
+	   done ; \
+	 )
+	# ======= Install Qt private headers =======
+	@( cd $(SRC_DIR) ; \
+	   rsync -aR \
+	         include/Qt{Core,Declarative,Gui,Script}/private \
+	         src/{corelib,declarative,gui,script}/*/*_p.h \
+	         $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/ ; \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libQtCLucene.la     libQtCore.la        \
+	                                    libQtDBus.la        libQtDeclarative.la \
+	                                    libQtGui.la         libQtHelp.la        \
+	                                    libQtMultimedia.la  libQtNetwork.la     \
+	                                    libQtOpenGL.la      libQtScript.la      \
+	                                    libQtScriptTools.la libQtSql.la         \
+	                                    libQtSvg.la         libQtTest.la        \
+	                                    libQtWebKit.la      libQtXml.la         \
+	                                    libQtXmlPatterns.la libphonon.la      ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libQtCLucene.prl     libQtCore.prl               \
+	                                    libQtDBus.prl        libQtDeclarative.prl        \
+	                                    libQtDesigner.prl    libQtDesignerComponents.prl \
+	                                    libQtGui.prl         libQtHelp.prl               \
+	                                    libQtMultimedia.prl  libQtNetwork.prl            \
+	                                    libQtOpenGL.prl      libQtScript.prl             \
+	                                    libQtScriptTools.prl libQtSql.prl                \
+	                                    libQtSvg.prl         libQtTest.prl               \
+	                                    libQtUiTools.prl     libQtWebKit.prl             \
+	                                    libQtXml.prl         libQtXmlPatterns.prl        \
+	                                    libphonon.prl                                  ; \
+	 )
+	# ======= Change source directory to more 'normal' place =======
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib ; \
+	   sed -i "s,$(CURDIR)/$(SRC_DIR),/usr/src/qt-$(version),g" \
+	           libQtCLucene.prl     libQtCore.prl               \
+	           libQtDBus.prl        libQtDeclarative.prl        \
+	           libQtDesigner.prl    libQtDesignerComponents.prl \
+	           libQtGui.prl         libQtHelp.prl               \
+	           libQtMultimedia.prl  libQtNetwork.prl            \
+	           libQtOpenGL.prl      libQtScript.prl             \
+	           libQtScriptTools.prl libQtSql.prl                \
+	           libQtSvg.prl         libQtTest.prl               \
+	           libQtUiTools.prl     libQtWebKit.prl             \
+	           libQtXml.prl         libQtXmlPatterns.prl        \
+	           libphonon.prl                                  ; \
+	 )
+	# ======= remove toolchain path from target pkgconfig *.pc files =======
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" QtCLucene.pc     QtCore.pc               \
+	                                    QtDBus.pc        QtDeclarative.pc        \
+	                                    QtDesigner.pc    QtDesignerComponents.pc \
+	                                    QtGui.pc         QtHelp.pc               \
+	                                    QtMultimedia.pc  QtNetwork.pc            \
+	                                    QtOpenGL.pc      QtScript.pc             \
+	                                    QtScriptTools.pc QtSql.pc                \
+	                                    QtSvg.pc         QtTest.pc               \
+	                                    QtUiTools.pc     QtWebKit.pc             \
+	                                    QtXml.pc         QtXmlPatterns.pc        \
+	                                    phonon.pc                              ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(QT4_32_PKG))
+	# ======= Remove build-machine tools from target package =======
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/bin ; \
+	   for file in lrelease moc qmake rcc uic ; do \
+	     rm -f $(TARGET32)-$$file ; \
+	   done ; \
+	 )
+	@rm -rf $(QT4_32_PKG)/usr/bin
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libQtCLucene.la     libQtCore.la        \
+	                                                    libQtDBus.la        libQtDeclarative.la \
+	                                                    libQtGui.la         libQtHelp.la        \
+	                                                    libQtMultimedia.la  libQtNetwork.la     \
+	                                                    libQtOpenGL.la      libQtScript.la      \
+	                                                    libQtScriptTools.la libQtSql.la         \
+	                                                    libQtSvg.la         libQtTest.la        \
+	                                                    libQtWebKit.la      libQtXml.la         \
+	                                                    libQtXmlPatterns.la libphonon.la      ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libQtCLucene.prl     libQtCore.prl               \
+	                                                    libQtDBus.prl        libQtDeclarative.prl        \
+	                                                    libQtDesigner.prl    libQtDesignerComponents.prl \
+	                                                    libQtGui.prl         libQtHelp.prl               \
+	                                                    libQtMultimedia.prl  libQtNetwork.prl            \
+	                                                    libQtOpenGL.prl      libQtScript.prl             \
+	                                                    libQtScriptTools.prl libQtSql.prl                \
+	                                                    libQtSvg.prl         libQtTest.prl               \
+	                                                    libQtUiTools.prl     libQtWebKit.prl             \
+	                                                    libQtXml.prl         libQtXmlPatterns.prl        \
+	                                                    libphonon.prl                                  ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/lib/pkgconfig ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" QtCLucene.pc     QtCore.pc               \
+	                                                    QtDBus.pc        QtDeclarative.pc        \
+	                                                    QtDesigner.pc    QtDesignerComponents.pc \
+	                                                    QtGui.pc         QtHelp.pc               \
+	                                                    QtMultimedia.pc  QtNetwork.pc            \
+	                                                    QtOpenGL.pc      QtScript.pc             \
+	                                                    QtScriptTools.pc QtSql.pc                \
+	                                                    QtSvg.pc         QtTest.pc               \
+	                                                    QtUiTools.pc     QtWebKit.pc             \
+	                                                    QtXml.pc         QtXmlPatterns.pc        \
+	                                                    phonon.pc                              ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(QT4_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(QT4_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt4/tests/qt4 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if [ -n "$$rpath" ] ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(QT4_32_PKG_DESCRIPTION_FILE): $(QT4_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(QT4_32_PKG_DESCRIPTION_FILE) $(QT4_32_PKG_INSTALL_SCRIPT)
+	@cp $(QT4_32_PKG_DESCRIPTION_FILE) $(QT4_32_PKG)/.DESCRIPTION
+	@cp $(QT4_32_PKG_INSTALL_SCRIPT) $(QT4_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(QT4_32_PKG)/.REQUIRES
+	@echo "pkgname=$(QT4_32_PKG_NAME)"                            >  $(QT4_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(QT4_32_PKG_VERSION)"                          >> $(QT4_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(QT4_32_PKG_ARCH)"                               >> $(QT4_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(QT4_32_PKG_DISTRO_NAME)"                  >> $(QT4_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(QT4_32_PKG_DISTRO_VERSION)"                >> $(QT4_32_PKG)/.PKGINFO ; \
+	 echo "group=$(QT4_32_PKG_GROUP)"                             >> $(QT4_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(QT4_32_PKG_SHORT_DESCRIPTION)\"" >> $(QT4_32_PKG)/.PKGINFO ; \
+	 echo "url=$(QT4_32_PKG_URL)"                                 >> $(QT4_32_PKG)/.PKGINFO ; \
+	 echo "license=$(QT4_32_PKG_LICENSE)"                         >> $(QT4_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(QT4_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/qt4/4.8.6-x86_32/qt4-x32-pkg-install.sh
===================================================================
--- X11/libs/qt4/4.8.6-x86_32/qt4-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/qt4/4.8.6-x86_32/qt4-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/qt4/4.8.6-x86_32/qt4-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/qt4/4.8.6-x86_32/PATCHES
===================================================================
--- X11/libs/qt4/4.8.6-x86_32/PATCHES	(nonexistent)
+++ X11/libs/qt4/4.8.6-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,4 @@
+
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6.patch                -p0
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6-CVE-2014-0190.patch  -p0
+../../../../sources/packages/x/qt4/patches/qt4-4.8.6-systemtrayicon.patch -p0
Index: X11/libs/qt4/4.8.6-x86_32/mkspecs/linux-i386-gnu-g++/qmake.conf.in
===================================================================
--- X11/libs/qt4/4.8.6-x86_32/mkspecs/linux-i386-gnu-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt4/4.8.6-x86_32/mkspecs/linux-i386-gnu-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,45 @@
+#
+# qmake configuration for building with arm-none-linux-gnueabi-g++
+#
+
+MAKEFILE_GENERATOR      = UNIX
+TARGET_PLATFORM         = unix
+TEMPLATE                = app
+CONFIG                  += qt warn_on release incremental link_prl gdb_dwarf_index
+QT                      += core gui
+QMAKE_INCREMENTAL_STYLE = sublib
+
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX               = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK              = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB        = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY           = @CROSS_COMPILE@objcopy
+QMAKE_STRIP             = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR            = @SYSROOT@/usr/include
+QMAKE_LIBDIR            = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2
+QMAKE_LIBS_OPENVG      += -lOpenVG
+
+
+QMAKE_LFLAGS           += -m32 -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+QMAKE_LFLAGS_RELEASE   += -m32 -L@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += -std=c++0x $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt4/4.8.6-x86_32/mkspecs/linux-i386-gnu-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt4/4.8.6-x86_32/mkspecs/linux-i386-gnu-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt4/4.8.6-x86_32/mkspecs/linux-i386-gnu-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,42 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.  For licensing terms and
+** conditions see http://qt.digia.com/licensing.  For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights.  These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt4/4.8.6-x86_32/pkgconfig/Qt.pc.in
===================================================================
--- X11/libs/qt4/4.8.6-x86_32/pkgconfig/Qt.pc.in	(nonexistent)
+++ X11/libs/qt4/4.8.6-x86_32/pkgconfig/Qt.pc.in	(revision 563)
@@ -0,0 +1,16 @@
+prefix=@PREFIX@
+bindir=${prefix}/bin
+datadir=${prefix}
+docdir=${prefix}/doc
+headerdir=${prefix}/include
+importdir=${prefix}/imports
+libdir=${prefix}/lib
+moc=${bindir}/moc
+plugindir=${prefix}/plugins
+qmake=${bindir}/qmake
+sysconfdir=${prefix}/etc/settings
+translationdir=${prefix}/translations
+
+Name: Qt
+Description: Qt Configuration
+Version: @VERSION@
Index: X11/libs/qt4/4.8.6-x86_32/profile.d/qt4.csh.in
===================================================================
--- X11/libs/qt4/4.8.6-x86_32/profile.d/qt4.csh.in	(nonexistent)
+++ X11/libs/qt4/4.8.6-x86_32/profile.d/qt4.csh.in	(revision 563)
@@ -0,0 +1,22 @@
+#!/bin/csh
+# Environment path variables for the Qt package:
+if ( ! $?QT4DIR ) then
+    # It's best to use the generic directory to avoid
+    # compiling in a version-containing path:
+    if ( -d @LIBDIR@/qt4 ) then
+        setenv QT4DIR @LIBDIR@/qt4
+    else
+        # Find the newest Qt directory and set $QT4DIR to that:
+        foreach qtd ( @LIBDIR@/qt-* )
+            if ( -d $qtd ) then
+                setenv QT4DIR $qtd
+            endif
+        end
+    endif
+endif
+set path = ( $path $QT4DIR/bin )
+if ( $?CPLUS_INCLUDE_PATH ) then
+    setenv CPLUS_INCLUDE_PATH $QT4DIR/include:$CPLUS_INCLUDE_PATH
+else
+    setenv CPLUS_INCLUDE_PATH $QT4DIR/include
+endif
Index: X11/libs/qt4/4.8.6-x86_32/profile.d/qt4.sh.in
===================================================================
--- X11/libs/qt4/4.8.6-x86_32/profile.d/qt4.sh.in	(nonexistent)
+++ X11/libs/qt4/4.8.6-x86_32/profile.d/qt4.sh.in	(revision 563)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Environment variables for the Qt package.
+#
+# It's best to use the generic directory to avoid
+# compiling in a version-containing path:
+if [ -d @LIBDIR@/qt4 ]; then
+  QT4DIR=@LIBDIR@/qt4
+else
+  # Find the newest Qt directory and set $QT4DIR to that:
+  for qtd in @LIBDIR@/qt-* ; do
+    if [ -d $qtd ]; then
+      QT4DIR=$qtd
+    fi
+  done
+fi
+if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then
+  CPLUS_INCLUDE_PATH=$QT4DIR/include:$CPLUS_INCLUDE_PATH
+else
+  CPLUS_INCLUDE_PATH=$QT4DIR/include
+fi
+PATH="$PATH:$QT4DIR/bin"
+export QT4DIR
+export CPLUS_INCLUDE_PATH
Index: X11/libs/qt4/4.8.6-x86_32/qt4-x32-pkg-description.in
===================================================================
--- X11/libs/qt4/4.8.6-x86_32/qt4-x32-pkg-description.in	(nonexistent)
+++ X11/libs/qt4/4.8.6-x86_32/qt4-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+       |-----handy-ruler------------------------------------------------------|
+qt4-x32: qt4-x32 @VERSION@ (x86_32 graphical user interface toolkit)
+qt4-x32:
+qt4-x32: Qt is a complete and well-developed object-oriented framework for
+qt4-x32: developing graphical user interface (GUI) applications using C++.
+qt4-x32:
+qt4-x32: Homepage:  http://qt-project.org
+qt4-x32:
+qt4-x32:
+qt4-x32:
+qt4-x32:
+qt4-x32:
Index: X11/libs/qt5/5.4.0/Makefile
===================================================================
--- X11/libs/qt5/5.4.0/Makefile	(nonexistent)
+++ X11/libs/qt5/5.4.0/Makefile	(revision 563)
@@ -0,0 +1,689 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/qt5
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/4.9.2
+endif
+REQUIRES          += net/ca-certificates/40.0.2
+REQUIRES          += X11/app/desktop-file-utils/0.22
+REQUIRES          += X11/libs/hicolor-icon-theme/0.14
+REQUIRES          += X11/app/xdg-utils/1.1.0
+
+REQUIRES          += libs/alsa-lib/1.0.28
+REQUIRES          += X11/app/dbus-x11-launch/1.8.10
+
+REQUIRES          += libs/libmng/2.0.2
+REQUIRES          += libs/icu4c/54.1
+REQUIRES          += app/cups/2.0.1
+
+REQUIRES          += X11/libs/fontconfig/2.11.1
+
+REQUIRES          += X11/X.org/lib/libXaw/1.0.12
+REQUIRES          += X11/X.org/lib/libXcursor/1.1.14
+REQUIRES          += X11/X.org/lib/libXi/1.7.4
+REQUIRES          += X11/X.org/lib/libXinerama/1.1.3
+REQUIRES          += X11/X.org/lib/libXrandr/1.4.2
+REQUIRES          += X11/X.org/lib/libXv/1.0.10
+REQUIRES          += X11/X.org/lib/libxkbfile/1.0.8
+
+REQUIRES          += X11/X.org/xcb/xcb-util-cursor/0.1.1
+REQUIRES          += X11/X.org/xcb/xcb-util-keysyms/0.4.0
+REQUIRES          += X11/X.org/xcb/xcb-util-wm/0.4.1
+
+REQUIRES          += libs/gstreamer/1.4.5
+REQUIRES          += libs/gst-plugins-base/1.4.5
+
+REQUIRES          += app/sqlite/3.8.7.1
+REQUIRES          += app/mariadb/5.5.41
+REQUIRES          += libs/libiodbc/3.52.9
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.4.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/x/qt5/qt-everywhere-opensource-src-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/qt-everywhere-opensource-src-$(version)
+src_dir_name       = qt-everywhere-opensource-src-$(version)
+doc_dir_name       = qt5-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+pkgconfig_in       = $(CURDIR)/pkgconfig/Qt5.pc.in
+profile_dir        = $(CURDIR)/profile.d
+applications_dir   = $(CURDIR)/applications
+
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X)),)
+PATCHES = PATCHES.eglfs
+else
+ifneq ($(filter $(HARDWARE),$(HARDWARE_B74) $(HARDWARE_CI20)),)
+PATCHES = PATCHES.mips
+else
+PATCHES = PATCHES
+endif
+endif
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+QT5_PKG_NAME                = qt5
+QT5_PKG_VERSION             = 5.4.0
+QT5_PKG_ARCH                = $(TOOLCHAIN)
+QT5_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+QT5_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+QT5_PKG_GROUP               = $(PKG_GROUP)
+###                          |---handy-ruler-------------------------------|
+QT5_PKG_SHORT_DESCRIPTION   = graphical user interface toolkit
+QT5_PKG_URL                 = $(BUG_URL)
+QT5_PKG_LICENSE             = GPLv3
+QT5_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(QT5_PKG_NAME)-pkg-description
+QT5_PKG_DESCRIPTION_FILE_IN = $(QT5_PKG_NAME)-pkg-description.in
+QT5_PKG_INSTALL_SCRIPT      = $(QT5_PKG_NAME)-pkg-install.sh
+
+QT5_PKG          = $(CURDIR)/$(TARGET_BUILD_DIR)/$(QT5_PKG_NAME)-package
+
+pkg_basename     = $(QT5_PKG_NAME)-$(QT5_PKG_VERSION)-$(QT5_PKG_ARCH)-$(QT5_PKG_DISTRO_NAME)-$(QT5_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = INSTALL_ROOT=$(QT5_PKG)
+
+QT5_JOBS = -j$(NUMPROCS)
+
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CB3X) $(HARDWARE_FFRK3288) $(HARDWARE_BEAGLE) $(HARDWARE_OMAP5UEVM)),)
+ARCH   = arm
+ABI    = gnueabihf
+endif
+ifneq ($(filter $(HARDWARE),$(HARDWARE_DM64X)),)
+ARCH   = arm
+ABI    = gnueabi
+endif
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC32)),)
+ARCH   = i386
+ABI    = gnu
+endif
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64)),)
+ARCH   = x86_64
+ABI    = gnu
+endif
+ifneq ($(filter $(HARDWARE),$(HARDWARE_B74) $(HARDWARE_CI20)),)
+ARCH   = mips
+ABI    = gnu
+endif
+
+TARGET_SPEC_DIR = linux-$(ARCH)-$(ABI)-g++
+DEVICE_SPEC_DIR = linux-$(HARDWARE)-g++
+
+QT_BUILD_ENVIRONMENT  = export PKG_CONFIG=/usr/bin/pkg-config ;
+QT_BUILD_ENVIRONMENT += export PKG_CONFIG_SYSROOT_DIR=$(TARGET_DEST_DIR) ;
+QT_BUILD_ENVIRONMENT += export PKG_CONFIG_PATH=$(ROOTFS_DEST_DIR)/usr/lib/pkgconfig:$(ROOTFS_DEST_DIR)/usr/share/pkgconfig ;
+QT_BUILD_ENVIRONMENT += export PKG_CONFIG_LIBDIR=$(ROOTFS_DEST_DIR)/usr/lib/pkgconfig:$(ROOTFS_DEST_DIR)/usr/share/pkgconfig ;
+
+
+configure_switches  = -confirm-license
+configure_switches += -opensource
+configure_switches += -device $(HARDWARE)
+configure_switches += -device-option CCACHE=$(CCACHE)
+configure_switches += -device-option CROSS_COMPILE=$(CROSS_PREFIX)
+
+# ======= Target compiler doesn't support MIPS DSP/DSPr2 =======
+ifneq ($(filter $(HARDWARE),$(HARDWARE_B74) $(HARDWARE_CI20)),)
+configure_switches += -no-mips_dsp
+configure_switches += -no-mips_dspr2
+endif
+
+configure_switches += -sysroot $(TARGET_DEST_DIR)
+configure_switches += -extprefix /usr/lib$(LIBSUFFIX)/qt5
+
+configure_switches += -sysconfdir     /etc/xdg
+configure_switches += -bindir         /usr/lib$(LIBSUFFIX)/qt5/bin
+configure_switches += -headerdir      /usr/lib$(LIBSUFFIX)/qt5/include
+configure_switches += -libdir         /usr/lib$(LIBSUFFIX)/qt5/lib
+configure_switches += -archdatadir    /usr/lib$(LIBSUFFIX)/qt5
+configure_switches += -plugindir      /usr/lib$(LIBSUFFIX)/qt5/plugins
+configure_switches += -libexecdir     /usr/lib$(LIBSUFFIX)/qt5/libexec
+configure_switches += -importdir      /usr/lib$(LIBSUFFIX)/qt5/imports
+configure_switches += -qmldir         /usr/lib$(LIBSUFFIX)/qt5/qml
+configure_switches += -datadir        /usr/lib$(LIBSUFFIX)/qt5
+configure_switches += -docdir         /usr/lib$(LIBSUFFIX)/qt5/doc
+configure_switches += -translationdir /usr/lib$(LIBSUFFIX)/qt5/translations
+configure_switches += -examplesdir    /usr/lib$(LIBSUFFIX)/qt5/examples
+configure_switches += -testsdir       /usr/lib$(LIBSUFFIX)/qt5/tests
+
+configure_switches += -release
+configure_switches += -shared
+configure_switches += -force-pkg-config
+configure_switches += -c++11
+ifeq ($(filter $(HARDWARE),$(HARDWARE_PC64)),)
+configure_switches += -no-largefile
+endif
+configure_switches += -no-gtkstyle
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X) $(HARDWARE_CI20)),)
+configure_switches += -opengl es2
+else
+configure_switches += -opengl
+endif
+configure_switches += -accessibility
+configure_switches += -system-sqlite
+configure_switches += -plugin-sql-sqlite
+configure_switches += -plugin-sql-mysql
+configure_switches += -plugin-sql-odbc
+configure_switches += -system-zlib
+configure_switches += -mtdev
+configure_switches += -system-libpng
+configure_switches += -system-libjpeg
+configure_switches += -system-freetype
+configure_switches += -system-harfbuzz
+configure_switches += -openssl-linked
+configure_switches += -system-pcre
+configure_switches += -system-xcb
+configure_switches += -xinput2
+configure_switches += -xcb-xlib
+configure_switches += -glib
+configure_switches += -no-pulseaudio
+configure_switches += -alsa
+configure_switches += -gui
+configure_switches += -widgets
+configure_switches += -nis
+configure_switches += -cups
+configure_switches += -evdev
+configure_switches += -icu
+configure_switches += -dbus
+configure_switches += -no-use-gold-linker
+
+configure_switches += -xcb
+configure_switches += -no-directfb
+configure_switches += -linuxfb
+
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CB1X)),)
+configure_switches += -no-eglfs
+configure_switches += -no-kms
+else
+configure_switches += -eglfs
+ifneq ($(filter $(HARDWARE),$(HARDWARE_CI20)),)
+configure_switches += -no-kms
+else
+configure_switches += -kms
+endif
+endif
+
+configure_switches += -qpa xcb
+
+configure_switches += -qreal double
+configure_switches += -no-warnings-are-errors
+configure_switches += -make libs
+configure_switches += -make tools
+configure_switches += -make examples
+configure_switches += -make tests
+configure_switches += -no-strip
+configure_switches += -no-pch
+configure_switches += -no-rpath
+configure_switches += -optimized-qmake
+configure_switches += -verbose
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)/qt5/lib
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+ifneq ($(filter $(HARDWARE),$(HARDWARE_BEAGLE)),)
+	# ======= Remove not needed 'beagleboard' device specification =======
+	@( cd $(SRC_DIR)/qtbase/mkspecs/devices ; \
+	   rm -rf linux-beagleboard-g++ ; \
+	 )
+endif
+	@cp -a $(CURDIR)/mkspecs/devices/$(DEVICE_SPEC_DIR) $(SRC_DIR)/qtbase/mkspecs/devices
+	@cp -a $(CURDIR)/mkspecs/$(TARGET_SPEC_DIR) $(SRC_DIR)/qtbase/mkspecs
+	@( cd $(SRC_DIR)/qtbase/mkspecs/devices/$(DEVICE_SPEC_DIR) ; \
+	   cat qmake.conf.in | \
+	     sed 's,@LIBDIRSUFFIX@,$(LIBSUFFIX),g'     | \
+	     sed 's,@ARCH_FLAGS@,$(ARCH_FLAGS),g'      | \
+	     sed 's,@ARCH_DEFS@,$(ARCH_DEFS),g'        | \
+	     sed 's,@HW_FLAGS@,$(HW_FLAGS),g'          > qmake.conf ; \
+	 )
+	@( cd $(SRC_DIR)/qtbase/mkspecs/$(TARGET_SPEC_DIR) ; \
+	   cat qmake.conf.in | \
+	     sed 's,@CCACHE@,$(CCACHE),g'              | \
+	     sed 's,@LIBDIRSUFFIX@,$(LIBSUFFIX),g'     | \
+	     sed 's,@CROSS_COMPILE@,$(CROSS_PREFIX),g' | \
+	     sed 's,@SYSROOT@,$(TARGET_DEST_DIR),g'    | \
+	     sed 's,@ARCH_FLAGS@,$(ARCH_FLAGS),g'      | \
+	     sed 's,@ARCH_DEFS@,$(ARCH_DEFS),g'        | \
+	     sed 's,@HW_FLAGS@,$(HW_FLAGS),g'          > qmake.conf ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && \
+	  $(QT_BUILD_ENVIRONMENT) CFG_ARCH="$(ARCH)" ./configure $(configure_switches)
+	# ======= Fix configure error for __x86_64__ architecture =======
+ifneq ($(filter $(HARDWARE),$(HARDWARE_PC64)),)
+	@( cd $(SRC_DIR) ; \
+	   sed -i "s,^\(#define QT_POINTER_SIZE\).*,\1 8," qtbase/src/corelib/global/qconfig.h ; \
+	 )
+endif
+	@cd $(SRC_DIR) && $(QT_BUILD_ENVIRONMENT) $(MAKE) $(QT5_JOBS)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(QT5_PKG)
+	@cd $(SRC_DIR) && $(QT_BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Rename build-machine tools =======
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/bin ; \
+	   for file in lconvert lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp  \
+	               qdoc qlalr qmake qmlimportscanner qmllint qmlmin rcc uic ; do \
+	     mv $$file $(TARGET)-$${file}-qt5 ; \
+	   done ; \
+	 )
+	@mkdir -p $(QT5_PKG)/usr/bin
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/bin ; \
+	   for file in lconvert lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp  \
+	               qdoc qlalr qmake qmlimportscanner qmllint qmlmin rcc uic ; do \
+	     ( cd $(QT5_PKG)/usr/bin ; ln -sf ../../usr/lib$(LIBSUFFIX)/qt5/bin/$(TARGET)-$${file}-qt5 . ) ; \
+	   done ; \
+	 )
+	# ======= Install Qmake =======
+	@( cd $(SRC_DIR) ; \
+	   for dir in qtbase/src/tools/bootstrap qtbase/src/tools/bootstrap-dbus \
+	              qtdeclarative/src/qmldevtools qtdeclarative/tools/qmlimportscanner \
+	              qtdeclarative/tools/qmllint qtdeclarative/tools/qmlmin \
+	              qttools/src/linguist/lconvert qttools/src/linguist/lrelease \
+	              qttools/src/linguist/lupdate \
+	              qtbase/src/tools/qdbuscpp2xml qtbase/src/tools/qdbusxml2cpp \
+	              qtbase/src/tools/qdoc qtbase/src/tools/qlalr \
+	              qtbase/src/tools/rcc qtbase/src/tools/uic \
+	              qtbase/src/tools/moc ; do \
+	     back=`echo $$dir | sed 's,[a-z2-]*,\.\.,g'` ; \
+	     bname=`basename $$dir` ; \
+	     ( cd $$dir ; \
+	       $(MAKE) clean ; \
+	       $$back/qtbase/bin/qmake -makefile -spec $$back/qtbase/mkspecs/$(TARGET_SPEC_DIR) -o Makefile $$bname.pro ; \
+	       $(MAKE) ; \
+	     ) ; \
+	   done ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   for dir in qtdeclarative/tools/qmlimportscanner qtdeclarative/tools/qmllint \
+	              qtdeclarative/tools/qmlmin qttools/src/linguist/lconvert \
+	              qttools/src/linguist/lrelease qttools/src/linguist/lupdate \
+	              qtbase/src/tools/qdbuscpp2xml qtbase/src/tools/qdbusxml2cpp \
+	              qtbase/src/tools/qdoc qtbase/src/tools/qlalr \
+	              qtbase/src/tools/rcc qtbase/src/tools/uic \
+	              qtbase/src/tools/moc ; do \
+	     back=`echo $$dir | sed 's,[a-z2-]*,\.\.,g'` ; \
+	     bname=`basename $$dir` ; \
+	     ( cd $$dir ; \
+	       $(MAKE) -j1 install $(env_sysroot) ; \
+	     ) ; \
+	   done ; \
+	 )
+	@( cd $(SRC_DIR)/qtbase/qmake ; \
+	   $(MAKE) clean ; \
+	 )
+	@( cd $(SRC_DIR)/qtbase ; \
+	   sed -i "/^# Verify makespec/ a\exit 0" configure ; \
+	   $(QT_BUILD_ENVIRONMENT) ./configure \
+	      -confirm-license -opensource -prefix /usr/lib$(LIBSUFFIX)/qt5 \
+	      -arch $(ARCH) -platform $(TARGET_SPEC_DIR) \
+	      -force-pkg-config -release -shared -make tools -make libs \
+	      -nomake examples -nomake tests -optimized-qmake \
+	      -sysroot $(TARGET_DEST_DIR) -extprefix /usr/lib$(LIBSUFFIX)/qt5 \
+	      -verbose ; \
+	   cp -a bin/qmake $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/bin ; \
+	 )
+	# ======= Remove target mkspecs/$(TARGET_SPEC_DIR) =======
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/mkspecs ; \
+	   rm -rf $(TARGET_SPEC_DIR) ; \
+	   rm -rf devices/$(DEVICE_SPEC_DIR) ; \
+	   cat $(CURDIR)/mkspecs/qconfig.pri.in      | \
+	       sed "s,@ARCH@,$(ARCH),g"              | \
+	       sed "s,@LIBDIRSUFFIX@,$(LIBSUFFIX),g"   \
+	            > $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/mkspecs/qconfig.pri ; \
+	   echo -n "" > qdevice.pri ; \
+	   echo -n "" > qmodule.pri ; \
+	 )
+	# ======= Install Qt.pc file =======
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX) ; ln -sf qt5 qt-$(version) )
+	@cat $(pkgconfig_in) | \
+	     sed "s,@PREFIX@,/usr/lib$(LIBSUFFIX)/qt5,g" | \
+	     sed "s,@VERSION@,$(version),g" > $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig/Qt5.pc
+	# ======= Remove internal used dependencies of libjscore, libwebcore ======
+	@sed -i "s# -Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/WebKit/##g" \
+	       $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	@sed -i "s# -Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/WebKit2/##g" \
+	       $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	@sed -i "s# -Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/WebCore/##g" \
+	       $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	@sed -i "s# -Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/ThirdParty/ANGLE/##g" \
+	       $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	@sed -i "s# -Wl,-whole-archive -lleveldb -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/ThirdParty/leveldb/##g" \
+	       $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	@sed -i "s# -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/JavaScriptCore/##g" \
+	       $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	@sed -i "s# -Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/WTF/##g" \
+	       $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	# ======= Link shared libraries into /usr/lib$(LIBSUFFIX) =======
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in qt5/lib/*.so* ; do \
+	     ln -sf $$file . ; \
+	   done ; \
+	 )
+	# ======= Add Profile scripts =======
+	@mkdir -p $(QT5_PKG)/etc/profile.d
+	@cat $(profile_dir)/qt5.csh.in | sed "s,@LIBDIR@,/usr/lib$(LIBSUFFIX),g" > $(QT5_PKG)/etc/profile.d/qt5.csh
+	@cat $(profile_dir)/qt5.sh.in  | sed "s,@LIBDIR@,/usr/lib$(LIBSUFFIX),g" > $(QT5_PKG)/etc/profile.d/qt5.sh
+	@chmod 0755 $(QT5_PKG)/etc/profile.d/*
+	# ======= Link pkgconfig files to 'normal' place =======
+	@mkdir -p $(QT5_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig ; \
+	   for file in *.pc ; do \
+	     ( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig ; ln -sf ../../lib$(LIBSUFFIX)/qt5/lib/pkgconfig/$$file . ) ; \
+	   done ; \
+	 )
+	# ======= Add menu entries for Qt applications =======
+	@mkdir -p $(QT5_PKG)/usr/share/icons/hicolor/{16x16,32x32,48x48,64x64,128x128}/apps
+	@( cd $(SRC_DIR) ; \
+	   convert qtdoc/doc/src/images/qt-logo.png -resize 32x32 $(QT5_PKG)/usr/share/icons/hicolor/32x32/apps/qt5-logo.png ; \
+	   convert qtdoc/doc/src/images/qt-logo.png -resize 48x48 $(QT5_PKG)/usr/share/icons/hicolor/48x48/apps/qt5-logo.png ; \
+	   install -p -m644 -D qttools/src/assistant/assistant/images/assistant.png $(QT5_PKG)/usr/share/icons/hicolor/32x32/apps/assistant-qt5.png ; \
+	   install -p -m644 -D qttools/src/assistant/assistant/images/assistant-128.png $(QT5_PKG)/usr/share/icons/hicolor/128x128/apps/assistant-qt5.png ; \
+	   install -p -m644 -D qttools/src/designer/src/designer/images/designer.png $(QT5_PKG)/usr/share/icons/hicolor/128x128/apps/designer-qt5.png ; \
+	   for icon in qttools/src/linguist/linguist/images/icons/linguist-*-32.png ; do \
+	     file=`basename $${icon}` ; \
+	     size=`echo $${file} | cut -d- -f2` ; \
+	     install -p -m644 -D $${icon} $(QT5_PKG)/usr/share/icons/hicolor/$${size}x$${size}/apps/linguist-qt5.png ; \
+	   done ; \
+	   install -p -m644 -D qttools/src/qdbus/qdbusviewer/images/qdbusviewer.png $(QT5_PKG)/usr/share/icons/hicolor/32x32/apps/qdbusviewer-qt5.png ; \
+	   install -p -m644 -D qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png $(QT5_PKG)/usr/share/icons/hicolor/128x128/apps/qdbusviewer-qt5.png ; \
+	 )
+	@mkdir -p $(QT5_PKG)/usr/share/applications
+	@( cd $(applications_dir) ; \
+	   for file in assistant designer linguist qdbusviewer ; do \
+	     cat $${file}-qt5.desktop.in | \
+	       sed "s,@QT5LINK@,/usr/lib$(LIBSUFFIX)/qt5,g" > $(QT5_PKG)/usr/share/applications/$${file}-qt5.desktop ; \
+	   done ; \
+	 )
+	# ======= Install Documentation =======
+	@mkdir -p $(QT5_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/*GPL_EXCEPTION* $(SRC_DIR)/LICENSE* \
+	       $(QT5_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(QT5_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a qtbase/INSTALL *GPL_EXCEPTION* LICENSE* README \
+	         $(QT5_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libEnginio.la              libQt5Bluetooth.la           \
+	                                    libQt5Bootstrap.la         libQt5CLucene.la             \
+	                                    libQt5Concurrent.la        libQt5Core.la                \
+	                                    libQt5DBus.la              libQt5Declarative.la         \
+	                                    libQt5Designer.la          libQt5DesignerComponents.la  \
+	                                    libQt5Gui.la               libQt5Help.la                \
+	                                    libQt5Location.la          libQt5Multimedia.la          \
+	                                    libQt5MultimediaQuick_p.la libQt5MultimediaWidgets.la   \
+	                                    libQt5Network.la           libQt5Nfc.la                 \
+	                                    libQt5OpenGL.la            libQt5OpenGLExtensions.la    \
+	                                    libQt5PlatformSupport.la   libQt5Positioning.la         \
+	                                    libQt5PrintSupport.la      libQt5Qml.la                 \
+	                                    libQt5QmlDevTools.la       libQt5Quick.la               \
+	                                    libQt5QuickParticles.la    libQt5QuickTest.la           \
+	                                    libQt5QuickWidgets.la      libQt5Script.la              \
+	                                    libQt5ScriptTools.la       libQt5Sensors.la             \
+	                                    libQt5SerialPort.la        libQt5Sql.la                 \
+	                                    libQt5Svg.la               libQt5Test.la                \
+	                                    libQt5UiTools.la           libQt5WebChannel.la          \
+	                                    libQt5WebKit.la            libQt5WebKitWidgets.la       \
+	                                    libQt5WebSockets.la        libQt5Widgets.la             \
+	                                    libQt5X11Extras.la         libQt5Xml.la                 \
+	                                    libQt5XmlPatterns.la                                  ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libEnginio.prl              libQt5Bluetooth.prl           \
+	                                    libQt5Bootstrap.prl         libQt5CLucene.prl             \
+	                                    libQt5Concurrent.prl        libQt5Core.prl                \
+	                                    libQt5DBus.prl              libQt5Declarative.prl         \
+	                                    libQt5Designer.prl          libQt5DesignerComponents.prl  \
+	                                    libQt5Gui.prl               libQt5Help.prl                \
+	                                    libQt5Location.prl          libQt5Multimedia.prl          \
+	                                    libQt5MultimediaQuick_p.prl libQt5MultimediaWidgets.prl   \
+	                                    libQt5Network.prl           libQt5Nfc.prl                 \
+	                                    libQt5OpenGL.prl            libQt5OpenGLExtensions.prl    \
+	                                    libQt5PlatformSupport.prl   libQt5Positioning.prl         \
+	                                    libQt5PrintSupport.prl      libQt5Qml.prl                 \
+	                                    libQt5QmlDevTools.prl       libQt5Quick.prl               \
+	                                    libQt5QuickParticles.prl    libQt5QuickTest.prl           \
+	                                    libQt5QuickWidgets.prl      libQt5Script.prl              \
+	                                    libQt5ScriptTools.prl       libQt5Sensors.prl             \
+	                                    libQt5SerialPort.prl        libQt5Sql.prl                 \
+	                                    libQt5Svg.prl               libQt5Test.prl                \
+	                                    libQt5UiTools.prl           libQt5WebChannel.prl          \
+	                                    libQt5WebKit.prl            libQt5WebKitWidgets.prl       \
+	                                    libQt5WebSockets.prl        libQt5Widgets.prl             \
+	                                    libQt5X11Extras.prl         libQt5Xml.prl                 \
+	                                    libQt5XmlPatterns.prl       libqgsttools_p.prl          ; \
+	 )
+	# ======= Change source directory to more 'normal' place =======
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib ; \
+	   sed -i "s,$(CURDIR)/$(SRC_DIR),/usr/src/qt-$(version),g" \
+	           libEnginio.prl              libQt5Bluetooth.prl           \
+	           libQt5Bootstrap.prl         libQt5CLucene.prl             \
+	           libQt5Concurrent.prl        libQt5Core.prl                \
+	           libQt5DBus.prl              libQt5Declarative.prl         \
+	           libQt5Designer.prl          libQt5DesignerComponents.prl  \
+	           libQt5Gui.prl               libQt5Help.prl                \
+	           libQt5Location.prl          libQt5Multimedia.prl          \
+	           libQt5MultimediaQuick_p.prl libQt5MultimediaWidgets.prl   \
+	           libQt5Network.prl           libQt5Nfc.prl                 \
+	           libQt5OpenGL.prl            libQt5OpenGLExtensions.prl    \
+	           libQt5PlatformSupport.prl   libQt5Positioning.prl         \
+	           libQt5PrintSupport.prl      libQt5Qml.prl                 \
+	           libQt5QmlDevTools.prl       libQt5Quick.prl               \
+	           libQt5QuickParticles.prl    libQt5QuickTest.prl           \
+	           libQt5QuickWidgets.prl      libQt5Script.prl              \
+	           libQt5ScriptTools.prl       libQt5Sensors.prl             \
+	           libQt5SerialPort.prl        libQt5Sql.prl                 \
+	           libQt5Svg.prl               libQt5Test.prl                \
+	           libQt5UiTools.prl           libQt5WebChannel.prl          \
+	           libQt5WebKit.prl            libQt5WebKitWidgets.prl       \
+	           libQt5WebSockets.prl        libQt5Widgets.prl             \
+	           libQt5X11Extras.prl         libQt5Xml.prl                 \
+	           libQt5XmlPatterns.prl       libqgsttools_p.prl          ; \
+	 )
+	# ======= remove toolchain path from target pkgconfig *.pc files =======
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" Enginio.pc              Qt5Bluetooth.pc           \
+	                                    Qt5Bootstrap.pc         Qt5CLucene.pc             \
+	                                    Qt5Concurrent.pc        Qt5Core.pc                \
+	                                    Qt5DBus.pc              Qt5Declarative.pc         \
+	                                    Qt5Designer.pc          Qt5DesignerComponents.pc  \
+	                                    Qt5Gui.pc               Qt5Help.pc                \
+	                                    Qt5Location.pc          Qt5Multimedia.pc          \
+	                                    Qt5MultimediaQuick_p.pc Qt5MultimediaWidgets.pc   \
+	                                    Qt5Network.pc           Qt5Nfc.pc                 \
+	                                    Qt5OpenGL.pc            Qt5OpenGLExtensions.pc    \
+	                                    Qt5PlatformSupport.pc   Qt5Positioning.pc         \
+	                                    Qt5PrintSupport.pc      Qt5Qml.pc                 \
+	                                    Qt5QmlDevTools.pc       Qt5Quick.pc               \
+	                                    Qt5QuickParticles.pc    Qt5QuickTest.pc           \
+	                                    Qt5QuickWidgets.pc      Qt5Script.pc              \
+	                                    Qt5ScriptTools.pc       Qt5Sensors.pc             \
+	                                    Qt5SerialPort.pc        Qt5Sql.pc                 \
+	                                    Qt5Svg.pc               Qt5Test.pc                \
+	                                    Qt5UiTools.pc           Qt5WebChannel.pc          \
+	                                    Qt5WebKit.pc            Qt5WebKitWidgets.pc       \
+	                                    Qt5WebSockets.pc        Qt5Widgets.pc             \
+	                                    Qt5X11Extras.pc         Qt5Xml.pc                 \
+	                                    Qt5XmlPatterns.pc                               ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(QT5_PKG))
+	# ======= Remove build-machine tools from target package =======
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/bin ; \
+	   for file in lconvert lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp  \
+	               qdoc qlalr qmake qmlimportscanner qmllint qmlmin rcc uic ; do \
+	     rm -f $(TARGET)-$${file}-qt5 ; \
+	   done ; \
+	 )
+	@rm -rf $(QT5_PKG)/usr/bin
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/qt5/lib ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libEnginio.la              libQt5Bluetooth.la           \
+	                                                    libQt5Bootstrap.la         libQt5CLucene.la             \
+	                                                    libQt5Concurrent.la        libQt5Core.la                \
+	                                                    libQt5DBus.la              libQt5Declarative.la         \
+	                                                    libQt5Designer.la          libQt5DesignerComponents.la  \
+	                                                    libQt5Gui.la               libQt5Help.la                \
+	                                                    libQt5Location.la          libQt5Multimedia.la          \
+	                                                    libQt5MultimediaQuick_p.la libQt5MultimediaWidgets.la   \
+	                                                    libQt5Network.la           libQt5Nfc.la                 \
+	                                                    libQt5OpenGL.la            libQt5OpenGLExtensions.la    \
+	                                                    libQt5PlatformSupport.la   libQt5Positioning.la         \
+	                                                    libQt5PrintSupport.la      libQt5Qml.la                 \
+	                                                    libQt5QmlDevTools.la       libQt5Quick.la               \
+	                                                    libQt5QuickParticles.la    libQt5QuickTest.la           \
+	                                                    libQt5QuickWidgets.la      libQt5Script.la              \
+	                                                    libQt5ScriptTools.la       libQt5Sensors.la             \
+	                                                    libQt5SerialPort.la        libQt5Sql.la                 \
+	                                                    libQt5Svg.la               libQt5Test.la                \
+	                                                    libQt5UiTools.la           libQt5WebChannel.la          \
+	                                                    libQt5WebKit.la            libQt5WebKitWidgets.la       \
+	                                                    libQt5WebSockets.la        libQt5Widgets.la             \
+	                                                    libQt5X11Extras.la         libQt5Xml.la                 \
+	                                                    libQt5XmlPatterns.la                                  ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libEnginio.prl              libQt5Bluetooth.prl           \
+	                                                    libQt5Bootstrap.prl         libQt5CLucene.prl             \
+	                                                    libQt5Concurrent.prl        libQt5Core.prl                \
+	                                                    libQt5DBus.prl              libQt5Declarative.prl         \
+	                                                    libQt5Designer.prl          libQt5DesignerComponents.prl  \
+	                                                    libQt5Gui.prl               libQt5Help.prl                \
+	                                                    libQt5Location.prl          libQt5Multimedia.prl          \
+	                                                    libQt5MultimediaQuick_p.prl libQt5MultimediaWidgets.prl   \
+	                                                    libQt5Network.prl           libQt5Nfc.prl                 \
+	                                                    libQt5OpenGL.prl            libQt5OpenGLExtensions.prl    \
+	                                                    libQt5PlatformSupport.prl   libQt5Positioning.prl         \
+	                                                    libQt5PrintSupport.prl      libQt5Qml.prl                 \
+	                                                    libQt5QmlDevTools.prl       libQt5Quick.prl               \
+	                                                    libQt5QuickParticles.prl    libQt5QuickTest.prl           \
+	                                                    libQt5QuickWidgets.prl      libQt5Script.prl              \
+	                                                    libQt5ScriptTools.prl       libQt5Sensors.prl             \
+	                                                    libQt5SerialPort.prl        libQt5Sql.prl                 \
+	                                                    libQt5Svg.prl               libQt5Test.prl                \
+	                                                    libQt5UiTools.prl           libQt5WebChannel.prl          \
+	                                                    libQt5WebKit.prl            libQt5WebKitWidgets.prl       \
+	                                                    libQt5WebSockets.prl        libQt5Widgets.prl             \
+	                                                    libQt5X11Extras.prl         libQt5Xml.prl                 \
+	                                                    libQt5XmlPatterns.prl       libqgsttools_p.prl          ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/qt5/lib/pkgconfig ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" Enginio.pc              Qt5Bluetooth.pc           \
+	                                                    Qt5Bootstrap.pc         Qt5CLucene.pc             \
+	                                                    Qt5Concurrent.pc        Qt5Core.pc                \
+	                                                    Qt5DBus.pc              Qt5Declarative.pc         \
+	                                                    Qt5Designer.pc          Qt5DesignerComponents.pc  \
+	                                                    Qt5Gui.pc               Qt5Help.pc                \
+	                                                    Qt5Location.pc          Qt5Multimedia.pc          \
+	                                                    Qt5MultimediaQuick_p.pc Qt5MultimediaWidgets.pc   \
+	                                                    Qt5Network.pc           Qt5Nfc.pc                 \
+	                                                    Qt5OpenGL.pc            Qt5OpenGLExtensions.pc    \
+	                                                    Qt5PlatformSupport.pc   Qt5Positioning.pc         \
+	                                                    Qt5PrintSupport.pc      Qt5Qml.pc                 \
+	                                                    Qt5QmlDevTools.pc       Qt5Quick.pc               \
+	                                                    Qt5QuickParticles.pc    Qt5QuickTest.pc           \
+	                                                    Qt5QuickWidgets.pc      Qt5Script.pc              \
+	                                                    Qt5ScriptTools.pc       Qt5Sensors.pc             \
+	                                                    Qt5SerialPort.pc        Qt5Sql.pc                 \
+	                                                    Qt5Svg.pc               Qt5Test.pc                \
+	                                                    Qt5UiTools.pc           Qt5WebChannel.pc          \
+	                                                    Qt5WebKit.pc            Qt5WebKitWidgets.pc       \
+	                                                    Qt5WebSockets.pc        Qt5Widgets.pc             \
+	                                                    Qt5X11Extras.pc         Qt5Xml.pc                 \
+	                                                    Qt5XmlPatterns.pc                               ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(QT5_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(QT5_PKG)/usr/lib$(LIBSUFFIX)/qt5/libexec ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if [ -n "$$rpath" ] ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(QT5_PKG_DESCRIPTION_FILE): $(QT5_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(QT5_PKG_DESCRIPTION_FILE) $(QT5_PKG_INSTALL_SCRIPT)
+	@cp $(QT5_PKG_DESCRIPTION_FILE) $(QT5_PKG)/.DESCRIPTION
+	@cp $(QT5_PKG_INSTALL_SCRIPT) $(QT5_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(QT5_PKG)/.REQUIRES
+	@echo "pkgname=$(QT5_PKG_NAME)"                            >  $(QT5_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(QT5_PKG_VERSION)"                          >> $(QT5_PKG)/.PKGINFO ; \
+	 echo "arch=$(QT5_PKG_ARCH)"                               >> $(QT5_PKG)/.PKGINFO ; \
+	 echo "distroname=$(QT5_PKG_DISTRO_NAME)"                  >> $(QT5_PKG)/.PKGINFO ; \
+	 echo "distrover=$(QT5_PKG_DISTRO_VERSION)"                >> $(QT5_PKG)/.PKGINFO ; \
+	 echo "group=$(QT5_PKG_GROUP)"                             >> $(QT5_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(QT5_PKG_SHORT_DESCRIPTION)\"" >> $(QT5_PKG)/.PKGINFO ; \
+	 echo "url=$(QT5_PKG_URL)"                                 >> $(QT5_PKG)/.PKGINFO ; \
+	 echo "license=$(QT5_PKG_LICENSE)"                         >> $(QT5_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(QT5_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-dm64x-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-dm64x-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-dm64x-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,39 @@
+#
+# qmake configuration for the dm644x boards
+#
+
+include(../common/linux_device_pre.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX               = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK              = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB        = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP             = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR            = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR            = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2 -lEGL
+QMAKE_LIBS_OPENVG      += -lOpenVG -lEGL
+
+QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += $$TARGET_HW_CFLAGS
+
+
+include(../common/linux_arm_device_post.conf)
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-dm64x-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-dm64x-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-dm64x-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-ci20-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-ci20-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-ci20-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,46 @@
+#
+# qmake configuration for the MIPS Creator CI20 boards
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+include(../../common/linux.conf)
+include(../../common/gcc-base-unix.conf)
+include(../../common/g++-unix.conf)
+
+load(device_config)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX                = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK               = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB         = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                 = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY            = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP              = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR             = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR             = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_CFLAGS_OPTIMIZE_FULL = -O2
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2 -lEGL
+QMAKE_LIBS_OPENVG       += -lOpenVG -lEGL
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-ci20-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-ci20-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-ci20-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-ffrk3288-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-ffrk3288-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-ffrk3288-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,41 @@
+#
+# qmake configuration for the Firefly-RK3288 boards
+#
+
+include(../common/linux_device_pre.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX               = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK              = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB        = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP             = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR            = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR            = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2
+QMAKE_LIBS_OPENVG      += -lOpenVG -lEGL
+
+QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+DISTRO_OPTS            += hard-float
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += $$TARGET_HW_CFLAGS
+
+
+include(../common/linux_arm_device_post.conf)
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-ffrk3288-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-ffrk3288-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-ffrk3288-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb1x-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb1x-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb1x-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,41 @@
+#
+# qmake configuration for the AX0 boards (single, dual)
+#
+
+include(../common/linux_device_pre.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX               = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK              = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB        = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP             = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR            = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR            = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2
+QMAKE_LIBS_OPENVG      += -lOpenVG -lEGL
+
+QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+DISTRO_OPTS            += hard-float
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += $$TARGET_HW_CFLAGS
+
+
+include(../common/linux_arm_device_post.conf)
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb1x-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb1x-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb1x-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb3x-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb3x-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb3x-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,41 @@
+#
+# qmake configuration for the AX0 boards (single, dual)
+#
+
+include(../common/linux_device_pre.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX               = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK              = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB        = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP             = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR            = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR            = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2
+QMAKE_LIBS_OPENVG      += -lOpenVG -lEGL
+
+QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+DISTRO_OPTS            += hard-float
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += $$TARGET_HW_CFLAGS
+
+
+include(../common/linux_arm_device_post.conf)
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb3x-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb3x-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-cb3x-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-b74-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-b74-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-b74-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,44 @@
+#
+# qmake configuration for the bcm74xx boards
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+include(../../common/linux.conf)
+include(../../common/gcc-base-unix.conf)
+include(../../common/g++-unix.conf)
+
+load(device_config)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX                = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK               = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB         = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                 = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY            = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP              = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR             = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR             = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2 -lEGL
+QMAKE_LIBS_OPENVG       += -lOpenVG -lEGL
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-b74-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-b74-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-b74-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-beagle-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-beagle-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-beagle-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,41 @@
+#
+# qmake configuration for the omap35x boards
+#
+
+include(../common/linux_device_pre.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX               = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK              = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB        = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP             = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR            = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR            = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2 -lEGL
+QMAKE_LIBS_OPENVG      += -lOpenVG -lEGL
+
+QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+DISTRO_OPTS            += hard-float
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += $$TARGET_HW_CFLAGS
+
+
+include(../common/linux_arm_device_post.conf)
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-beagle-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-beagle-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-beagle-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-omap5uevm-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-omap5uevm-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-omap5uevm-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,41 @@
+#
+# qmake configuration for the omap543x boards
+#
+
+include(../common/linux_device_pre.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX               = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK              = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB        = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP             = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR            = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR           += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR            = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL         += -lEGL
+QMAKE_LIBS_OPENGL_ES2  += -lGLESv2 -lEGL
+QMAKE_LIBS_OPENVG      += -lOpenVG -lEGL
+
+QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+DISTRO_OPTS            += hard-float
+
+TARGET_HW_CFLAGS        = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS           += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS         += $$TARGET_HW_CFLAGS
+
+
+include(../common/linux_arm_device_post.conf)
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-omap5uevm-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-omap5uevm-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-omap5uevm-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc32-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc32-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc32-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,48 @@
+#
+# qmake configuration for the i386,i486,i686 boards
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+QMAKE_CFLAGS             = -m32
+QMAKE_LFLAGS             = -m32
+
+include(../../common/linux.conf)
+include(../../common/gcc-base-unix.conf)
+include(../../common/g++-unix.conf)
+
+load(device_config)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX                = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK               = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB         = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                 = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY            = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP              = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR             = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR             = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2 -lEGL
+QMAKE_LIBS_OPENVG       += -lOpenVG -lEGL
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc32-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc32-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc32-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc64-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc64-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc64-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,47 @@
+#
+# qmake configuration for the x86_64 boards
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+QMAKE_CFLAGS             = -m64
+QMAKE_LFLAGS             = -m64
+
+include(../../common/linux.conf)
+include(../../common/gcc-base-unix.conf)
+include(../../common/g++-unix.conf)
+
+load(device_config)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX                = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK               = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB         = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                 = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY            = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP              = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR             = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR             = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2 -lEGL
+QMAKE_LIBS_OPENVG       += -lOpenVG -lEGL
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc64-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc64-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/devices/linux-pc64-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/linux-mips-gnu-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-mips-gnu-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-mips-gnu-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,42 @@
+#
+# qmake configuration for building with mipsel-bcm74x-linux-gnu-g++
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX                = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK               = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB         = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                 = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY            = @CROSS_COMPILE@objcopy
+QMAKE_NM                 = @CROSS_COMPILE@nm -P
+QMAKE_STRIP              = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR             = @SYSROOT@/usr/include
+QMAKE_LIBDIR             = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_CFLAGS_OPTIMIZE_FULL = -O2
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2
+QMAKE_LIBS_OPENVG       += -lOpenVG
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/linux-mips-gnu-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-mips-gnu-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-mips-gnu-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabi-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabi-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabi-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,40 @@
+#
+# qmake configuration for building with arm-dm644x-linux-gnueabi-g++
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX                = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK               = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB         = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                 = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY            = @CROSS_COMPILE@objcopy
+QMAKE_NM                 = @CROSS_COMPILE@nm -P
+QMAKE_STRIP              = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR             = @SYSROOT@/usr/include
+QMAKE_LIBDIR             = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2
+QMAKE_LIBS_OPENVG       += -lOpenVG
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabi-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabi-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabi-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabihf-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabihf-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabihf-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,42 @@
+#
+# qmake configuration for building with arm-{omap543x,omap35x,a2x,a1x}-linux-gnueabihf-g++
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX                = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK               = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB         = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                 = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY            = @CROSS_COMPILE@objcopy
+QMAKE_NM                 = @CROSS_COMPILE@nm -P
+QMAKE_STRIP              = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR             = @SYSROOT@/usr/include
+QMAKE_LIBDIR             = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2
+QMAKE_LIBS_OPENVG       += -lOpenVG
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+DISTRO_OPTS             += hard-float
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabihf-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabihf-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-arm-gnueabihf-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/linux-i386-gnu-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-i386-gnu-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-i386-gnu-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,43 @@
+#
+# qmake configuration for building with i486-radix-linux-gnu-g++
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+QMAKE_CFLAGS             = -m32
+QMAKE_LFLAGS             = -m32
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX                = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK               = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB         = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                 = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY            = @CROSS_COMPILE@objcopy
+QMAKE_NM                 = @CROSS_COMPILE@nm -P
+QMAKE_STRIP              = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR             = @SYSROOT@/usr/include
+QMAKE_LIBDIR             = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2
+QMAKE_LIBS_OPENVG       += -lOpenVG
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/linux-i386-gnu-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-i386-gnu-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-i386-gnu-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/linux-x86_64-gnu-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-x86_64-gnu-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-x86_64-gnu-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,43 @@
+#
+# qmake configuration for building with x86_64-radix-linux-gnu-g++
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+QMAKE_CFLAGS             = -m64
+QMAKE_LFLAGS             = -m64
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX                = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK               = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB         = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                 = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY            = @CROSS_COMPILE@objcopy
+QMAKE_NM                 = @CROSS_COMPILE@nm -P
+QMAKE_STRIP              = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR             = @SYSROOT@/usr/include
+QMAKE_LIBDIR             = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2
+QMAKE_LIBS_OPENVG       += -lOpenVG
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0/mkspecs/linux-x86_64-gnu-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/linux-x86_64-gnu-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/linux-x86_64-gnu-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0/mkspecs/qconfig.pri.in
===================================================================
--- X11/libs/qt5/5.4.0/mkspecs/qconfig.pri.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/mkspecs/qconfig.pri.in	(revision 563)
@@ -0,0 +1,23 @@
+#configuration
+CONFIG += shared qpa no_mocdepend release qt_no_framework
+QT_ARCH = @ARCH@
+QMAKE_DEFAULT_LIBDIRS = /lib@LIBDIRSUFFIX@ /usr/lib@LIBDIRSUFFIX@
+QMAKE_DEFAULT_INCDIRS = /usr/lib@LIBDIRSUFFIX@/qt5/include /usr/include
+QT_CONFIG += minimal-config small-config medium-config large-config full-config fontconfig libudev evdev xlib xrender xcb-plugin xcb-render xcb-glx xcb-xlib xcb-sm xkbcommon-qt accessibility-atspi-bridge linuxfb kms c++11 accessibility egl egl_x11 eglfs opengl shared qpa reduce_exports reduce_relocations clock-gettime clock-monotonic posix_fallocate mremap getaddrinfo ipv6ifname getifaddrs inotify eventfd system-jpeg system-png png system-freetype system-harfbuzz system-zlib mtdev nis cups iconv glib dbus openssl xcb xinput2 alsa icu concurrent audio-backend release
+
+#versioning
+QT_VERSION = 5.4.0
+QT_MAJOR_VERSION = 5
+QT_MINOR_VERSION = 4
+QT_PATCH_VERSION = 0
+
+#namespaces
+QT_LIBINFIX =
+QT_NAMESPACE =
+
+# pkgconfig
+PKG_CONFIG_LIBDIR = /usr/lib@LIBDIRSUFFIX@/pkgconfig:/usr/share/pkgconfig
+
+QT_GCC_MAJOR_VERSION = 4
+QT_GCC_MINOR_VERSION = 9
+QT_GCC_PATCH_VERSION = 1
Index: X11/libs/qt5/5.4.0/PATCHES
===================================================================
--- X11/libs/qt5/5.4.0/PATCHES	(nonexistent)
+++ X11/libs/qt5/5.4.0/PATCHES	(revision 563)
@@ -0,0 +1,3 @@
+
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-configure.patch -p0
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-gcc-4.9.2.patch -p0
Index: X11/libs/qt5/5.4.0/PATCHES.eglfs
===================================================================
--- X11/libs/qt5/5.4.0/PATCHES.eglfs	(nonexistent)
+++ X11/libs/qt5/5.4.0/PATCHES.eglfs	(revision 563)
@@ -0,0 +1,4 @@
+
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-configure.patch -p0
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-gcc-4.9.2.patch -p0
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-eglfs.patch     -p0
Index: X11/libs/qt5/5.4.0/PATCHES.mips
===================================================================
--- X11/libs/qt5/5.4.0/PATCHES.mips	(nonexistent)
+++ X11/libs/qt5/5.4.0/PATCHES.mips	(revision 563)
@@ -0,0 +1,4 @@
+
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-configure.patch -p0
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-gcc-4.9.2.patch -p0
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-mips-dsp.patch  -p0
Index: X11/libs/qt5/5.4.0/qt5-pkg-install.sh
===================================================================
--- X11/libs/qt5/5.4.0/qt5-pkg-install.sh	(nonexistent)
+++ X11/libs/qt5/5.4.0/qt5-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/qt5/5.4.0/qt5-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/qt5/5.4.0/applications/assistant-qt5.desktop.in
===================================================================
--- X11/libs/qt5/5.4.0/applications/assistant-qt5.desktop.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/applications/assistant-qt5.desktop.in	(revision 563)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Qt5 Assistant
+Comment=Shows Qt5 documentation and examples
+Exec=@QT5LINK@/bin/assistant
+Icon=assistant-qt5.png
+Terminal=false
+Encoding=UTF-8
+Type=Application
+Categories=Qt;Development;Documentation;
Index: X11/libs/qt5/5.4.0/applications/designer-qt5.desktop.in
===================================================================
--- X11/libs/qt5/5.4.0/applications/designer-qt5.desktop.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/applications/designer-qt5.desktop.in	(revision 563)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Qt5 Designer
+GenericName=Interface Designer
+Comment=Design GUIs for Qt5 applications
+Exec=@QT5LINK@/bin/designer
+Icon=designer-qt5.png
+MimeType=application/x-designer;
+Terminal=false
+Encoding=UTF-8
+Type=Application
+Categories=Qt;Development;
Index: X11/libs/qt5/5.4.0/applications/linguist-qt5.desktop.in
===================================================================
--- X11/libs/qt5/5.4.0/applications/linguist-qt5.desktop.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/applications/linguist-qt5.desktop.in	(revision 563)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Qt5 Linguist
+Comment=Add translations to Qt5 applications
+Exec=@QT5LINK@/bin/linguist
+Icon=linguist-qt5.png
+MimeType=text/vnd.trolltech.linguist;application/x-linguist;
+Terminal=false
+Encoding=UTF-8
+Type=Application
+Categories=Qt;Development;
Index: X11/libs/qt5/5.4.0/applications/qdbusviewer-qt5.desktop.in
===================================================================
--- X11/libs/qt5/5.4.0/applications/qdbusviewer-qt5.desktop.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/applications/qdbusviewer-qt5.desktop.in	(revision 563)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Qt5 QDbusViewer
+GenericName=D-Bus Debugger
+Comment=Debug D-Bus applications
+Exec=@QT5LINK@/bin/qdbusviewer
+Icon=qdbusviewer-qt5.png
+Terminal=false
+Encoding=UTF-8
+Type=Application
+Categories=Qt;Development;Debugger;
Index: X11/libs/qt5/5.4.0/pkgconfig/Qt5.pc.in
===================================================================
--- X11/libs/qt5/5.4.0/pkgconfig/Qt5.pc.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/pkgconfig/Qt5.pc.in	(revision 563)
@@ -0,0 +1,16 @@
+prefix=@PREFIX@
+bindir=${prefix}/bin
+datadir=${prefix}
+docdir=${prefix}/doc
+headerdir=${prefix}/include
+importdir=${prefix}/imports
+libdir=${prefix}/lib
+moc=${bindir}/moc
+plugindir=${prefix}/plugins
+qmake=${bindir}/qmake
+sysconfdir=${prefix}/etc/settings
+translationdir=${prefix}/translations
+
+Name: Qt
+Description: Qt Configuration
+Version: @VERSION@
Index: X11/libs/qt5/5.4.0/profile.d/qt5.csh.in
===================================================================
--- X11/libs/qt5/5.4.0/profile.d/qt5.csh.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/profile.d/qt5.csh.in	(revision 563)
@@ -0,0 +1,22 @@
+#!/bin/csh
+# Environment path variables for the Qt package:
+if ( ! $?QT5DIR ) then
+    # It's best to use the generic directory to avoid
+    # compiling in a version-containing path:
+    if ( -d @LIBDIR@/qt5 ) then
+        setenv QT5DIR @LIBDIR@/qt5
+    else
+        # Find the newest Qt directory and set $QT5DIR to that:
+        foreach qtd ( @LIBDIR@/qt-* )
+            if ( -d $qtd ) then
+                setenv QT5DIR $qtd
+            endif
+        end
+    endif
+endif
+set path = ( $path $QT5DIR/bin )
+if ( $?CPLUS_INCLUDE_PATH ) then
+    setenv CPLUS_INCLUDE_PATH $QT5DIR/include:$CPLUS_INCLUDE_PATH
+else
+    setenv CPLUS_INCLUDE_PATH $QT5DIR/include
+endif
Index: X11/libs/qt5/5.4.0/profile.d/qt5.sh.in
===================================================================
--- X11/libs/qt5/5.4.0/profile.d/qt5.sh.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/profile.d/qt5.sh.in	(revision 563)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Environment variables for the Qt package.
+#
+# It's best to use the generic directory to avoid
+# compiling in a version-containing path:
+if [ -d @LIBDIR@/qt5 ]; then
+  QT5DIR=@LIBDIR@/qt5
+else
+  # Find the newest Qt directory and set $QT5DIR to that:
+  for qtd in @LIBDIR@/qt-* ; do
+    if [ -d $qtd ]; then
+      QT5DIR=$qtd
+    fi
+  done
+fi
+if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then
+  CPLUS_INCLUDE_PATH=$QT5DIR/include:$CPLUS_INCLUDE_PATH
+else
+  CPLUS_INCLUDE_PATH=$QT5DIR/include
+fi
+PATH="$PATH:$QT5DIR/bin"
+export QT5DIR
+export CPLUS_INCLUDE_PATH
Index: X11/libs/qt5/5.4.0/qt5-pkg-description.in
===================================================================
--- X11/libs/qt5/5.4.0/qt5-pkg-description.in	(nonexistent)
+++ X11/libs/qt5/5.4.0/qt5-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+   |-----handy-ruler------------------------------------------------------|
+qt5: qt5 @VERSION@ (graphical user interface toolkit)
+qt5:
+qt5: Qt is a complete and well-developed object-oriented framework for
+qt5: developing graphical user interface (GUI) applications using C++.
+qt5:
+qt5: Homepage:  http://qt-project.org
+qt5:
+qt5:
+qt5:
+qt5:
+qt5:
Index: X11/libs/qt5/5.4.0-x86_32/Makefile
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/Makefile	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/Makefile	(revision 563)
@@ -0,0 +1,581 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/qt5
+
+REQUIRES           = X11/libs/qt5/5.4.0
+
+REQUIRES          += libs/alsa-lib/1.0.28-x86_32
+REQUIRES          += X11/app/dbus-x11-launch/1.8.10-x86_32
+
+REQUIRES          += libs/libmng/2.0.2-x86_32
+REQUIRES          += libs/icu4c/54.1-x86_32
+REQUIRES          += app/cups/2.0.1-x86_32
+
+REQUIRES          += X11/libs/fontconfig/2.11.1-x86_32
+
+REQUIRES          += X11/X.org/lib/libXaw/1.0.12-x86_32
+REQUIRES          += X11/X.org/lib/libXcursor/1.1.14-x86_32
+REQUIRES          += X11/X.org/lib/libXi/1.7.4-x86_32
+REQUIRES          += X11/X.org/lib/libXinerama/1.1.3-x86_32
+REQUIRES          += X11/X.org/lib/libXrandr/1.4.2-x86_32
+REQUIRES          += X11/X.org/lib/libXv/1.0.10-x86_32
+REQUIRES          += X11/X.org/lib/libxkbfile/1.0.8-x86_32
+
+REQUIRES          += X11/X.org/xcb/xcb-util-cursor/0.1.1-x86_32
+REQUIRES          += X11/X.org/xcb/xcb-util-keysyms/0.4.0-x86_32
+REQUIRES          += X11/X.org/xcb/xcb-util-wm/0.4.1-x86_32
+
+REQUIRES          += libs/gstreamer/1.4.5-x86_32
+REQUIRES          += libs/gst-plugins-base/1.4.5-x86_32
+
+REQUIRES          += app/sqlite/3.8.7.1-x86_32
+REQUIRES          += app/mariadb/5.5.41-x86_32
+REQUIRES          += libs/libiodbc/3.52.9-x86_32
+
+REQUIRES          += X11/libs/opengl-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.4.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/x/qt5/qt-everywhere-opensource-src-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/qt-everywhere-opensource-src-$(version)
+src_dir_name       = qt-everywhere-opensource-src-$(version)
+doc_dir_name       = qt5-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+pkgconfig_in       = $(CURDIR)/pkgconfig/Qt5.pc.in
+profile_dir        = $(CURDIR)/profile.d
+
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+QT5_32_PKG_NAME                = qt5-x32
+QT5_32_PKG_VERSION             = 5.4.0
+QT5_32_PKG_ARCH                = $(TOOLCHAIN)
+QT5_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+QT5_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+QT5_32_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+QT5_32_PKG_SHORT_DESCRIPTION   = graphical user interface toolkit
+QT5_32_PKG_URL                 = $(BUG_URL)
+QT5_32_PKG_LICENSE             = GPLv3
+QT5_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(QT5_32_PKG_NAME)-pkg-description
+QT5_32_PKG_DESCRIPTION_FILE_IN = $(QT5_32_PKG_NAME)-pkg-description.in
+QT5_32_PKG_INSTALL_SCRIPT      = $(QT5_32_PKG_NAME)-pkg-install.sh
+
+QT5_32_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(QT5_32_PKG_NAME)-package
+
+pkg_basename     = $(QT5_32_PKG_NAME)-$(QT5_32_PKG_VERSION)-$(QT5_32_PKG_ARCH)-$(QT5_32_PKG_DISTRO_NAME)-$(QT5_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = INSTALL_ROOT=$(QT5_32_PKG)
+
+
+ARCH   = i386
+ABI    = gnu
+
+
+TARGET_SPEC_DIR = linux-$(ARCH)-$(ABI)-g++
+DEVICE_SPEC_DIR = linux-$(HARDWARE)-g++
+
+QT_BUILD_ENVIRONMENT  = export PKG_CONFIG=/usr/bin/pkg-config ;
+QT_BUILD_ENVIRONMENT += export PKG_CONFIG_SYSROOT_DIR=$(TARGET_DEST_DIR) ;
+QT_BUILD_ENVIRONMENT += export PKG_CONFIG_PATH=$(ROOTFS_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig:$(ROOTFS_DEST_DIR)/usr/share/pkgconfig ;
+QT_BUILD_ENVIRONMENT += export PKG_CONFIG_LIBDIR=$(ROOTFS_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig:$(ROOTFS_DEST_DIR)/usr/share/pkgconfig ;
+
+
+configure_switches  = -confirm-license
+configure_switches += -opensource
+configure_switches += -device $(HARDWARE)
+configure_switches += -device-option CCACHE=$(CCACHE)
+configure_switches += -device-option CROSS_COMPILE=$(CROSS_PREFIX)
+
+configure_switches += -sysroot $(TARGET_DEST_DIR)
+configure_switches += -extprefix /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5
+
+configure_switches += -sysconfdir     /etc/xdg
+configure_switches += -bindir         /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/bin
+configure_switches += -headerdir      /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/include
+configure_switches += -libdir         /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib
+configure_switches += -archdatadir    /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5
+configure_switches += -plugindir      /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/plugins
+configure_switches += -libexecdir     /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/libexec
+configure_switches += -importdir      /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/imports
+configure_switches += -qmldir         /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/qml
+configure_switches += -datadir        /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5
+configure_switches += -docdir         /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/doc
+configure_switches += -translationdir /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/translations
+configure_switches += -examplesdir    /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/examples
+configure_switches += -testsdir       /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/tests
+
+configure_switches += -release
+configure_switches += -shared
+configure_switches += -force-pkg-config
+configure_switches += -c++11
+
+configure_switches += -no-largefile
+configure_switches += -no-gtkstyle
+configure_switches += -opengl
+
+configure_switches += -accessibility
+configure_switches += -system-sqlite
+configure_switches += -plugin-sql-sqlite
+configure_switches += -plugin-sql-mysql
+configure_switches += -plugin-sql-odbc
+configure_switches += -system-zlib
+configure_switches += -mtdev
+configure_switches += -system-libpng
+configure_switches += -system-libjpeg
+configure_switches += -system-freetype
+configure_switches += -system-harfbuzz
+configure_switches += -openssl-linked
+configure_switches += -system-pcre
+configure_switches += -system-xcb
+configure_switches += -xinput2
+configure_switches += -xcb-xlib
+configure_switches += -glib
+configure_switches += -no-pulseaudio
+configure_switches += -alsa
+configure_switches += -gui
+configure_switches += -widgets
+configure_switches += -nis
+configure_switches += -cups
+configure_switches += -evdev
+configure_switches += -icu
+configure_switches += -dbus
+configure_switches += -no-use-gold-linker
+
+configure_switches += -xcb
+configure_switches += -eglfs
+configure_switches += -no-directfb
+configure_switches += -linuxfb
+configure_switches += -kms
+configure_switches += -qpa xcb
+
+configure_switches += -qreal double
+configure_switches += -no-warnings-are-errors
+configure_switches += -make libs
+configure_switches += -make tools
+configure_switches += -nomake examples
+configure_switches += -nomake tests
+configure_switches += -no-strip
+configure_switches += -no-pch
+configure_switches += -no-rpath
+configure_switches += -optimized-qmake
+configure_switches += -verbose
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CURDIR)/mkspecs/devices/$(DEVICE_SPEC_DIR) $(SRC_DIR)/qtbase/mkspecs/devices
+	@cp -a $(CURDIR)/mkspecs/$(TARGET_SPEC_DIR) $(SRC_DIR)/qtbase/mkspecs
+	@( cd $(SRC_DIR)/qtbase/mkspecs/devices/$(DEVICE_SPEC_DIR) ; \
+	   cat qmake.conf.in | \
+	     sed 's,@LIBDIRSUFFIX@,$(MULTILIB_X86_32_SUFFIX),g' | \
+	     sed 's,@ARCH_FLAGS@,$(ARCH_FLAGS),g'               | \
+	     sed 's,@ARCH_DEFS@,$(ARCH_DEFS),g'                 | \
+	     sed 's,@HW_FLAGS@,$(HW_FLAGS),g'                   > qmake.conf ; \
+	 )
+	@( cd $(SRC_DIR)/qtbase/mkspecs/$(TARGET_SPEC_DIR) ; \
+	   cat qmake.conf.in | \
+	     sed 's,@CCACHE@,$(CCACHE),g'                       | \
+	     sed 's,@LIBDIRSUFFIX@,$(MULTILIB_X86_32_SUFFIX),g' | \
+	     sed 's,@CROSS_COMPILE@,$(CROSS_PREFIX),g'          | \
+	     sed 's,@SYSROOT@,$(TARGET_DEST_DIR),g'             | \
+	     sed 's,@ARCH_FLAGS@,$(ARCH_FLAGS),g'               | \
+	     sed 's,@ARCH_DEFS@,$(ARCH_DEFS),g'                 | \
+	     sed 's,@HW_FLAGS@,$(HW_FLAGS),g'                   > qmake.conf ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && \
+	  $(QT_BUILD_ENVIRONMENT) CFG_ARCH="$(ARCH)" ./configure $(configure_switches)
+	@cd $(SRC_DIR) && $(QT_BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(QT5_32_PKG)
+	@cd $(SRC_DIR) && $(QT_BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Rename build-machine tools =======
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/bin ; \
+	   for file in lconvert lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp  \
+	               qdoc qlalr qmake qmlimportscanner qmllint qmlmin rcc uic ; do \
+	     mv $$file $(TARGET32)-$${file}-qt5 ; \
+	   done ; \
+	 )
+	@mkdir -p $(QT5_32_PKG)/usr/bin/32
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/bin ; \
+	   for file in lconvert lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp  \
+	               qdoc qlalr qmake qmlimportscanner qmllint qmlmin rcc uic ; do \
+	     ( cd $(QT5_32_PKG)/usr/bin/32 ; ln -sf ../../../usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/bin/$(TARGET32)-$${file}-qt5 . ) ; \
+	   done ; \
+	 )
+	# ======= Install Qmake =======
+	@( cd $(SRC_DIR) ; \
+	   for dir in qtbase/src/tools/bootstrap qtbase/src/tools/bootstrap-dbus \
+	              qtdeclarative/src/qmldevtools qtdeclarative/tools/qmlimportscanner \
+	              qtdeclarative/tools/qmllint qtdeclarative/tools/qmlmin \
+	              qttools/src/linguist/lconvert qttools/src/linguist/lrelease \
+	              qttools/src/linguist/lupdate \
+	              qtbase/src/tools/qdbuscpp2xml qtbase/src/tools/qdbusxml2cpp \
+	              qtbase/src/tools/qdoc qtbase/src/tools/qlalr \
+	              qtbase/src/tools/rcc qtbase/src/tools/uic \
+	              qtbase/src/tools/moc ; do \
+	     back=`echo $$dir | sed 's,[a-z2-]*,\.\.,g'` ; \
+	     bname=`basename $$dir` ; \
+	     ( cd $$dir ; \
+	       $(MAKE) clean ; \
+	       $$back/qtbase/bin/qmake -makefile -spec $$back/qtbase/mkspecs/$(TARGET_SPEC_DIR) -o Makefile $$bname.pro ; \
+	       $(MAKE) ; \
+	     ) ; \
+	   done ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   for dir in qtdeclarative/tools/qmlimportscanner qtdeclarative/tools/qmllint \
+	              qtdeclarative/tools/qmlmin qttools/src/linguist/lconvert \
+	              qttools/src/linguist/lrelease qttools/src/linguist/lupdate \
+	              qtbase/src/tools/qdbuscpp2xml qtbase/src/tools/qdbusxml2cpp \
+	              qtbase/src/tools/qdoc qtbase/src/tools/qlalr \
+	              qtbase/src/tools/rcc qtbase/src/tools/uic \
+	              qtbase/src/tools/moc ; do \
+	     back=`echo $$dir | sed 's,[a-z2-]*,\.\.,g'` ; \
+	     bname=`basename $$dir` ; \
+	     ( cd $$dir ; \
+	       $(MAKE) -j1 install $(env_sysroot) ; \
+	     ) ; \
+	   done ; \
+	 )
+	@( cd $(SRC_DIR)/qtbase/qmake ; \
+	   $(MAKE) clean ; \
+	 )
+	@( cd $(SRC_DIR)/qtbase ; \
+	   sed -i "/^# Verify makespec/ a\exit 0" configure ; \
+	   $(QT_BUILD_ENVIRONMENT) ./configure \
+	      -confirm-license -opensource -prefix /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5 \
+	      -arch $(ARCH) -platform $(TARGET_SPEC_DIR) \
+	      -force-pkg-config -release -shared -make tools -make libs \
+	      -nomake examples -nomake tests -optimized-qmake \
+	      -sysroot $(TARGET_DEST_DIR) -extprefix /usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5 \
+	      -verbose ; \
+	   cp -a bin/qmake $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/bin ; \
+	 )
+	# ======= Remove target mkspecs/$(TARGET_SPEC_DIR) =======
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/mkspecs ; \
+	   rm -rf $(TARGET_SPEC_DIR) ; \
+	   rm -rf devices/$(DEVICE_SPEC_DIR) ; \
+	   cat $(CURDIR)/mkspecs/qconfig.pri.in      | \
+	       sed "s,@ARCH@,$(ARCH),g"              | \
+	       sed "s,@LIBDIRSUFFIX@,$(MULTILIB_X86_32_SUFFIX),g"   \
+	            > $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/mkspecs/qconfig.pri ; \
+	   echo -n "" > qdevice.pri ; \
+	   echo -n "" > qmodule.pri ; \
+	 )
+	# ======= Install Qt.pc file =======
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; ln -sf qt5 qt-$(version) )
+	@cat $(pkgconfig_in) | \
+	     sed "s,@PREFIX@,/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5,g" | \
+	     sed "s,@VERSION@,$(version),g" > $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig/Qt5.pc
+	# ======= Remove internal used dependencies of libjscore, libwebcore ======
+	sed -i "s# -Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/WebKit/##g" \
+	       $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	sed -i "s# -Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/WebKit2/##g" \
+	       $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	sed -i "s# -Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/WebCore/##g" \
+	       $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	sed -i "s# -Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/ThirdParty/ANGLE/##g" \
+	       $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	sed -i "s# -Wl,-whole-archive -lleveldb -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/ThirdParty/leveldb/##g" \
+	       $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	sed -i "s# -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/JavaScriptCore/##g" \
+	       $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	sed -i "s# -Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L$(CURDIR)/$(SRC_DIR)/qtwebkit/Source/WTF/##g" \
+	       $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig/Qt5WebKit.pc
+	# ======= Link shared libraries into /usr/lib$(MULTILIB_X86_32_SUFFIX) =======
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in qt5/lib/*.so* ; do \
+	     ln -sf $$file . ; \
+	   done ; \
+	 )
+	# ======= Add Profile scripts =======
+	@mkdir -p $(QT5_32_PKG)/etc/profile.d/32
+	@cat $(profile_dir)/qt5.csh.in | sed "s,@LIBDIR@,/usr/lib$(MULTILIB_X86_32_SUFFIX),g" > $(QT5_32_PKG)/etc/profile.d/32/qt5.csh
+	@cat $(profile_dir)/qt5.sh.in  | sed "s,@LIBDIR@,/usr/lib$(MULTILIB_X86_32_SUFFIX),g" > $(QT5_32_PKG)/etc/profile.d/32/qt5.sh
+	@chmod 0644 $(QT5_32_PKG)/etc/profile.d/32/*
+	# ======= Link pkgconfig files to 'normal' place =======
+	@mkdir -p $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig ; \
+	   for file in *.pc ; do \
+	     ( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; ln -sf ../../lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig/$$file . ) ; \
+	   done ; \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libEnginio.la              libQt5Bluetooth.la           \
+	                                    libQt5Bootstrap.la         libQt5CLucene.la             \
+	                                    libQt5Concurrent.la        libQt5Core.la                \
+	                                    libQt5DBus.la              libQt5Declarative.la         \
+	                                    libQt5Designer.la          libQt5DesignerComponents.la  \
+	                                    libQt5Gui.la               libQt5Help.la                \
+	                                    libQt5Location.la          libQt5Multimedia.la          \
+	                                    libQt5MultimediaQuick_p.la libQt5MultimediaWidgets.la   \
+	                                    libQt5Network.la           libQt5Nfc.la                 \
+	                                    libQt5OpenGL.la            libQt5OpenGLExtensions.la    \
+	                                    libQt5PlatformSupport.la   libQt5Positioning.la         \
+	                                    libQt5PrintSupport.la      libQt5Qml.la                 \
+	                                    libQt5QmlDevTools.la       libQt5Quick.la               \
+	                                    libQt5QuickParticles.la    libQt5QuickTest.la           \
+	                                    libQt5QuickWidgets.la      libQt5Script.la              \
+	                                    libQt5ScriptTools.la       libQt5Sensors.la             \
+	                                    libQt5SerialPort.la        libQt5Sql.la                 \
+	                                    libQt5Svg.la               libQt5Test.la                \
+	                                    libQt5UiTools.la           libQt5WebChannel.la          \
+	                                    libQt5WebKit.la            libQt5WebKitWidgets.la       \
+	                                    libQt5WebSockets.la        libQt5Widgets.la             \
+	                                    libQt5X11Extras.la         libQt5Xml.la                 \
+	                                    libQt5XmlPatterns.la                                  ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libEnginio.prl              libQt5Bluetooth.prl           \
+	                                    libQt5Bootstrap.prl         libQt5CLucene.prl             \
+	                                    libQt5Concurrent.prl        libQt5Core.prl                \
+	                                    libQt5DBus.prl              libQt5Declarative.prl         \
+	                                    libQt5Designer.prl          libQt5DesignerComponents.prl  \
+	                                    libQt5Gui.prl               libQt5Help.prl                \
+	                                    libQt5Location.prl          libQt5Multimedia.prl          \
+	                                    libQt5MultimediaQuick_p.prl libQt5MultimediaWidgets.prl   \
+	                                    libQt5Network.prl           libQt5Nfc.prl                 \
+	                                    libQt5OpenGL.prl            libQt5OpenGLExtensions.prl    \
+	                                    libQt5PlatformSupport.prl   libQt5Positioning.prl         \
+	                                    libQt5PrintSupport.prl      libQt5Qml.prl                 \
+	                                    libQt5QmlDevTools.prl       libQt5Quick.prl               \
+	                                    libQt5QuickParticles.prl    libQt5QuickTest.prl           \
+	                                    libQt5QuickWidgets.prl      libQt5Script.prl              \
+	                                    libQt5ScriptTools.prl       libQt5Sensors.prl             \
+	                                    libQt5SerialPort.prl        libQt5Sql.prl                 \
+	                                    libQt5Svg.prl               libQt5Test.prl                \
+	                                    libQt5UiTools.prl           libQt5WebChannel.prl          \
+	                                    libQt5WebKit.prl            libQt5WebKitWidgets.prl       \
+	                                    libQt5WebSockets.prl        libQt5Widgets.prl             \
+	                                    libQt5X11Extras.prl         libQt5Xml.prl                 \
+	                                    libQt5XmlPatterns.prl       libqgsttools_p.prl          ; \
+	 )
+	# ======= Change source directory to more 'normal' place =======
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib ; \
+	   sed -i "s,$(CURDIR)/$(SRC_DIR),/usr/src/qt-$(version),g" \
+	           libEnginio.prl              libQt5Bluetooth.prl           \
+	           libQt5Bootstrap.prl         libQt5CLucene.prl             \
+	           libQt5Concurrent.prl        libQt5Core.prl                \
+	           libQt5DBus.prl              libQt5Declarative.prl         \
+	           libQt5Designer.prl          libQt5DesignerComponents.prl  \
+	           libQt5Gui.prl               libQt5Help.prl                \
+	           libQt5Location.prl          libQt5Multimedia.prl          \
+	           libQt5MultimediaQuick_p.prl libQt5MultimediaWidgets.prl   \
+	           libQt5Network.prl           libQt5Nfc.prl                 \
+	           libQt5OpenGL.prl            libQt5OpenGLExtensions.prl    \
+	           libQt5PlatformSupport.prl   libQt5Positioning.prl         \
+	           libQt5PrintSupport.prl      libQt5Qml.prl                 \
+	           libQt5QmlDevTools.prl       libQt5Quick.prl               \
+	           libQt5QuickParticles.prl    libQt5QuickTest.prl           \
+	           libQt5QuickWidgets.prl      libQt5Script.prl              \
+	           libQt5ScriptTools.prl       libQt5Sensors.prl             \
+	           libQt5SerialPort.prl        libQt5Sql.prl                 \
+	           libQt5Svg.prl               libQt5Test.prl                \
+	           libQt5UiTools.prl           libQt5WebChannel.prl          \
+	           libQt5WebKit.prl            libQt5WebKitWidgets.prl       \
+	           libQt5WebSockets.prl        libQt5Widgets.prl             \
+	           libQt5X11Extras.prl         libQt5Xml.prl                 \
+	           libQt5XmlPatterns.prl       libqgsttools_p.prl          ; \
+	 )
+	# ======= remove toolchain path from target pkgconfig *.pc files =======
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" Enginio.pc              Qt5Bluetooth.pc           \
+	                                    Qt5Bootstrap.pc         Qt5CLucene.pc             \
+	                                    Qt5Concurrent.pc        Qt5Core.pc                \
+	                                    Qt5DBus.pc              Qt5Declarative.pc         \
+	                                    Qt5Designer.pc          Qt5DesignerComponents.pc  \
+	                                    Qt5Gui.pc               Qt5Help.pc                \
+	                                    Qt5Location.pc          Qt5Multimedia.pc          \
+	                                    Qt5MultimediaQuick_p.pc Qt5MultimediaWidgets.pc   \
+	                                    Qt5Network.pc           Qt5Nfc.pc                 \
+	                                    Qt5OpenGL.pc            Qt5OpenGLExtensions.pc    \
+	                                    Qt5PlatformSupport.pc   Qt5Positioning.pc         \
+	                                    Qt5PrintSupport.pc      Qt5Qml.pc                 \
+	                                    Qt5QmlDevTools.pc       Qt5Quick.pc               \
+	                                    Qt5QuickParticles.pc    Qt5QuickTest.pc           \
+	                                    Qt5QuickWidgets.pc      Qt5Script.pc              \
+	                                    Qt5ScriptTools.pc       Qt5Sensors.pc             \
+	                                    Qt5SerialPort.pc        Qt5Sql.pc                 \
+	                                    Qt5Svg.pc               Qt5Test.pc                \
+	                                    Qt5UiTools.pc           Qt5WebChannel.pc          \
+	                                    Qt5WebKit.pc            Qt5WebKitWidgets.pc       \
+	                                    Qt5WebSockets.pc        Qt5Widgets.pc             \
+	                                    Qt5X11Extras.pc         Qt5Xml.pc                 \
+	                                    Qt5XmlPatterns.pc                               ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(QT5_32_PKG))
+	# ======= Remove build-machine tools from target package =======
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/bin ; \
+	   for file in lconvert lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp  \
+	               qdoc qlalr qmake qmlimportscanner qmllint qmlmin rcc uic ; do \
+	     rm -f $(TARGET32)-$${file}-qt5 ; \
+	   done ; \
+	 )
+	@rm -rf $(QT5_32_PKG)/usr/bin
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libEnginio.la              libQt5Bluetooth.la           \
+	                                                    libQt5Bootstrap.la         libQt5CLucene.la             \
+	                                                    libQt5Concurrent.la        libQt5Core.la                \
+	                                                    libQt5DBus.la              libQt5Declarative.la         \
+	                                                    libQt5Designer.la          libQt5DesignerComponents.la  \
+	                                                    libQt5Gui.la               libQt5Help.la                \
+	                                                    libQt5Location.la          libQt5Multimedia.la          \
+	                                                    libQt5MultimediaQuick_p.la libQt5MultimediaWidgets.la   \
+	                                                    libQt5Network.la           libQt5Nfc.la                 \
+	                                                    libQt5OpenGL.la            libQt5OpenGLExtensions.la    \
+	                                                    libQt5PlatformSupport.la   libQt5Positioning.la         \
+	                                                    libQt5PrintSupport.la      libQt5Qml.la                 \
+	                                                    libQt5QmlDevTools.la       libQt5Quick.la               \
+	                                                    libQt5QuickParticles.la    libQt5QuickTest.la           \
+	                                                    libQt5QuickWidgets.la      libQt5Script.la              \
+	                                                    libQt5ScriptTools.la       libQt5Sensors.la             \
+	                                                    libQt5SerialPort.la        libQt5Sql.la                 \
+	                                                    libQt5Svg.la               libQt5Test.la                \
+	                                                    libQt5UiTools.la           libQt5WebChannel.la          \
+	                                                    libQt5WebKit.la            libQt5WebKitWidgets.la       \
+	                                                    libQt5WebSockets.la        libQt5Widgets.la             \
+	                                                    libQt5X11Extras.la         libQt5Xml.la                 \
+	                                                    libQt5XmlPatterns.la                                  ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" libEnginio.prl              libQt5Bluetooth.prl           \
+	                                                    libQt5Bootstrap.prl         libQt5CLucene.prl             \
+	                                                    libQt5Concurrent.prl        libQt5Core.prl                \
+	                                                    libQt5DBus.prl              libQt5Declarative.prl         \
+	                                                    libQt5Designer.prl          libQt5DesignerComponents.prl  \
+	                                                    libQt5Gui.prl               libQt5Help.prl                \
+	                                                    libQt5Location.prl          libQt5Multimedia.prl          \
+	                                                    libQt5MultimediaQuick_p.prl libQt5MultimediaWidgets.prl   \
+	                                                    libQt5Network.prl           libQt5Nfc.prl                 \
+	                                                    libQt5OpenGL.prl            libQt5OpenGLExtensions.prl    \
+	                                                    libQt5PlatformSupport.prl   libQt5Positioning.prl         \
+	                                                    libQt5PrintSupport.prl      libQt5Qml.prl                 \
+	                                                    libQt5QmlDevTools.prl       libQt5Quick.prl               \
+	                                                    libQt5QuickParticles.prl    libQt5QuickTest.prl           \
+	                                                    libQt5QuickWidgets.prl      libQt5Script.prl              \
+	                                                    libQt5ScriptTools.prl       libQt5Sensors.prl             \
+	                                                    libQt5SerialPort.prl        libQt5Sql.prl                 \
+	                                                    libQt5Svg.prl               libQt5Test.prl                \
+	                                                    libQt5UiTools.prl           libQt5WebChannel.prl          \
+	                                                    libQt5WebKit.prl            libQt5WebKitWidgets.prl       \
+	                                                    libQt5WebSockets.prl        libQt5Widgets.prl             \
+	                                                    libQt5X11Extras.prl         libQt5Xml.prl                 \
+	                                                    libQt5XmlPatterns.prl       libqgsttools_p.prl          ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/lib/pkgconfig ; \
+	   sed -i "s,/usr/lib,$(TARGET_DEST_DIR)/usr/lib,g" Enginio.pc              Qt5Bluetooth.pc           \
+	                                                    Qt5Bootstrap.pc         Qt5CLucene.pc             \
+	                                                    Qt5Concurrent.pc        Qt5Core.pc                \
+	                                                    Qt5DBus.pc              Qt5Declarative.pc         \
+	                                                    Qt5Designer.pc          Qt5DesignerComponents.pc  \
+	                                                    Qt5Gui.pc               Qt5Help.pc                \
+	                                                    Qt5Location.pc          Qt5Multimedia.pc          \
+	                                                    Qt5MultimediaQuick_p.pc Qt5MultimediaWidgets.pc   \
+	                                                    Qt5Network.pc           Qt5Nfc.pc                 \
+	                                                    Qt5OpenGL.pc            Qt5OpenGLExtensions.pc    \
+	                                                    Qt5PlatformSupport.pc   Qt5Positioning.pc         \
+	                                                    Qt5PrintSupport.pc      Qt5Qml.pc                 \
+	                                                    Qt5QmlDevTools.pc       Qt5Quick.pc               \
+	                                                    Qt5QuickParticles.pc    Qt5QuickTest.pc           \
+	                                                    Qt5QuickWidgets.pc      Qt5Script.pc              \
+	                                                    Qt5ScriptTools.pc       Qt5Sensors.pc             \
+	                                                    Qt5SerialPort.pc        Qt5Sql.pc                 \
+	                                                    Qt5Svg.pc               Qt5Test.pc                \
+	                                                    Qt5UiTools.pc           Qt5WebChannel.pc          \
+	                                                    Qt5WebKit.pc            Qt5WebKitWidgets.pc       \
+	                                                    Qt5WebSockets.pc        Qt5Widgets.pc             \
+	                                                    Qt5X11Extras.pc         Qt5Xml.pc                 \
+	                                                    Qt5XmlPatterns.pc                               ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(QT5_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(QT5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/qt5/libexec ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if [ -n "$$rpath" ] ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(QT5_32_PKG_DESCRIPTION_FILE): $(QT5_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(QT5_32_PKG_DESCRIPTION_FILE) $(QT5_32_PKG_INSTALL_SCRIPT)
+	@cp $(QT5_32_PKG_DESCRIPTION_FILE) $(QT5_32_PKG)/.DESCRIPTION
+	@cp $(QT5_32_PKG_INSTALL_SCRIPT) $(QT5_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(QT5_32_PKG)/.REQUIRES
+	@echo "pkgname=$(QT5_32_PKG_NAME)"                            >  $(QT5_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(QT5_32_PKG_VERSION)"                          >> $(QT5_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(QT5_32_PKG_ARCH)"                               >> $(QT5_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(QT5_32_PKG_DISTRO_NAME)"                  >> $(QT5_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(QT5_32_PKG_DISTRO_VERSION)"                >> $(QT5_32_PKG)/.PKGINFO ; \
+	 echo "group=$(QT5_32_PKG_GROUP)"                             >> $(QT5_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(QT5_32_PKG_SHORT_DESCRIPTION)\"" >> $(QT5_32_PKG)/.PKGINFO ; \
+	 echo "url=$(QT5_32_PKG_URL)"                                 >> $(QT5_32_PKG)/.PKGINFO ; \
+	 echo "license=$(QT5_32_PKG_LICENSE)"                         >> $(QT5_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(QT5_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/qt5/5.4.0-x86_32/PATCHES
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/PATCHES	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/PATCHES	(revision 563)
@@ -0,0 +1,3 @@
+
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-configure.patch -p0
+../../../../sources/packages/x/qt5/patches/qt5-5.4.0-gcc-4.9.2.patch -p0
Index: X11/libs/qt5/5.4.0-x86_32/qt5-x32-pkg-install.sh
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/qt5-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/qt5-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/qt5/5.4.0-x86_32/qt5-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/qt5/5.4.0-x86_32/mkspecs/devices/linux-pc64-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/mkspecs/devices/linux-pc64-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/mkspecs/devices/linux-pc64-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,47 @@
+#
+# qmake configuration for the i386,i486,i686 boards
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+QMAKE_CFLAGS             = -m32
+QMAKE_LFLAGS             = -m32
+
+include(../../common/linux.conf)
+include(../../common/gcc-base-unix.conf)
+include(../../common/g++-unix.conf)
+
+load(device_config)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = $${CCACHE} $${CROSS_COMPILE}gcc
+QMAKE_CXX                = $${CCACHE} $${CROSS_COMPILE}g++
+QMAKE_LINK               = $${CROSS_COMPILE}g++
+QMAKE_LINK_SHLIB         = $${CROSS_COMPILE}g++
+
+# modifications to linux.conf
+QMAKE_AR                 = $${CROSS_COMPILE}ar cqs
+QMAKE_OBJCOPY            = $${CROSS_COMPILE}objcopy
+QMAKE_STRIP              = $${CROSS_COMPILE}strip
+
+
+QMAKE_INCDIR             = $$[QT_SYSROOT]/usr/include
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/include/gstreamer-1.0
+QMAKE_INCDIR            += $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@/glib-2.0/include
+QMAKE_LIBDIR             = $$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2 -lEGL
+QMAKE_LIBS_OPENVG       += -lOpenVG -lEGL
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0-x86_32/mkspecs/devices/linux-pc64-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/mkspecs/devices/linux-pc64-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/mkspecs/devices/linux-pc64-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0-x86_32/mkspecs/linux-i386-gnu-g++/qmake.conf.in
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/mkspecs/linux-i386-gnu-g++/qmake.conf.in	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/mkspecs/linux-i386-gnu-g++/qmake.conf.in	(revision 563)
@@ -0,0 +1,43 @@
+#
+# qmake configuration for building with i486-radix-linux-gnu-g++
+#
+
+MAKEFILE_GENERATOR       = UNIX
+CONFIG                  += incremental
+QMAKE_INCREMENTAL_STYLE  = sublib
+
+QMAKE_CFLAGS             = -m32
+QMAKE_LFLAGS             = -m32
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+
+# modifications to g++.conf
+QMAKE_CC                 = @CCACHE@ @CROSS_COMPILE@gcc --sysroot=@SYSROOT@
+QMAKE_CXX                = @CCACHE@ @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK               = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+QMAKE_LINK_SHLIB         = @CROSS_COMPILE@g++ --sysroot=@SYSROOT@
+
+# modifications to linux.conf
+QMAKE_AR                 = @CROSS_COMPILE@ar cqs
+QMAKE_OBJCOPY            = @CROSS_COMPILE@objcopy
+QMAKE_NM                 = @CROSS_COMPILE@nm -P
+QMAKE_STRIP              = @CROSS_COMPILE@strip
+
+QMAKE_INCDIR             = @SYSROOT@/usr/include
+QMAKE_LIBDIR             = @SYSROOT@/usr/lib@LIBDIRSUFFIX@
+
+QMAKE_LIBS_EGL          += -lEGL
+QMAKE_LIBS_OPENGL_ES2   += -lGLESv2
+QMAKE_LIBS_OPENVG       += -lOpenVG
+
+QMAKE_LFLAGS            += -Wl,-rpath-link,@SYSROOT@/usr/lib@LIBDIRSUFFIX@ -Wl,--export-dynamic
+
+TARGET_HW_CFLAGS         = @ARCH_FLAGS@ @ARCH_DEFS@ @HW_FLAGS@ -DLINUX=1
+
+QMAKE_CFLAGS            += $$TARGET_HW_CFLAGS
+QMAKE_CXXFLAGS          += $$TARGET_HW_CFLAGS
+
+load(qt_config)
Index: X11/libs/qt5/5.4.0-x86_32/mkspecs/linux-i386-gnu-g++/qplatformdefs.h
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/mkspecs/linux-i386-gnu-g++/qplatformdefs.h	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/mkspecs/linux-i386-gnu-g++/qplatformdefs.h	(revision 563)
@@ -0,0 +1,34 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL21$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"
Index: X11/libs/qt5/5.4.0-x86_32/mkspecs/qconfig.pri.in
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/mkspecs/qconfig.pri.in	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/mkspecs/qconfig.pri.in	(revision 563)
@@ -0,0 +1,23 @@
+#configuration
+CONFIG += shared qpa no_mocdepend release qt_no_framework
+QT_ARCH = @ARCH@
+QMAKE_DEFAULT_LIBDIRS = /lib@LIBDIRSUFFIX@ /usr/lib@LIBDIRSUFFIX@
+QMAKE_DEFAULT_INCDIRS = /usr/lib@LIBDIRSUFFIX@/qt5/include /usr/include
+QT_CONFIG += minimal-config small-config medium-config large-config full-config fontconfig libudev evdev xlib xrender xcb-plugin xcb-render xcb-glx xcb-xlib xcb-sm xkbcommon-qt accessibility-atspi-bridge linuxfb kms c++11 accessibility egl egl_x11 eglfs opengl shared qpa reduce_exports reduce_relocations clock-gettime clock-monotonic posix_fallocate mremap getaddrinfo ipv6ifname getifaddrs inotify eventfd system-jpeg system-png png system-freetype system-harfbuzz system-zlib mtdev nis cups iconv glib dbus openssl xcb xinput2 alsa icu concurrent audio-backend release
+
+#versioning
+QT_VERSION = 5.4.0
+QT_MAJOR_VERSION = 5
+QT_MINOR_VERSION = 4
+QT_PATCH_VERSION = 0
+
+#namespaces
+QT_LIBINFIX =
+QT_NAMESPACE =
+
+# pkgconfig
+PKG_CONFIG_LIBDIR = /usr/lib@LIBDIRSUFFIX@/pkgconfig:/usr/share/pkgconfig
+
+QT_GCC_MAJOR_VERSION = 4
+QT_GCC_MINOR_VERSION = 9
+QT_GCC_PATCH_VERSION = 1
Index: X11/libs/qt5/5.4.0-x86_32/pkgconfig/Qt5.pc.in
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/pkgconfig/Qt5.pc.in	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/pkgconfig/Qt5.pc.in	(revision 563)
@@ -0,0 +1,16 @@
+prefix=@PREFIX@
+bindir=${prefix}/bin
+datadir=${prefix}
+docdir=${prefix}/doc
+headerdir=${prefix}/include
+importdir=${prefix}/imports
+libdir=${prefix}/lib
+moc=${bindir}/moc
+plugindir=${prefix}/plugins
+qmake=${bindir}/qmake
+sysconfdir=${prefix}/etc/settings
+translationdir=${prefix}/translations
+
+Name: Qt
+Description: Qt Configuration
+Version: @VERSION@
Index: X11/libs/qt5/5.4.0-x86_32/profile.d/qt5.csh.in
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/profile.d/qt5.csh.in	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/profile.d/qt5.csh.in	(revision 563)
@@ -0,0 +1,22 @@
+#!/bin/csh
+# Environment path variables for the Qt package:
+if ( ! $?QT5DIR ) then
+    # It's best to use the generic directory to avoid
+    # compiling in a version-containing path:
+    if ( -d @LIBDIR@/qt5 ) then
+        setenv QT5DIR @LIBDIR@/qt5
+    else
+        # Find the newest Qt directory and set $QT5DIR to that:
+        foreach qtd ( @LIBDIR@/qt-* )
+            if ( -d $qtd ) then
+                setenv QT5DIR $qtd
+            endif
+        end
+    endif
+endif
+set path = ( $path $QT5DIR/bin )
+if ( $?CPLUS_INCLUDE_PATH ) then
+    setenv CPLUS_INCLUDE_PATH $QT5DIR/include:$CPLUS_INCLUDE_PATH
+else
+    setenv CPLUS_INCLUDE_PATH $QT5DIR/include
+endif
Index: X11/libs/qt5/5.4.0-x86_32/profile.d/qt5.sh.in
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/profile.d/qt5.sh.in	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/profile.d/qt5.sh.in	(revision 563)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Environment variables for the Qt package.
+#
+# It's best to use the generic directory to avoid
+# compiling in a version-containing path:
+if [ -d @LIBDIR@/qt5 ]; then
+  QT5DIR=@LIBDIR@/qt5
+else
+  # Find the newest Qt directory and set $QT5DIR to that:
+  for qtd in @LIBDIR@/qt-* ; do
+    if [ -d $qtd ]; then
+      QT5DIR=$qtd
+    fi
+  done
+fi
+if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then
+  CPLUS_INCLUDE_PATH=$QT5DIR/include:$CPLUS_INCLUDE_PATH
+else
+  CPLUS_INCLUDE_PATH=$QT5DIR/include
+fi
+PATH="$PATH:$QT5DIR/bin"
+export QT5DIR
+export CPLUS_INCLUDE_PATH
Index: X11/libs/qt5/5.4.0-x86_32/qt5-x32-pkg-description.in
===================================================================
--- X11/libs/qt5/5.4.0-x86_32/qt5-x32-pkg-description.in	(nonexistent)
+++ X11/libs/qt5/5.4.0-x86_32/qt5-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+       |-----handy-ruler------------------------------------------------------|
+qt5-x32: qt5-x32 @VERSION@ (x86_32 graphical user interface toolkit)
+qt5-x32:
+qt5-x32: Qt is a complete and well-developed object-oriented framework for
+qt5-x32: developing graphical user interface (GUI) applications using C++.
+qt5-x32:
+qt5-x32: Homepage:  http://qt-project.org
+qt5-x32:
+qt5-x32:
+qt5-x32:
+qt5-x32:
+qt5-x32:
Index: X11/libs/startup-notification/0.12/Makefile
===================================================================
--- X11/libs/startup-notification/0.12/Makefile	(nonexistent)
+++ X11/libs/startup-notification/0.12/Makefile	(revision 563)
@@ -0,0 +1,210 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/startup-notification
+
+REQUIRES           = X11/X.org/lib/libX11/1.6.2
+REQUIRES          += X11/X.org/xcb/xcb-util/0.4.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.12
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/x/startup-notification/startup-notification-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/startup-notification-$(version)
+src_dir_name       = startup-notification-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+license            = $(CURDIR)/license/LICENSE
+
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+STN_PKG_NAME                = startup-notification
+STN_PKG_VERSION             = 0.12
+STN_PKG_ARCH                = $(TOOLCHAIN)
+STN_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+STN_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+STN_PKG_GROUP               = $(PKG_GROUP)
+###                          |---handy-ruler-------------------------------|
+STN_PKG_SHORT_DESCRIPTION   = startup notification protocol
+STN_PKG_URL                 = $(BUG_URL)
+STN_PKG_LICENSE             = LGPLv2
+STN_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(STN_PKG_NAME)-pkg-description
+STN_PKG_DESCRIPTION_FILE_IN = $(STN_PKG_NAME)-pkg-description.in
+STN_PKG_INSTALL_SCRIPT      = $(STN_PKG_NAME)-pkg-install.sh
+
+STN_PKG          = $(CURDIR)/$(TARGET_BUILD_DIR)/$(STN_PKG_NAME)-package
+
+pkg_basename     = $(STN_PKG_NAME)-$(STN_PKG_VERSION)-$(STN_PKG_ARCH)-$(STN_PKG_DISTRO_NAME)-$(STN_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(STN_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var/lib
+
+extra_configure_switches += --enable-shared=yes
+extra_configure_switches += --enable-static=yes
+
+
+configure_options  = lf_cv_sane_realloc=yes
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) $(configure_options) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(STN_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(STN_PKG)/usr/share/man ]; then \
+	  ( cd $(STN_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(STN_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(STN_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(STN_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING NEWS doc/startup-notification.txt \
+	         $(STN_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(STN_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(STN_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libstartup-notification-?.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(STN_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libstartup-notification-?.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libstartup-notification-?.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libstartup-notification-?.?.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(STN_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(STN_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(STN_PKG_DESCRIPTION_FILE): $(STN_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(STN_PKG_DESCRIPTION_FILE) $(STN_PKG_INSTALL_SCRIPT)
+	@cp $(STN_PKG_DESCRIPTION_FILE) $(STN_PKG)/.DESCRIPTION
+	@cp $(STN_PKG_INSTALL_SCRIPT) $(STN_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(STN_PKG)/.REQUIRES
+	@echo "pkgname=$(STN_PKG_NAME)"                            >  $(STN_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(STN_PKG_VERSION)"                          >> $(STN_PKG)/.PKGINFO ; \
+	 echo "arch=$(STN_PKG_ARCH)"                               >> $(STN_PKG)/.PKGINFO ; \
+	 echo "distroname=$(STN_PKG_DISTRO_NAME)"                  >> $(STN_PKG)/.PKGINFO ; \
+	 echo "distrover=$(STN_PKG_DISTRO_VERSION)"                >> $(STN_PKG)/.PKGINFO ; \
+	 echo "group=$(STN_PKG_GROUP)"                             >> $(STN_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(STN_PKG_SHORT_DESCRIPTION)\"" >> $(STN_PKG)/.PKGINFO ; \
+	 echo "url=$(STN_PKG_URL)"                                 >> $(STN_PKG)/.PKGINFO ; \
+	 echo "license=$(STN_PKG_LICENSE)"                         >> $(STN_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(STN_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/startup-notification/0.12/startup-notification-pkg-install.sh
===================================================================
--- X11/libs/startup-notification/0.12/startup-notification-pkg-install.sh	(nonexistent)
+++ X11/libs/startup-notification/0.12/startup-notification-pkg-install.sh	(revision 563)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/startup-notification/0.12/startup-notification-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/startup-notification/0.12/PATCHES
===================================================================
Index: X11/libs/startup-notification/0.12/startup-notification-pkg-description.in
===================================================================
--- X11/libs/startup-notification/0.12/startup-notification-pkg-description.in	(nonexistent)
+++ X11/libs/startup-notification/0.12/startup-notification-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+                    |-----handy-ruler------------------------------------------------------|
+startup-notification: startup-notification @VERSION@ (startup notification protocol)
+startup-notification:
+startup-notification: Adds support for applications to use "busy" cursors while
+startup-notification: starting up.
+startup-notification:
+startup-notification:
+startup-notification:
+startup-notification:
+startup-notification:
+startup-notification:
+startup-notification:
Index: X11/libs/startup-notification/0.12-x86_32/Makefile
===================================================================
--- X11/libs/startup-notification/0.12-x86_32/Makefile	(nonexistent)
+++ X11/libs/startup-notification/0.12-x86_32/Makefile	(revision 563)
@@ -0,0 +1,172 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/x/startup-notification
+
+REQUIRES           = X11/libs/startup-notification/0.12
+REQUIRES          += X11/X.org/lib/libX11/1.6.2-x86_32
+REQUIRES          += X11/X.org/xcb/xcb-util/0.4.0-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.12
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/x/startup-notification/startup-notification-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/startup-notification-$(version)
+src_dir_name       = startup-notification-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+STN_32_PKG_NAME                = startup-notification-x32
+STN_32_PKG_VERSION             = 0.12
+STN_32_PKG_ARCH                = $(TOOLCHAIN)
+STN_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+STN_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+STN_32_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+STN_32_PKG_SHORT_DESCRIPTION   = startup notification protocol
+STN_32_PKG_URL                 = $(BUG_URL)
+STN_32_PKG_LICENSE             = LGPLv2
+STN_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(STN_32_PKG_NAME)-pkg-description
+STN_32_PKG_DESCRIPTION_FILE_IN = $(STN_32_PKG_NAME)-pkg-description.in
+STN_32_PKG_INSTALL_SCRIPT      = $(STN_32_PKG_NAME)-pkg-install.sh
+
+STN_32_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(STN_32_PKG_NAME)-package
+
+pkg_basename     = $(STN_32_PKG_NAME)-$(STN_32_PKG_VERSION)-$(STN_32_PKG_ARCH)-$(STN_32_PKG_DISTRO_NAME)-$(STN_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(STN_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var/lib
+
+extra_configure_switches += --enable-shared=yes
+extra_configure_switches += --enable-static=yes
+
+
+configure_options  = lf_cv_sane_realloc=yes
+
+
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) $(configure_options) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(STN_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(STN_32_PKG)/usr/include
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(STN_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libstartup-notification-?.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(STN_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libstartup-notification-?.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libstartup-notification-?.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libstartup-notification-?.?.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(STN_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(STN_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(STN_32_PKG_DESCRIPTION_FILE): $(STN_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(STN_32_PKG_DESCRIPTION_FILE) $(STN_32_PKG_INSTALL_SCRIPT)
+	@cp $(STN_32_PKG_DESCRIPTION_FILE) $(STN_32_PKG)/.DESCRIPTION
+	@cp $(STN_32_PKG_INSTALL_SCRIPT) $(STN_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(STN_32_PKG)/.REQUIRES
+	@echo "pkgname=$(STN_32_PKG_NAME)"                            >  $(STN_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(STN_32_PKG_VERSION)"                          >> $(STN_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(STN_32_PKG_ARCH)"                               >> $(STN_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(STN_32_PKG_DISTRO_NAME)"                  >> $(STN_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(STN_32_PKG_DISTRO_VERSION)"                >> $(STN_32_PKG)/.PKGINFO ; \
+	 echo "group=$(STN_32_PKG_GROUP)"                             >> $(STN_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(STN_32_PKG_SHORT_DESCRIPTION)\"" >> $(STN_32_PKG)/.PKGINFO ; \
+	 echo "url=$(STN_32_PKG_URL)"                                 >> $(STN_32_PKG)/.PKGINFO ; \
+	 echo "license=$(STN_32_PKG_LICENSE)"                         >> $(STN_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(STN_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/startup-notification/0.12-x86_32/startup-notification-x32-pkg-install.sh
===================================================================
--- X11/libs/startup-notification/0.12-x86_32/startup-notification-x32-pkg-install.sh	(nonexistent)
+++ X11/libs/startup-notification/0.12-x86_32/startup-notification-x32-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/startup-notification/0.12-x86_32/startup-notification-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/startup-notification/0.12-x86_32/PATCHES
===================================================================
Index: X11/libs/startup-notification/0.12-x86_32/startup-notification-x32-pkg-description.in
===================================================================
--- X11/libs/startup-notification/0.12-x86_32/startup-notification-x32-pkg-description.in	(nonexistent)
+++ X11/libs/startup-notification/0.12-x86_32/startup-notification-x32-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+                        |-----handy-ruler------------------------------------------------------|
+startup-notification-x32: startup-notification-x32 @VERSION@ (x86_32 startup notification protocol)
+startup-notification-x32:
+startup-notification-x32: Adds support for applications to use "busy" cursors while
+startup-notification-x32: starting up.
+startup-notification-x32:
+startup-notification-x32:
+startup-notification-x32:
+startup-notification-x32:
+startup-notification-x32:
+startup-notification-x32:
+startup-notification-x32:
Index: X11/libs/ci20-sgx-um/1.14.3759903/Makefile
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/Makefile	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/Makefile	(revision 563)
@@ -0,0 +1,177 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/hal/PowerVR/ci20/sgx-ddk/3.18
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/4.9.2
+endif
+REQUIRES          += hal/drivers/ci20/sgx-ddk/3.18/1.14.3759903
+REQUIRES          += X11/libs/mesa/10.3.4
+REQUIRES          += X11/X.org/lib/libXext/1.3.3
+REQUIRES          += X11/X.org/lib/libXfixes/5.0.1
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.14.3759903
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/hal/PowerVR/ci20/sgx-ddk/3.18/ci20-sgx-um-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/ci20-sgx-um-$(version)
+src_dir_name       = ci20-sgx-um-$(version)
+doc_dir_name       = ci20-sgx-um-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+license            = $(CURDIR)/license/COPYING
+pkgconfigs_dir     = $(CURDIR)/pkgconfigs
+scripts            = $(CURDIR)/etc
+
+PATCHES = PATCHES
+
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = ci20-sgx-um
+XORG_PKG_VERSION             = 1.14.3759903
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = PowerVR userspace drivers for X11
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(install_target): $(src_done)
+	@mkdir -p $(XORG_PKG)
+	# ======= Install MIPS Creator CI20 PowerVR DDK UM =======
+	@mkdir -p $(XORG_PKG)/usr/lib$(LIBSUFFIX)
+	@( cd $(SRC_DIR) ; \
+	   cp -a usr $(XORG_PKG) ; \
+	 )
+	@mkdir -p $(XORG_PKG)/etc/skel
+	@cp -a $(SRC_DIR)/etc/skel/Desktop $(XORG_PKG)/etc/skel
+	# ======= Install pkg-config *.pc files to the target destination for development =======
+	@mkdir -p $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@cp -a $(pkgconfigs_dir)/egl.pc       $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@cp -a $(pkgconfigs_dir)/glesv1_cm.pc $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@cp -a $(pkgconfigs_dir)/glesv2.pc    $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	# ======= Install Scripts =======
+	@mkdir -p $(XORG_PKG)/etc/{X11,rc.d}
+	@cp -a $(scripts)/X11/xorg.conf.powervr $(XORG_PKG)/etc/X11
+	@cp -a $(scripts)/rc.d/rc.powervr.example $(XORG_PKG)/etc/rc.d
+	@chmod a-x $(XORG_PKG)/etc/rc.d/rc.powervr.example
+	@( cd $(XORG_PKG)/etc/X11 ; \
+	   ln -sf xorg.conf.powervr xorg.conf ; \
+	 )
+	# ======= Install Documentation =======
+	@mkdir -p $(XORG_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(license) \
+	       $(XORG_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a $(license) \
+	         $(XORG_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(doc_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" egl.pc          \
+	                                            glesv1_cm.pc    \
+	                                            glesv2.pc     ; \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(XORG_PKG)/usr ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "/usr/local/XSGX/lib" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(XORG_PKG)/usr ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "/usr/local/XSGX/lib" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/ci20-sgx-um/1.14.3759903/PATCHES
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/PATCHES	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/hal/PowerVR/ci20/sgx-ddk/3.18/patches/ci20-sgx-um-1.14.3759903-no_x11.patch -p0
Index: X11/libs/ci20-sgx-um/1.14.3759903/ci20-sgx-um-pkg-description.in
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/ci20-sgx-um-pkg-description.in	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/ci20-sgx-um-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+           |-----handy-ruler------------------------------------------------------|
+ci20-sgx-um: SGX Embedded Systems DDK UM @VERSION@ for Linux kernel
+ci20-sgx-um:
+ci20-sgx-um: This is the Imagination Technologies SGX DDK Usermode Binaries
+ci20-sgx-um: for the Linux kernel 3.0.8 for Linux MIPS Creator CI20.
+ci20-sgx-um:
+ci20-sgx-um: ci20-sgx-um package is provided as a complete set of Mali userspace
+ci20-sgx-um: drivers, including OpenGLESv2/EGL binaries.
+ci20-sgx-um:
+ci20-sgx-um: Check http://elinux.org/CI20-SGX_kernel_module for details.
+ci20-sgx-um:
+ci20-sgx-um:
Index: X11/libs/ci20-sgx-um/1.14.3759903/ci20-sgx-um-pkg-install.sh
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/ci20-sgx-um-pkg-install.sh	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/ci20-sgx-um-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/ci20-sgx-um/1.14.3759903/ci20-sgx-um-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/ci20-sgx-um/1.14.3759903/etc/X11/xorg.conf.powervr
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/etc/X11/xorg.conf.powervr	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/etc/X11/xorg.conf.powervr	(revision 563)
@@ -0,0 +1,18 @@
+
+# X.Org X server configuration file
+
+Section "Device"
+    Identifier  "Video Device"
+    Driver      "pvr"
+    Option      "FlipChain" "true"
+EndSection
+
+Section "Monitor"
+    Identifier "Monitor"
+EndSection
+
+Section "Screen"
+    Identifier "Screen"
+    Monitor    "Monitor"
+    Device     "Video Device"
+EndSection
Index: X11/libs/ci20-sgx-um/1.14.3759903/etc/rc.d/rc.powervr.example
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/etc/rc.d/rc.powervr.example	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/etc/rc.d/rc.powervr.example	(revision 563)
@@ -0,0 +1,102 @@
+#!/bin/sh
+#@Copyright     Copyright (c) Imagination Technologies Ltd. All Rights Reserved
+#@License       MIT
+# The contents of this file are subject to the MIT license as set out below.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+# Auto-generated for jz4780_linux from build: sgxddk_DEV/ZUBAIR.KAKAKHEL/JZ4780@3341330
+#
+
+load_pvr()
+{
+  # Start the X Server.
+  # The X Server will load the PVR Services module.
+  #
+  /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
+
+  # Load remaining modules.
+  #
+
+  if ! /sbin/modprobe -q bc_example ; then
+    echo "Module bc_example failed to load. Retrying."
+    if [ -z $depmod_has_been_run ]; then
+      if [ -e /sbin/depmod ]; then
+        echo "Running /sbin/depmod"
+        /sbin/depmod && depmod_has_been_run=1
+      fi
+    fi
+    if ! /sbin/modprobe -q bc_example ; then echo "Continuing to load PowerVR services"; bc_example_failed=1; fi
+  fi
+
+  # Delete the device for bc_example and recreate with the
+  # correct major number.
+  #
+  if [ -z $bc_example_failed ]; then
+    bcd_maj=`grep "bc_example$" /proc/devices | cut -b1,2,3`
+    /bin/rm -f /dev/bc_example
+    /bin/mknod /dev/bc_example c $bcd_maj 0
+    /bin/chmod 666 /dev/bc_example
+  fi
+
+  echo "Loaded PowerVR consumer services."
+  return 0;
+}
+
+unload_pvr()
+{
+  # Unload modules.  This won't pick up cases where a further module
+  # has been added which has a dependency on one of these modules.
+  #
+  if rmmod bc_example; then :; else echo "Warning: Could not unload bc_example"; fi
+
+  # Stop the X Server.
+  #
+  [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
+
+  # Unload the PVR Services module.
+  #
+  if rmmod pvrsrvkm; then :; else return 1; fi
+
+  echo "Unloaded PowerVR consumer services."
+  return 0;
+}
+
+# Deal with the type of invocation we get.
+#
+case "$1" in
+  "start")
+    load_pvr
+    ;;
+  stop)
+    if ! unload_pvr; then
+      echo "Couldn't unload modules" >&2;
+    fi
+    ;;
+  reload|restart)
+    if unload_pvr; then
+      load_pvr
+    else
+      echo "Couldn't unload modules" >&2;
+    fi
+    ;;
+  *)
+  echo "$0: unknown argument $1." >&2;
+    ;;
+esac
Index: X11/libs/ci20-sgx-um/1.14.3759903/license/COPYING
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/license/COPYING	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/license/COPYING	(revision 563)
@@ -0,0 +1,3 @@
+
+ @Copyright     Copyright (c) Imagination Technologies Ltd. All Rights Reserved
+ @License       MIT
Index: X11/libs/ci20-sgx-um/1.14.3759903/pkgconfigs/egl.pc
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/pkgconfigs/egl.pc	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/pkgconfigs/egl.pc	(revision 563)
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: egl
+Description: PowerVR EGL library
+Requires.private:  libdrm >= 2.4.64 x11 xext xdamage xfixes x11-xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8 xcb-dri3 xcb-present xcb-sync xshmfence >= 1.1 xxf86vm
+Version: 10.3.4
+Libs: -L${libdir} -lEGL
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir} 
Index: X11/libs/ci20-sgx-um/1.14.3759903/pkgconfigs/glesv1_cm.pc
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/pkgconfigs/glesv1_cm.pc	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/pkgconfigs/glesv1_cm.pc	(revision 563)
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: glesv1_cm
+Description: PowerVR OpenGL ES 1.1 CM library
+Requires.private:
+Version: 10.3.4
+Libs: -L${libdir} -lGLESv1_CM
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir}
Index: X11/libs/ci20-sgx-um/1.14.3759903/pkgconfigs/glesv2.pc
===================================================================
--- X11/libs/ci20-sgx-um/1.14.3759903/pkgconfigs/glesv2.pc	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.14.3759903/pkgconfigs/glesv2.pc	(revision 563)
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: glesv2
+Description: PowerVR OpenGL ES 2.0 library
+Requires.private:
+Version: 10.3.4
+Libs: -L${libdir} -lGLESv2
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir}
Index: X11/libs/ci20-sgx-um/1.13.3341330/Makefile
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/Makefile	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/Makefile	(revision 563)
@@ -0,0 +1,175 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/hal/PowerVR/ci20/sgx-ddk/3.0.8
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/4.9.2
+endif
+REQUIRES          += hal/drivers/ci20/sgx-ddk/3.0.8/1.13.3341330
+REQUIRES          += X11/libs/mesa/10.3.4
+REQUIRES          += X11/X.org/lib/libXext/1.3.3
+REQUIRES          += X11/X.org/lib/libXfixes/5.0.1
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.13.3341330
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/hal/PowerVR/ci20/sgx-ddk/3.0.8/ci20-sgx-um-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/ci20-sgx-um-$(version)
+src_dir_name       = ci20-sgx-um-$(version)
+doc_dir_name       = ci20-sgx-um-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+license            = $(CURDIR)/license/COPYING
+pkgconfigs_dir     = $(CURDIR)/pkgconfigs
+scripts            = $(CURDIR)/etc
+
+PATCHES = PATCHES
+
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = ci20-sgx-um
+XORG_PKG_VERSION             = 1.13.3341330
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = PowerVR userspace drivers for X11
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(install_target): $(src_done)
+	@mkdir -p $(XORG_PKG)
+	# ======= Install MIPS Creator CI20 PowerVR DDK UM =======
+	@mkdir -p $(XORG_PKG)/usr/lib$(LIBSUFFIX)
+	@( cd $(SRC_DIR) ; \
+	   cp -a usr $(XORG_PKG) ; \
+	 )
+	# ======= Install pkg-config *.pc files to the target destination for development =======
+	@mkdir -p $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@cp -a $(pkgconfigs_dir)/egl.pc       $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@cp -a $(pkgconfigs_dir)/glesv1_cm.pc $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@cp -a $(pkgconfigs_dir)/glesv2.pc    $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	# ======= Install Scripts =======
+	@mkdir -p $(XORG_PKG)/etc/{X11,rc.d}
+	@cp -a $(scripts)/X11/xorg.conf.powervr $(XORG_PKG)/etc/X11
+	@cp -a $(scripts)/rc.d/rc.powervr.example $(XORG_PKG)/etc/rc.d
+	@chmod a-x $(XORG_PKG)/etc/rc.d/rc.powervr.example
+	@( cd $(XORG_PKG)/etc/X11 ; \
+	   ln -sf xorg.conf.powervr xorg.conf ; \
+	 )
+	# ======= Install Documentation =======
+	@mkdir -p $(XORG_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(license) \
+	       $(XORG_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a $(license) \
+	         $(XORG_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(doc_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" egl.pc          \
+	                                            glesv1_cm.pc    \
+	                                            glesv2.pc     ; \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(XORG_PKG)/usr ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "/usr/local/XSGX/lib" ; then \
+	       $(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(XORG_PKG)/usr ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "/usr/local/XSGX/lib" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/ci20-sgx-um/1.13.3341330/PATCHES
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/PATCHES	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/hal/PowerVR/ci20/sgx-ddk/3.0.8/patches/ci20-sgx-um-1.13.3341330-no_x11.patch -p0
Index: X11/libs/ci20-sgx-um/1.13.3341330/ci20-sgx-um-pkg-description.in
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/ci20-sgx-um-pkg-description.in	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/ci20-sgx-um-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+           |-----handy-ruler------------------------------------------------------|
+ci20-sgx-um: SGX Embedded Systems DDK UM @VERSION@ for Linux kernel
+ci20-sgx-um:
+ci20-sgx-um: This is the Imagination Technologies SGX DDK Usermode Binaries
+ci20-sgx-um: for the Linux kernel 3.0.8 for Linux MIPS Creator CI20.
+ci20-sgx-um:
+ci20-sgx-um: ci20-sgx-um package is provided as a complete set of Mali userspace
+ci20-sgx-um: drivers, including OpenGLESv2/EGL binaries.
+ci20-sgx-um:
+ci20-sgx-um: Check http://elinux.org/CI20-SGX_kernel_module for details.
+ci20-sgx-um:
+ci20-sgx-um:
Index: X11/libs/ci20-sgx-um/1.13.3341330/ci20-sgx-um-pkg-install.sh
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/ci20-sgx-um-pkg-install.sh	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/ci20-sgx-um-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/ci20-sgx-um/1.13.3341330/ci20-sgx-um-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/ci20-sgx-um/1.13.3341330/etc/X11/xorg.conf.powervr
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/etc/X11/xorg.conf.powervr	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/etc/X11/xorg.conf.powervr	(revision 563)
@@ -0,0 +1,18 @@
+
+# X.Org X server configuration file
+
+Section "Device"
+    Identifier  "Video Device"
+    Driver      "pvr"
+    Option      "FlipChain" "true"
+EndSection
+
+Section "Monitor"
+    Identifier "Monitor"
+EndSection
+
+Section "Screen"
+    Identifier "Screen"
+    Monitor    "Monitor"
+    Device     "Video Device"
+EndSection
Index: X11/libs/ci20-sgx-um/1.13.3341330/etc/rc.d/rc.powervr.example
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/etc/rc.d/rc.powervr.example	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/etc/rc.d/rc.powervr.example	(revision 563)
@@ -0,0 +1,102 @@
+#!/bin/sh
+#@Copyright     Copyright (c) Imagination Technologies Ltd. All Rights Reserved
+#@License       MIT
+# The contents of this file are subject to the MIT license as set out below.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+# Auto-generated for jz4780_linux from build: sgxddk_DEV/ZUBAIR.KAKAKHEL/JZ4780@3341330
+#
+
+load_pvr()
+{
+  # Start the X Server.
+  # The X Server will load the PVR Services module.
+  #
+  /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
+
+  # Load remaining modules.
+  #
+
+  if ! /sbin/modprobe -q bc_example ; then
+    echo "Module bc_example failed to load. Retrying."
+    if [ -z $depmod_has_been_run ]; then
+      if [ -e /sbin/depmod ]; then
+        echo "Running /sbin/depmod"
+        /sbin/depmod && depmod_has_been_run=1
+      fi
+    fi
+    if ! /sbin/modprobe -q bc_example ; then echo "Continuing to load PowerVR services"; bc_example_failed=1; fi
+  fi
+
+  # Delete the device for bc_example and recreate with the
+  # correct major number.
+  #
+  if [ -z $bc_example_failed ]; then
+    bcd_maj=`grep "bc_example$" /proc/devices | cut -b1,2,3`
+    /bin/rm -f /dev/bc_example
+    /bin/mknod /dev/bc_example c $bcd_maj 0
+    /bin/chmod 666 /dev/bc_example
+  fi
+
+  echo "Loaded PowerVR consumer services."
+  return 0;
+}
+
+unload_pvr()
+{
+  # Unload modules.  This won't pick up cases where a further module
+  # has been added which has a dependency on one of these modules.
+  #
+  if rmmod bc_example; then :; else echo "Warning: Could not unload bc_example"; fi
+
+  # Stop the X Server.
+  #
+  [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
+
+  # Unload the PVR Services module.
+  #
+  if rmmod pvrsrvkm; then :; else return 1; fi
+
+  echo "Unloaded PowerVR consumer services."
+  return 0;
+}
+
+# Deal with the type of invocation we get.
+#
+case "$1" in
+  "start")
+    load_pvr
+    ;;
+  stop)
+    if ! unload_pvr; then
+      echo "Couldn't unload modules" >&2;
+    fi
+    ;;
+  reload|restart)
+    if unload_pvr; then
+      load_pvr
+    else
+      echo "Couldn't unload modules" >&2;
+    fi
+    ;;
+  *)
+  echo "$0: unknown argument $1." >&2;
+    ;;
+esac
Index: X11/libs/ci20-sgx-um/1.13.3341330/license/COPYING
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/license/COPYING	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/license/COPYING	(revision 563)
@@ -0,0 +1,3 @@
+
+ @Copyright     Copyright (c) Imagination Technologies Ltd. All Rights Reserved
+ @License       MIT
Index: X11/libs/ci20-sgx-um/1.13.3341330/pkgconfigs/egl.pc
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/pkgconfigs/egl.pc	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/pkgconfigs/egl.pc	(revision 563)
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: egl
+Description: PowerVR EGL library
+Requires.private:  libdrm >= 2.4.58 x11 xext xdamage xfixes x11-xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8 xcb-dri3 xcb-present xcb-sync xshmfence >= 1.1 xxf86vm
+Version: 10.3.4
+Libs: -L${libdir} -lEGL
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir} 
Index: X11/libs/ci20-sgx-um/1.13.3341330/pkgconfigs/glesv1_cm.pc
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/pkgconfigs/glesv1_cm.pc	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/pkgconfigs/glesv1_cm.pc	(revision 563)
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: glesv1_cm
+Description: PowerVR OpenGL ES 1.1 CM library
+Requires.private:
+Version: 10.3.4
+Libs: -L${libdir} -lGLESv1_CM
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir}
Index: X11/libs/ci20-sgx-um/1.13.3341330/pkgconfigs/glesv2.pc
===================================================================
--- X11/libs/ci20-sgx-um/1.13.3341330/pkgconfigs/glesv2.pc	(nonexistent)
+++ X11/libs/ci20-sgx-um/1.13.3341330/pkgconfigs/glesv2.pc	(revision 563)
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: glesv2
+Description: PowerVR OpenGL ES 2.0 library
+Requires.private:
+Version: 10.3.4
+Libs: -L${libdir} -lGLESv2
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir}
Index: X11/libs/sunxi-mali/3.0.4.0/Makefile
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/Makefile	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/Makefile	(revision 563)
@@ -0,0 +1,154 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/hal/Mali/sunxi-mali
+
+REQUIRES           = hal/dri2/1.0.0
+REQUIRES          += hal/ump/DX/3.0.4.0
+REQUIRES          += X11/libs/libdrm/2.4.64
+REQUIRES          += X11/X.org/lib/libXext/1.3.3
+REQUIRES          += X11/X.org/lib/libXfixes/5.0.1
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.0.4.0
+timestamp          = 20140326
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/hal/Mali/sunxi-mali/sunxi-mali-$(timestamp).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/sunxi-mali-$(timestamp)
+src_dir_name       = sunxi-mali-$(timestamp)
+doc_dir_name       = sunxi-mali-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+license            = $(CURDIR)/license/COPYING
+pkgconfigs_dir     = $(CURDIR)/pkgconfigs
+examples           = $(CURDIR)/examples
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = sunxi-mali
+XORG_PKG_VERSION             = 3.0.4.0
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = Mali userspace driver for X11
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   sed -i "s,lib/,lib$(LIBSUFFIX)/," Makefile.setup ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   $(MAKE) config VERSION=r3p0 ABI=armhf EGL_TYPE=x11 ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)/usr/include
+	@mkdir -p $(XORG_PKG)/usr/lib$(LIBSUFFIX)
+	@cd $(SRC_DIR) && $(MAKE) -j1 install $(env_sysroot)
+	@chmod a+x $(XORG_PKG)/usr/lib$(LIBSUFFIX)/libMali.so
+	# ======= Install pkg-config *.pc files to the target destination for development =======
+	@mkdir -p $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@cp -a $(pkgconfigs_dir)/egl.pc       $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@cp -a $(pkgconfigs_dir)/glesv1_cm.pc $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@cp -a $(pkgconfigs_dir)/glesv2.pc    $(XORG_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	# ======= Install Documentation =======
+	@mkdir -p $(XORG_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(license) \
+	       $(XORG_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a $(license) $(examples) README config.mk \
+	         $(XORG_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(doc_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" egl.pc          \
+	                                            glesv1_cm.pc    \
+	                                            glesv2.pc     ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/libs/sunxi-mali/3.0.4.0/sunxi-mali-pkg-install.sh
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/sunxi-mali-pkg-install.sh	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/sunxi-mali-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/libs/sunxi-mali/3.0.4.0/sunxi-mali-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/libs/sunxi-mali/3.0.4.0/PATCHES
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/PATCHES	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../sources/hal/Mali/sunxi-mali/patches/sunxi-mali-20140326-no_x11.patch -p0
Index: X11/libs/sunxi-mali/3.0.4.0/examples/Makefile
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/examples/Makefile	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/examples/Makefile	(revision 563)
@@ -0,0 +1,10 @@
+
+CFLAGS ?= -Wall -I./eglut
+
+all: es2gears-x11-mali
+
+es2gears-x11-mali: es2gears.c
+	gcc $(CFLAGS) -o $@ es2gears.c eglut/eglut.c eglut/eglut_x11.c -lMali -lUMP -lX11 -lc -lm
+
+clean:
+	rm -f es2gears-x11-mali
Index: X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut.c
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut.c	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut.c	(revision 563)
@@ -0,0 +1,373 @@
+/*
+ * Copyright (C) 2010 LunarG Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Authors:
+ *    Chia-I Wu <olv@lunarg.com>
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdarg.h>
+#include <sys/time.h>
+
+#include "EGL/egl.h"
+#include "EGL/eglext.h"
+
+#include "eglutint.h"
+
+static struct eglut_state _eglut_state = {
+   .api_mask = EGLUT_OPENGL_ES1_BIT,
+   .window_width = 300,
+   .window_height = 300,
+   .verbose = 0,
+   .num_windows = 0,
+};
+
+struct eglut_state *_eglut = &_eglut_state;
+
+void
+_eglutFatal(char *format, ...)
+{
+  va_list args;
+
+  va_start(args, format);
+
+  fprintf(stderr, "EGLUT: ");
+  vfprintf(stderr, format, args);
+  va_end(args);
+  putc('\n', stderr);
+
+  exit(1);
+}
+
+/* return current time (in milliseconds) */
+int
+_eglutNow(void)
+{
+   struct timeval tv;
+#ifdef __VMS
+   (void) gettimeofday(&tv, NULL );
+#else
+   struct timezone tz;
+   (void) gettimeofday(&tv, &tz);
+#endif
+   return tv.tv_sec * 1000 + tv.tv_usec / 1000;
+}
+
+static void
+_eglutDestroyWindow(struct eglut_window *win)
+{
+   if (_eglut->surface_type != EGL_PBUFFER_BIT &&
+       _eglut->surface_type != EGL_SCREEN_BIT_MESA)
+      eglDestroySurface(_eglut->dpy, win->surface);
+
+   _eglutNativeFiniWindow(win);
+
+   eglDestroyContext(_eglut->dpy, win->context);
+}
+
+static EGLConfig
+_eglutChooseConfig(void)
+{
+   EGLConfig config;
+   EGLint config_attribs[32];
+   EGLint renderable_type, num_configs, i;
+
+   i = 0;
+   config_attribs[i++] = EGL_RED_SIZE;
+   config_attribs[i++] = 1;
+   config_attribs[i++] = EGL_GREEN_SIZE;
+   config_attribs[i++] = 1;
+   config_attribs[i++] = EGL_BLUE_SIZE;
+   config_attribs[i++] = 1;
+   config_attribs[i++] = EGL_DEPTH_SIZE;
+   config_attribs[i++] = 1;
+
+   config_attribs[i++] = EGL_SURFACE_TYPE;
+   config_attribs[i++] = _eglut->surface_type;
+
+   config_attribs[i++] = EGL_RENDERABLE_TYPE;
+   renderable_type = 0x0;
+   if (_eglut->api_mask & EGLUT_OPENGL_BIT)
+      renderable_type |= EGL_OPENGL_BIT;
+   if (_eglut->api_mask & EGLUT_OPENGL_ES1_BIT)
+      renderable_type |= EGL_OPENGL_ES_BIT;
+   if (_eglut->api_mask & EGLUT_OPENGL_ES2_BIT)
+      renderable_type |= EGL_OPENGL_ES2_BIT;
+   if (_eglut->api_mask & EGLUT_OPENVG_BIT)
+      renderable_type |= EGL_OPENVG_BIT;
+   config_attribs[i++] = renderable_type;
+
+   config_attribs[i] = EGL_NONE;
+
+   if (!eglChooseConfig(_eglut->dpy,
+            config_attribs, &config, 1, &num_configs) || !num_configs)
+      _eglutFatal("failed to choose a config");
+
+   return config;
+}
+
+static struct eglut_window *
+_eglutCreateWindow(const char *title, int x, int y, int w, int h)
+{
+   struct eglut_window *win;
+   EGLint context_attribs[4];
+   EGLint api, i;
+
+   win = calloc(1, sizeof(*win));
+   if (!win)
+      _eglutFatal("failed to allocate window");
+
+   win->config = _eglutChooseConfig();
+
+   i = 0;
+   context_attribs[i] = EGL_NONE;
+
+   /* multiple APIs? */
+
+   api = EGL_OPENGL_ES_API;
+   if (_eglut->api_mask & EGLUT_OPENGL_BIT) {
+      api = EGL_OPENGL_API;
+   }
+   else if (_eglut->api_mask & EGLUT_OPENVG_BIT) {
+      api = EGL_OPENVG_API;
+   }
+   else if (_eglut->api_mask & EGLUT_OPENGL_ES2_BIT) {
+      context_attribs[i++] = EGL_CONTEXT_CLIENT_VERSION;
+      context_attribs[i++] = 2;
+   }
+
+   context_attribs[i] = EGL_NONE;
+
+   eglBindAPI(api);
+   win->context = eglCreateContext(_eglut->dpy,
+         win->config, EGL_NO_CONTEXT, context_attribs);
+   if (!win->context)
+      _eglutFatal("failed to create context");
+
+   _eglutNativeInitWindow(win, title, x, y, w, h);
+   switch (_eglut->surface_type) {
+   case EGL_WINDOW_BIT:
+      win->surface = eglCreateWindowSurface(_eglut->dpy,
+            win->config, win->native.u.window, NULL);
+      break;
+   case EGL_PIXMAP_BIT:
+      win->surface = eglCreatePixmapSurface(_eglut->dpy,
+            win->config, win->native.u.pixmap, NULL);
+      break;
+   case EGL_PBUFFER_BIT:
+   case EGL_SCREEN_BIT_MESA:
+      win->surface = win->native.u.surface;
+      break;
+   default:
+      break;
+   }
+   if (win->surface == EGL_NO_SURFACE)
+      _eglutFatal("failed to create surface");
+
+   return win;
+}
+
+void
+eglutInitAPIMask(int mask)
+{
+   _eglut->api_mask = mask;
+}
+
+void
+eglutInitWindowSize(int width, int height)
+{
+   _eglut->window_width = width;
+   _eglut->window_height = height;
+}
+
+void
+eglutInit(int argc, char **argv)
+{
+   int i;
+
+   for (i = 1; i < argc; i++) {
+      if (strcmp(argv[i], "-display") == 0)
+         _eglut->display_name = argv[++i];
+      else if (strcmp(argv[i], "-info") == 0) {
+         _eglut->verbose = 1;
+      }
+   }
+
+   _eglutNativeInitDisplay();
+   _eglut->dpy = eglGetDisplay(_eglut->native_dpy);
+
+   if (!eglInitialize(_eglut->dpy, &_eglut->major, &_eglut->minor))
+      _eglutFatal("failed to initialize EGL display");
+
+   _eglut->init_time = _eglutNow();
+
+   printf("EGL_VERSION = %s\n", eglQueryString(_eglut->dpy, EGL_VERSION));
+   if (_eglut->verbose) {
+      printf("EGL_VENDOR = %s\n", eglQueryString(_eglut->dpy, EGL_VENDOR));
+      printf("EGL_EXTENSIONS = %s\n",
+            eglQueryString(_eglut->dpy, EGL_EXTENSIONS));
+      printf("EGL_CLIENT_APIS = %s\n",
+            eglQueryString(_eglut->dpy, EGL_CLIENT_APIS));
+   }
+}
+
+int
+eglutGet(int state)
+{
+   int val;
+
+   switch (state) {
+   case EGLUT_ELAPSED_TIME:
+      val = _eglutNow() - _eglut->init_time;
+      break;
+   default:
+      val = -1;
+      break;
+   }
+
+   return val;
+}
+
+void
+eglutIdleFunc(EGLUTidleCB func)
+{
+   _eglut->idle_cb = func;
+}
+
+void
+eglutPostRedisplay(void)
+{
+   _eglut->redisplay = 1;
+}
+
+void
+eglutMainLoop(void)
+{
+   struct eglut_window *win = _eglut->current;
+
+   if (!win)
+      _eglutFatal("no window is created\n");
+
+   if (win->reshape_cb)
+      win->reshape_cb(win->native.width, win->native.height);
+
+   _eglutNativeEventLoop();
+}
+
+static void
+_eglutFini(void)
+{
+   eglTerminate(_eglut->dpy);
+   _eglutNativeFiniDisplay();
+}
+
+void
+eglutDestroyWindow(int win)
+{
+   struct eglut_window *window = _eglut->current;
+
+   if (window->index != win)
+      return;
+
+   /* XXX it causes some bug in st/egl KMS backend */
+   if ( _eglut->surface_type != EGL_SCREEN_BIT_MESA)
+      eglMakeCurrent(_eglut->dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
+
+   _eglutDestroyWindow(_eglut->current);
+}
+
+static void
+_eglutDefaultKeyboard(unsigned char key)
+{
+   if (key == 27) {
+      if (_eglut->current)
+         eglutDestroyWindow(_eglut->current->index);
+      _eglutFini();
+
+      exit(0);
+   }
+}
+
+int
+eglutCreateWindow(const char *title)
+{
+   struct eglut_window *win;
+
+   win = _eglutCreateWindow(title, 0, 0,
+         _eglut->window_width, _eglut->window_height);
+
+   win->index = _eglut->num_windows++;
+   win->reshape_cb = NULL;
+   win->display_cb = NULL;
+   win->keyboard_cb = _eglutDefaultKeyboard;
+   win->special_cb = NULL;
+
+   if (!eglMakeCurrent(_eglut->dpy, win->surface, win->surface, win->context))
+      _eglutFatal("failed to make window current");
+   _eglut->current = win;
+
+   return win->index;
+}
+
+int
+eglutGetWindowWidth(void)
+{
+   struct eglut_window *win = _eglut->current;
+   return win->native.width;
+}
+
+int
+eglutGetWindowHeight(void)
+{
+   struct eglut_window *win = _eglut->current;
+   return win->native.height;
+}
+
+void
+eglutDisplayFunc(EGLUTdisplayCB func)
+{
+   struct eglut_window *win = _eglut->current;
+   win->display_cb = func;
+
+}
+
+void
+eglutReshapeFunc(EGLUTreshapeCB func)
+{
+   struct eglut_window *win = _eglut->current;
+   win->reshape_cb = func;
+}
+
+void
+eglutKeyboardFunc(EGLUTkeyboardCB func)
+{
+   struct eglut_window *win = _eglut->current;
+   win->keyboard_cb = func;
+}
+
+void
+eglutSpecialFunc(EGLUTspecialCB func)
+{
+   struct eglut_window *win = _eglut->current;
+   win->special_cb = func;
+}
Index: X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut.h
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut.h	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut.h	(revision 563)
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2010 LunarG Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Authors:
+ *    Chia-I Wu <olv@lunarg.com>
+ */
+
+#ifndef EGLUT_H
+#define EGLUT_H
+
+/* used by eglutInitAPIMask */
+enum {
+   EGLUT_OPENGL_BIT     = 0x1,
+   EGLUT_OPENGL_ES1_BIT = 0x2,
+   EGLUT_OPENGL_ES2_BIT = 0x4,
+   EGLUT_OPENVG_BIT     = 0x8
+};
+
+/* used by EGLUTspecialCB */
+enum {
+   /* function keys */
+   EGLUT_KEY_F1,
+   EGLUT_KEY_F2,
+   EGLUT_KEY_F3,
+   EGLUT_KEY_F4,
+   EGLUT_KEY_F5,
+   EGLUT_KEY_F6,
+   EGLUT_KEY_F7,
+   EGLUT_KEY_F8,
+   EGLUT_KEY_F9,
+   EGLUT_KEY_F10,
+   EGLUT_KEY_F11,
+   EGLUT_KEY_F12,
+
+   /* directional keys */
+   EGLUT_KEY_LEFT,
+   EGLUT_KEY_UP,
+   EGLUT_KEY_RIGHT,
+   EGLUT_KEY_DOWN,
+};
+
+/* used by eglutGet */
+enum {
+   EGLUT_ELAPSED_TIME
+};
+
+typedef void (*EGLUTidleCB)(void);
+typedef void (*EGLUTreshapeCB)(int, int);
+typedef void (*EGLUTdisplayCB)(void);
+typedef void (*EGLUTkeyboardCB)(unsigned char);
+typedef void (*EGLUTspecialCB)(int);
+
+void eglutInitAPIMask(int mask);
+void eglutInitWindowSize(int width, int height);
+void eglutInit(int argc, char **argv);
+
+int eglutGet(int state);
+
+void eglutIdleFunc(EGLUTidleCB func);
+void eglutPostRedisplay(void);
+
+void eglutMainLoop(void);
+
+int eglutCreateWindow(const char *title);
+void eglutDestroyWindow(int win);
+
+int eglutGetWindowWidth(void);
+int eglutGetWindowHeight(void);
+
+void eglutDisplayFunc(EGLUTdisplayCB func);
+void eglutReshapeFunc(EGLUTreshapeCB func);
+void eglutKeyboardFunc(EGLUTkeyboardCB func);
+void eglutSpecialFunc(EGLUTspecialCB func);
+
+#endif /* EGLUT_H */
Index: X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut_screen.c
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut_screen.c	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut_screen.c	(revision 563)
@@ -0,0 +1,180 @@
+/*
+ * Copyright (C) 2010 LunarG Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Authors:
+ *    Chia-I Wu <olv@lunarg.com>
+ */
+
+#include <stdio.h>
+#include <string.h>
+#include <sys/time.h>
+
+#define EGL_EGLEXT_PROTOTYPES
+#include "EGL/egl.h"
+#include "EGL/eglext.h"
+
+#include "eglutint.h"
+
+#define MAX_MODES 100
+
+static EGLScreenMESA kms_screen;
+static EGLModeMESA kms_mode;
+static EGLint kms_width, kms_height;
+
+void
+_eglutNativeInitDisplay(void)
+{
+   _eglut->native_dpy = EGL_DEFAULT_DISPLAY;
+   _eglut->surface_type = EGL_SCREEN_BIT_MESA;
+}
+
+void
+_eglutNativeFiniDisplay(void)
+{
+   kms_screen = 0;
+   kms_mode = 0;
+   kms_width = 0;
+   kms_height = 0;
+}
+
+static void
+init_kms(void)
+{
+   EGLModeMESA modes[MAX_MODES];
+   EGLint num_screens, num_modes;
+   EGLint width, height, best_mode;
+   EGLint i;
+
+   if (!eglGetScreensMESA(_eglut->dpy, &kms_screen, 1, &num_screens) ||
+         !num_screens)
+      _eglutFatal("eglGetScreensMESA failed\n");
+
+   if (!eglGetModesMESA(_eglut->dpy, kms_screen,
+            modes, MAX_MODES, &num_modes) || !num_modes)
+      _eglutFatal("eglGetModesMESA failed!\n");
+
+   printf("Found %d modes:\n", num_modes);
+
+   best_mode = 0;
+   width = 0;
+   height = 0;
+   for (i = 0; i < num_modes; i++) {
+      EGLint w, h;
+      eglGetModeAttribMESA(_eglut->dpy, modes[i], EGL_WIDTH, &w);
+      eglGetModeAttribMESA(_eglut->dpy, modes[i], EGL_HEIGHT, &h);
+      printf("%3d: %d x %d\n", i, w, h);
+      if (w > width && h > height) {
+         width = w;
+         height = h;
+         best_mode = i;
+      }
+   }
+
+   printf("Will use screen size: %d x %d\n", width, height);
+
+   kms_mode = modes[best_mode];
+   kms_width = width;
+   kms_height = height;
+}
+
+void
+_eglutNativeInitWindow(struct eglut_window *win, const char *title,
+                       int x, int y, int w, int h)
+{
+   EGLint surf_attribs[16];
+   EGLint i;
+   const char *exts;
+
+   exts = eglQueryString(_eglut->dpy, EGL_EXTENSIONS);
+   if (!exts || !strstr(exts, "EGL_MESA_screen_surface"))
+      _eglutFatal("EGL_MESA_screen_surface is not supported\n");
+
+   init_kms();
+
+   i = 0;
+   surf_attribs[i++] = EGL_WIDTH;
+   surf_attribs[i++] = kms_width;
+   surf_attribs[i++] = EGL_HEIGHT;
+   surf_attribs[i++] = kms_height;
+   surf_attribs[i++] = EGL_NONE;
+
+   /* create surface */
+   win->native.u.surface = eglCreateScreenSurfaceMESA(_eglut->dpy,
+         win->config, surf_attribs);
+   if (win->native.u.surface == EGL_NO_SURFACE)
+      _eglutFatal("eglCreateScreenSurfaceMESA failed\n");
+
+   if (!eglShowScreenSurfaceMESA(_eglut->dpy, kms_screen,
+            win->native.u.surface, kms_mode))
+      _eglutFatal("eglShowScreenSurfaceMESA failed\n");
+
+   win->native.width = kms_width;
+   win->native.height = kms_height;
+}
+
+void
+_eglutNativeFiniWindow(struct eglut_window *win)
+{
+   eglShowScreenSurfaceMESA(_eglut->dpy,
+         kms_screen, EGL_NO_SURFACE, 0);
+   eglDestroySurface(_eglut->dpy, win->native.u.surface);
+}
+
+void
+_eglutNativeEventLoop(void)
+{
+   int start = _eglutNow();
+   int frames = 0;
+
+   _eglut->redisplay = 1;
+
+   while (1) {
+      struct eglut_window *win = _eglut->current;
+      int now = _eglutNow();
+
+      if (now - start > 5000) {
+         double elapsed = (double) (now - start) / 1000.0;
+
+         printf("%d frames in %3.1f seconds = %6.3f FPS\n",
+               frames, elapsed, frames / elapsed);
+         fflush(stdout);
+
+         start = now;
+         frames = 0;
+
+         /* send escape */
+         if (win->keyboard_cb)
+            win->keyboard_cb(27);
+      }
+
+      if (_eglut->idle_cb)
+         _eglut->idle_cb();
+
+      if (_eglut->redisplay) {
+         _eglut->redisplay = 0;
+
+         if (win->display_cb)
+            win->display_cb();
+         eglSwapBuffers(_eglut->dpy, win->surface);
+         frames++;
+      }
+   }
+}
Index: X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut_wayland.c
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut_wayland.c	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut_wayland.c	(revision 563)
@@ -0,0 +1,222 @@
+#include <wayland-client.h>
+#include <wayland-egl.h>
+
+#include <poll.h>
+#include <errno.h>
+#include <string.h>
+
+#include "eglutint.h"
+
+struct display {
+   struct wl_display *display;
+   struct wl_compositor *compositor;
+   struct wl_shell *shell;
+   uint32_t mask;
+};
+
+struct window {
+   struct wl_surface *surface;
+   struct wl_shell_surface *shell_surface;
+   struct wl_callback *callback;
+};
+
+static struct display display = {0, };
+static struct window window = {0, };
+
+static void
+registry_handle_global(void *data, struct wl_registry *registry, uint32_t id,
+                       const char *interface, uint32_t version)
+{
+   struct display *d = data;
+
+   if (strcmp(interface, "wl_compositor") == 0) {
+      d->compositor =
+         wl_registry_bind(registry, id, &wl_compositor_interface, 1);
+   } else if (strcmp(interface, "wl_shell") == 0) {
+      d->shell = wl_registry_bind(registry, id, &wl_shell_interface, 1);
+   }
+}
+
+static void
+registry_handle_global_remove(void *data, struct wl_registry *registry,
+                              uint32_t name)
+{
+}
+
+static const struct wl_registry_listener registry_listener = {
+   registry_handle_global,
+   registry_handle_global_remove
+};
+
+static void
+sync_callback(void *data, struct wl_callback *callback, uint32_t serial)
+{
+   int *done = data;
+
+   *done = 1;
+   wl_callback_destroy(callback);
+}
+
+static const struct wl_callback_listener sync_listener = {
+   sync_callback
+};
+
+static int
+wayland_roundtrip(struct wl_display *display)
+{
+   struct wl_callback *callback;
+   int done = 0, ret = 0;
+
+   callback = wl_display_sync(display);
+   wl_callback_add_listener(callback, &sync_listener, &done);
+   while (ret != -1 && !done)
+      ret = wl_display_dispatch(display);
+
+   if (!done)
+      wl_callback_destroy(callback);
+
+   return ret;
+}
+
+void
+_eglutNativeInitDisplay(void)
+{
+   struct wl_registry *registry;
+
+   _eglut->native_dpy =  display.display = wl_display_connect(NULL);
+
+   if (!_eglut->native_dpy)
+      _eglutFatal("failed to initialize native display");
+
+   registry = wl_display_get_registry(_eglut->native_dpy);
+   wl_registry_add_listener(registry, &registry_listener, &display);
+   wayland_roundtrip(_eglut->native_dpy);
+   wl_registry_destroy(registry);
+
+   _eglut->surface_type = EGL_WINDOW_BIT;
+}
+
+void
+_eglutNativeFiniDisplay(void)
+{
+   wl_display_flush(_eglut->native_dpy);
+   wl_display_disconnect(_eglut->native_dpy);
+}
+
+void
+_eglutNativeInitWindow(struct eglut_window *win, const char *title,
+                       int x, int y, int w, int h)
+{
+   struct wl_egl_window *native;
+   struct wl_region *region;
+
+   window.surface = wl_compositor_create_surface(display.compositor);
+
+   region = wl_compositor_create_region(display.compositor);
+   wl_region_add(region, 0, 0, w, h);
+   wl_surface_set_opaque_region(window.surface, region);
+   wl_region_destroy(region);
+
+   window.shell_surface = wl_shell_get_shell_surface(display.shell,
+         window.surface);
+   native = wl_egl_window_create(window.surface, w, h);
+
+   wl_shell_surface_set_toplevel(window.shell_surface);
+
+   win->native.u.window = native;
+   win->native.width = w;
+   win->native.height = h;
+}
+
+void
+_eglutNativeFiniWindow(struct eglut_window *win)
+{
+   wl_egl_window_destroy(win->native.u.window);
+
+   wl_shell_surface_destroy(window.shell_surface);
+   wl_surface_destroy(window.surface);
+
+   if (window.callback)
+      wl_callback_destroy(window.callback);
+}
+
+static void
+draw(void *data, struct wl_callback *callback, uint32_t time);
+
+static const struct wl_callback_listener frame_listener = {
+   draw
+};
+
+static void
+draw(void *data, struct wl_callback *callback, uint32_t time)
+{	
+   struct window *window = (struct window *)data;
+   struct eglut_window *win = _eglut->current;
+
+   if (win->display_cb)
+      win->display_cb();
+   eglSwapBuffers(_eglut->dpy, win->surface);
+
+   if (callback)
+      wl_callback_destroy(callback);
+
+   window->callback = wl_surface_frame(window->surface);
+   wl_callback_add_listener(window->callback, &frame_listener, window);
+}
+
+void
+_eglutNativeEventLoop(void)
+{
+   struct pollfd pollfd;
+   int ret;
+
+   draw(&window, NULL, 0);
+
+   pollfd.fd = wl_display_get_fd(display.display);
+   pollfd.events = POLLIN;
+   pollfd.revents = 0;
+
+   while (1) {
+      wl_display_dispatch_pending(display.display);
+
+      if (_eglut->idle_cb)
+         _eglut->idle_cb();
+
+      ret = wl_display_flush(display.display);
+      if (ret < 0 && errno == EAGAIN)
+         pollfd.events |= POLLOUT;
+      else if (ret < 0)
+         break;
+
+      if (poll(&pollfd, 1, _eglut->redisplay ? 0 : -1) == -1)
+         break;
+
+      if (pollfd.revents & (POLLERR | POLLHUP))
+         break;
+
+      if (pollfd.revents & POLLIN) {
+         ret = wl_display_dispatch(display.display);
+         if (ret == -1)
+            break;
+      }
+
+      if (pollfd.revents & POLLOUT) {
+         ret = wl_display_flush(display.display);
+         if (ret == 0)
+            pollfd.events &= ~POLLOUT;
+         else if (ret == -1 && errno != EAGAIN)
+            break;
+      }
+
+      if (_eglut->redisplay) {
+         struct eglut_window *win = _eglut->current;
+
+         _eglut->redisplay = 0;
+
+         if (win->display_cb)
+            win->display_cb();
+
+         eglSwapBuffers(_eglut->dpy, win->surface);
+      }
+   }
+}
Index: X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut_x11.c
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut_x11.c	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglut_x11.c	(revision 563)
@@ -0,0 +1,252 @@
+/*
+ * Copyright (C) 2010 LunarG Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Authors:
+ *    Chia-I Wu <olv@lunarg.com>
+ */
+
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/keysym.h>
+
+#include "eglutint.h"
+
+void
+_eglutNativeInitDisplay(void)
+{
+   _eglut->native_dpy = XOpenDisplay(_eglut->display_name);
+   if (!_eglut->native_dpy)
+      _eglutFatal("failed to initialize native display");
+
+   _eglut->surface_type = EGL_WINDOW_BIT;
+}
+
+void
+_eglutNativeFiniDisplay(void)
+{
+   XCloseDisplay(_eglut->native_dpy);
+}
+
+void
+_eglutNativeInitWindow(struct eglut_window *win, const char *title,
+                       int x, int y, int w, int h)
+{
+   XVisualInfo *visInfo, visTemplate;
+   int num_visuals;
+   Window root, xwin;
+   XSetWindowAttributes attr;
+   unsigned long mask;
+   EGLint vid;
+
+   if (!eglGetConfigAttrib(_eglut->dpy,
+            win->config, EGL_NATIVE_VISUAL_ID, &vid))
+      _eglutFatal("failed to get visual id");
+
+   /* The X window visual must match the EGL config */
+   visTemplate.visualid = vid;
+   visInfo = XGetVisualInfo(_eglut->native_dpy,
+         VisualIDMask, &visTemplate, &num_visuals);
+   if (!visInfo)
+      _eglutFatal("failed to get an visual of id 0x%x", vid);
+
+   root = RootWindow(_eglut->native_dpy, DefaultScreen(_eglut->native_dpy));
+
+   /* window attributes */
+   attr.background_pixel = 0;
+   attr.border_pixel = 0;
+   attr.colormap = XCreateColormap(_eglut->native_dpy,
+         root, visInfo->visual, AllocNone);
+   attr.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask;
+   mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
+
+   xwin = XCreateWindow(_eglut->native_dpy, root, x, y, w, h,
+         0, visInfo->depth, InputOutput, visInfo->visual, mask, &attr);
+   if (!xwin)
+      _eglutFatal("failed to create a window");
+
+   XFree(visInfo);
+
+   /* set hints and properties */
+   {
+      XSizeHints sizehints;
+      sizehints.x = x;
+      sizehints.y = y;
+      sizehints.width  = w;
+      sizehints.height = h;
+      sizehints.flags = USSize | USPosition;
+      XSetNormalHints(_eglut->native_dpy, xwin, &sizehints);
+      XSetStandardProperties(_eglut->native_dpy, xwin,
+            title, title, None, (char **) NULL, 0, &sizehints);
+   }
+
+   XMapWindow(_eglut->native_dpy, xwin);
+
+   win->native.u.window = xwin;
+   win->native.width = w;
+   win->native.height = h;
+}
+
+void
+_eglutNativeFiniWindow(struct eglut_window *win)
+{
+   XDestroyWindow(_eglut->native_dpy, win->native.u.window);
+}
+
+static int
+lookup_keysym(KeySym sym)
+{
+   int special;
+
+   switch (sym) {
+   case XK_F1:
+      special = EGLUT_KEY_F1;
+      break;
+   case XK_F2:
+      special = EGLUT_KEY_F2;
+      break;
+   case XK_F3:
+      special = EGLUT_KEY_F3;
+      break;
+   case XK_F4:
+      special = EGLUT_KEY_F4;
+      break;
+   case XK_F5:
+      special = EGLUT_KEY_F5;
+      break;
+   case XK_F6:
+      special = EGLUT_KEY_F6;
+      break;
+   case XK_F7:
+      special = EGLUT_KEY_F7;
+      break;
+   case XK_F8:
+      special = EGLUT_KEY_F8;
+      break;
+   case XK_F9:
+      special = EGLUT_KEY_F9;
+      break;
+   case XK_F10:
+      special = EGLUT_KEY_F10;
+      break;
+   case XK_F11:
+      special = EGLUT_KEY_F11;
+      break;
+   case XK_F12:
+      special = EGLUT_KEY_F12;
+      break;
+   case XK_KP_Left:
+   case XK_Left:
+      special = EGLUT_KEY_LEFT;
+      break;
+   case XK_KP_Up:
+   case XK_Up:
+      special = EGLUT_KEY_UP;
+      break;
+   case XK_KP_Right:
+   case XK_Right:
+      special = EGLUT_KEY_RIGHT;
+      break;
+   case XK_KP_Down:
+   case XK_Down:
+      special = EGLUT_KEY_DOWN;
+      break;
+   default:
+      special = -1;
+      break;
+   }
+
+   return special;
+}
+
+static void
+next_event(struct eglut_window *win)
+{
+   int redraw = 0;
+   XEvent event;
+
+   if (!XPending(_eglut->native_dpy)) {
+      /* there is an idle callback */
+      if (_eglut->idle_cb) {
+         _eglut->idle_cb();
+         return;
+      }
+
+      /* the app requests re-display */
+      if (_eglut->redisplay)
+         return;
+   }
+
+   /* block for next event */
+   XNextEvent(_eglut->native_dpy, &event);
+
+   switch (event.type) {
+   case Expose:
+      redraw = 1;
+      break;
+   case ConfigureNotify:
+      win->native.width = event.xconfigure.width;
+      win->native.height = event.xconfigure.height;
+      if (win->reshape_cb)
+         win->reshape_cb(win->native.width, win->native.height);
+      break;
+   case KeyPress:
+      {
+         char buffer[1];
+         KeySym sym;
+         int r;
+
+         r = XLookupString(&event.xkey,
+               buffer, sizeof(buffer), &sym, NULL);
+         if (r && win->keyboard_cb) {
+            win->keyboard_cb(buffer[0]);
+         }
+         else if (!r && win->special_cb) {
+            r = lookup_keysym(sym);
+            if (r >= 0)
+               win->special_cb(r);
+         }
+      }
+      redraw = 1;
+      break;
+   default:
+      ; /*no-op*/
+   }
+
+   _eglut->redisplay = redraw;
+}
+
+void
+_eglutNativeEventLoop(void)
+{
+   while (1) {
+      struct eglut_window *win = _eglut->current;
+
+      next_event(win);
+
+      if (_eglut->redisplay) {
+         _eglut->redisplay = 0;
+
+         if (win->display_cb)
+            win->display_cb();
+         eglSwapBuffers(_eglut->dpy, win->surface);
+      }
+   }
+}
Index: X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglutint.h
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglutint.h	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/examples/eglut/eglutint.h	(revision 563)
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2010 LunarG Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Authors:
+ *    Chia-I Wu <olv@lunarg.com>
+ */
+
+#ifndef _EGLUTINT_H_
+#define _EGLUTINT_H_
+
+#include "EGL/egl.h"
+#include "eglut.h"
+
+struct eglut_window {
+   EGLConfig config;
+   EGLContext context;
+
+   /* initialized by native display */
+   struct {
+      union {
+         EGLNativeWindowType window;
+         EGLNativePixmapType pixmap;
+         EGLSurface surface; /* pbuffer or screen surface */
+      } u;
+      int width, height;
+   } native;
+
+   EGLSurface surface;
+
+   int index;
+
+   EGLUTreshapeCB reshape_cb;
+   EGLUTdisplayCB display_cb;
+   EGLUTkeyboardCB keyboard_cb;
+   EGLUTspecialCB special_cb;
+};
+
+struct eglut_state {
+   int api_mask;
+   int window_width, window_height;
+   const char *display_name;
+   int verbose;
+   int init_time;
+
+   EGLUTidleCB idle_cb;
+
+   int num_windows;
+
+   /* initialized by native display */
+   EGLNativeDisplayType native_dpy;
+   EGLint surface_type;
+
+   EGLDisplay dpy;
+   EGLint major, minor;
+
+   struct eglut_window *current;
+
+   int redisplay;
+};
+
+extern struct eglut_state *_eglut;
+
+void
+_eglutFatal(char *format, ...);
+
+int
+_eglutNow(void);
+
+void
+_eglutNativeInitDisplay(void);
+
+void
+_eglutNativeFiniDisplay(void);
+
+void
+_eglutNativeInitWindow(struct eglut_window *win, const char *title,
+                       int x, int y, int w, int h);
+
+void
+_eglutNativeFiniWindow(struct eglut_window *win);
+
+void
+_eglutNativeEventLoop(void);
+
+#endif /* _EGLUTINT_H_ */
Index: X11/libs/sunxi-mali/3.0.4.0/examples/es2gears.c
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/examples/es2gears.c	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/examples/es2gears.c	(revision 563)
@@ -0,0 +1,724 @@
+/*
+ * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+/*
+ * Ported to GLES2.
+ * Kristian Høgsberg <krh@bitplanet.net>
+ * May 3, 2010
+ * 
+ * Improve GLES2 port:
+ *   * Refactor gear drawing.
+ *   * Use correct normals for surfaces.
+ *   * Improve shader.
+ *   * Use perspective projection transformation.
+ *   * Add FPS count.
+ *   * Add comments.
+ * Alexandros Frantzis <alexandros.frantzis@linaro.org>
+ * Jul 13, 2010
+ */
+
+#define GL_GLEXT_PROTOTYPES
+#define EGL_EGLEXT_PROTOTYPES
+
+#define _GNU_SOURCE
+
+#include <math.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/time.h>
+#include <unistd.h>
+#include <GLES2/gl2.h>
+#include <EGL/egl.h>
+#include <EGL/eglext.h>
+
+#include <eglut.h>
+
+#define STRIPS_PER_TOOTH 7
+#define VERTICES_PER_TOOTH 34
+#define GEAR_VERTEX_STRIDE 6
+
+/**
+ * Struct describing the vertices in triangle strip
+ */
+struct vertex_strip {
+   /** The first vertex in the strip */
+   GLint first;
+   /** The number of consecutive vertices in the strip after the first */
+   GLint count;
+};
+
+/* Each vertex consist of GEAR_VERTEX_STRIDE GLfloat attributes */
+typedef GLfloat GearVertex[GEAR_VERTEX_STRIDE];
+
+/**
+ * Struct representing a gear.
+ */
+struct gear {
+   /** The array of vertices comprising the gear */
+   GearVertex *vertices;
+   /** The number of vertices comprising the gear */
+   int nvertices;
+   /** The array of triangle strips comprising the gear */
+   struct vertex_strip *strips;
+   /** The number of triangle strips comprising the gear */
+   int nstrips;
+   /** The Vertex Buffer Object holding the vertices in the graphics card */
+   GLuint vbo;
+};
+
+/** The view rotation [x, y, z] */
+static GLfloat view_rot[3] = { 20.0, 30.0, 0.0 };
+/** The gears */
+static struct gear *gear1, *gear2, *gear3;
+/** The current gear rotation angle */
+static GLfloat angle = 0.0;
+/** The location of the shader uniforms */
+static GLuint ModelViewProjectionMatrix_location,
+              NormalMatrix_location,
+              LightSourcePosition_location,
+              MaterialColor_location;
+/** The projection matrix */
+static GLfloat ProjectionMatrix[16];
+/** The direction of the directional light for the scene */
+static const GLfloat LightSourcePosition[4] = { 5.0, 5.0, 10.0, 1.0};
+
+/** 
+ * Fills a gear vertex.
+ * 
+ * @param v the vertex to fill
+ * @param x the x coordinate
+ * @param y the y coordinate
+ * @param z the z coortinate
+ * @param n pointer to the normal table 
+ * 
+ * @return the operation error code
+ */
+static GearVertex *
+vert(GearVertex *v, GLfloat x, GLfloat y, GLfloat z, GLfloat n[3])
+{
+   v[0][0] = x;
+   v[0][1] = y;
+   v[0][2] = z;
+   v[0][3] = n[0];
+   v[0][4] = n[1];
+   v[0][5] = n[2];
+
+   return v + 1;
+}
+
+/**
+ *  Create a gear wheel.
+ * 
+ *  @param inner_radius radius of hole at center
+ *  @param outer_radius radius at center of teeth
+ *  @param width width of gear
+ *  @param teeth number of teeth
+ *  @param tooth_depth depth of tooth
+ *  
+ *  @return pointer to the constructed struct gear
+ */
+static struct gear *
+create_gear(GLfloat inner_radius, GLfloat outer_radius, GLfloat width,
+      GLint teeth, GLfloat tooth_depth)
+{
+   GLfloat r0, r1, r2;
+   GLfloat da;
+   GearVertex *v;
+   struct gear *gear;
+   double s[5], c[5];
+   GLfloat normal[3];
+   int cur_strip = 0;
+   int i;
+
+   /* Allocate memory for the gear */
+   gear = malloc(sizeof *gear);
+   if (gear == NULL)
+      return NULL;
+
+   /* Calculate the radii used in the gear */
+   r0 = inner_radius;
+   r1 = outer_radius - tooth_depth / 2.0;
+   r2 = outer_radius + tooth_depth / 2.0;
+
+   da = 2.0 * M_PI / teeth / 4.0;
+
+   /* Allocate memory for the triangle strip information */
+   gear->nstrips = STRIPS_PER_TOOTH * teeth;
+   gear->strips = calloc(gear->nstrips, sizeof (*gear->strips));
+
+   /* Allocate memory for the vertices */
+   gear->vertices = calloc(VERTICES_PER_TOOTH * teeth, sizeof(*gear->vertices));
+   v = gear->vertices;
+
+   for (i = 0; i < teeth; i++) {
+      /* Calculate needed sin/cos for varius angles */
+      sincos(i * 2.0 * M_PI / teeth, &s[0], &c[0]);
+      sincos(i * 2.0 * M_PI / teeth + da, &s[1], &c[1]);
+      sincos(i * 2.0 * M_PI / teeth + da * 2, &s[2], &c[2]);
+      sincos(i * 2.0 * M_PI / teeth + da * 3, &s[3], &c[3]);
+      sincos(i * 2.0 * M_PI / teeth + da * 4, &s[4], &c[4]);
+
+      /* A set of macros for making the creation of the gears easier */
+#define  GEAR_POINT(r, da) { (r) * c[(da)], (r) * s[(da)] }
+#define  SET_NORMAL(x, y, z) do { \
+   normal[0] = (x); normal[1] = (y); normal[2] = (z); \
+} while(0)
+
+#define  GEAR_VERT(v, point, sign) vert((v), p[(point)].x, p[(point)].y, (sign) * width * 0.5, normal)
+
+#define START_STRIP do { \
+   gear->strips[cur_strip].first = v - gear->vertices; \
+} while(0);
+
+#define END_STRIP do { \
+   int _tmp = (v - gear->vertices); \
+   gear->strips[cur_strip].count = _tmp - gear->strips[cur_strip].first; \
+   cur_strip++; \
+} while (0)
+
+#define QUAD_WITH_NORMAL(p1, p2) do { \
+   SET_NORMAL((p[(p1)].y - p[(p2)].y), -(p[(p1)].x - p[(p2)].x), 0); \
+   v = GEAR_VERT(v, (p1), -1); \
+   v = GEAR_VERT(v, (p1), 1); \
+   v = GEAR_VERT(v, (p2), -1); \
+   v = GEAR_VERT(v, (p2), 1); \
+} while(0)
+
+      struct point {
+         GLfloat x;
+         GLfloat y;
+      };
+
+      /* Create the 7 points (only x,y coords) used to draw a tooth */
+      struct point p[7] = {
+         GEAR_POINT(r2, 1), // 0
+         GEAR_POINT(r2, 2), // 1
+         GEAR_POINT(r1, 0), // 2
+         GEAR_POINT(r1, 3), // 3
+         GEAR_POINT(r0, 0), // 4
+         GEAR_POINT(r1, 4), // 5
+         GEAR_POINT(r0, 4), // 6
+      };
+
+      /* Front face */
+      START_STRIP;
+      SET_NORMAL(0, 0, 1.0);
+      v = GEAR_VERT(v, 0, +1);
+      v = GEAR_VERT(v, 1, +1);
+      v = GEAR_VERT(v, 2, +1);
+      v = GEAR_VERT(v, 3, +1);
+      v = GEAR_VERT(v, 4, +1);
+      v = GEAR_VERT(v, 5, +1);
+      v = GEAR_VERT(v, 6, +1);
+      END_STRIP;
+
+      /* Inner face */
+      START_STRIP;
+      QUAD_WITH_NORMAL(4, 6);
+      END_STRIP;
+
+      /* Back face */
+      START_STRIP;
+      SET_NORMAL(0, 0, -1.0);
+      v = GEAR_VERT(v, 6, -1);
+      v = GEAR_VERT(v, 5, -1);
+      v = GEAR_VERT(v, 4, -1);
+      v = GEAR_VERT(v, 3, -1);
+      v = GEAR_VERT(v, 2, -1);
+      v = GEAR_VERT(v, 1, -1);
+      v = GEAR_VERT(v, 0, -1);
+      END_STRIP;
+
+      /* Outer face */
+      START_STRIP;
+      QUAD_WITH_NORMAL(0, 2);
+      END_STRIP;
+
+      START_STRIP;
+      QUAD_WITH_NORMAL(1, 0);
+      END_STRIP;
+
+      START_STRIP;
+      QUAD_WITH_NORMAL(3, 1);
+      END_STRIP;
+
+      START_STRIP;
+      QUAD_WITH_NORMAL(5, 3);
+      END_STRIP;
+   }
+
+   gear->nvertices = (v - gear->vertices);
+
+   /* Store the vertices in a vertex buffer object (VBO) */
+   glGenBuffers(1, &gear->vbo);
+   glBindBuffer(GL_ARRAY_BUFFER, gear->vbo);
+   glBufferData(GL_ARRAY_BUFFER, gear->nvertices * sizeof(GearVertex),
+         gear->vertices, GL_STATIC_DRAW);
+
+   return gear;
+}
+
+/** 
+ * Multiplies two 4x4 matrices.
+ * 
+ * The result is stored in matrix m.
+ * 
+ * @param m the first matrix to multiply
+ * @param n the second matrix to multiply
+ */
+static void
+multiply(GLfloat *m, const GLfloat *n)
+{
+   GLfloat tmp[16];
+   const GLfloat *row, *column;
+   div_t d;
+   int i, j;
+
+   for (i = 0; i < 16; i++) {
+      tmp[i] = 0;
+      d = div(i, 4);
+      row = n + d.quot * 4;
+      column = m + d.rem;
+      for (j = 0; j < 4; j++)
+         tmp[i] += row[j] * column[j * 4];
+   }
+   memcpy(m, &tmp, sizeof tmp);
+}
+
+/** 
+ * Rotates a 4x4 matrix.
+ * 
+ * @param[in,out] m the matrix to rotate
+ * @param angle the angle to rotate
+ * @param x the x component of the direction to rotate to
+ * @param y the y component of the direction to rotate to
+ * @param z the z component of the direction to rotate to
+ */
+static void
+rotate(GLfloat *m, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+   double s, c;
+
+   sincos(angle, &s, &c);
+   GLfloat r[16] = {
+      x * x * (1 - c) + c,     y * x * (1 - c) + z * s, x * z * (1 - c) - y * s, 0,
+      x * y * (1 - c) - z * s, y * y * (1 - c) + c,     y * z * (1 - c) + x * s, 0, 
+      x * z * (1 - c) + y * s, y * z * (1 - c) - x * s, z * z * (1 - c) + c,     0,
+      0, 0, 0, 1
+   };
+
+   multiply(m, r);
+}
+
+
+/** 
+ * Translates a 4x4 matrix.
+ * 
+ * @param[in,out] m the matrix to translate
+ * @param x the x component of the direction to translate to
+ * @param y the y component of the direction to translate to
+ * @param z the z component of the direction to translate to
+ */
+static void
+translate(GLfloat *m, GLfloat x, GLfloat y, GLfloat z)
+{
+   GLfloat t[16] = { 1, 0, 0, 0,  0, 1, 0, 0,  0, 0, 1, 0,  x, y, z, 1 };
+
+   multiply(m, t);
+}
+
+/** 
+ * Creates an identity 4x4 matrix.
+ * 
+ * @param m the matrix make an identity matrix
+ */
+static void
+identity(GLfloat *m)
+{
+   GLfloat t[16] = {
+      1.0, 0.0, 0.0, 0.0,
+      0.0, 1.0, 0.0, 0.0,
+      0.0, 0.0, 1.0, 0.0,
+      0.0, 0.0, 0.0, 1.0,
+   };
+
+   memcpy(m, t, sizeof(t));
+}
+
+/** 
+ * Transposes a 4x4 matrix.
+ *
+ * @param m the matrix to transpose
+ */
+static void 
+transpose(GLfloat *m)
+{
+   GLfloat t[16] = {
+      m[0], m[4], m[8],  m[12],
+      m[1], m[5], m[9],  m[13],
+      m[2], m[6], m[10], m[14],
+      m[3], m[7], m[11], m[15]};
+
+   memcpy(m, t, sizeof(t));
+}
+
+/**
+ * Inverts a 4x4 matrix.
+ *
+ * This function can currently handle only pure translation-rotation matrices.
+ * Read http://www.gamedev.net/community/forums/topic.asp?topic_id=425118
+ * for an explanation.
+ */
+static void
+invert(GLfloat *m)
+{
+   GLfloat t[16];
+   identity(t);
+
+   // Extract and invert the translation part 't'. The inverse of a
+   // translation matrix can be calculated by negating the translation
+   // coordinates.
+   t[12] = -m[12]; t[13] = -m[13]; t[14] = -m[14];
+
+   // Invert the rotation part 'r'. The inverse of a rotation matrix is
+   // equal to its transpose.
+   m[12] = m[13] = m[14] = 0;
+   transpose(m);
+
+   // inv(m) = inv(r) * inv(t)
+   multiply(m, t);
+}
+
+/** 
+ * Calculate a perspective projection transformation.
+ * 
+ * @param m the matrix to save the transformation in
+ * @param fovy the field of view in the y direction
+ * @param aspect the view aspect ratio
+ * @param zNear the near clipping plane
+ * @param zFar the far clipping plane
+ */
+void perspective(GLfloat *m, GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar)
+{
+   GLfloat tmp[16];
+   identity(tmp);
+
+   double sine, cosine, cotangent, deltaZ;
+   GLfloat radians = fovy / 2 * M_PI / 180;
+
+   deltaZ = zFar - zNear;
+   sincos(radians, &sine, &cosine);
+
+   if ((deltaZ == 0) || (sine == 0) || (aspect == 0))
+      return;
+
+   cotangent = cosine / sine;
+
+   tmp[0] = cotangent / aspect;
+   tmp[5] = cotangent;
+   tmp[10] = -(zFar + zNear) / deltaZ;
+   tmp[11] = -1;
+   tmp[14] = -2 * zNear * zFar / deltaZ;
+   tmp[15] = 0;
+
+   memcpy(m, tmp, sizeof(tmp));
+}
+
+/**
+ * Draws a gear.
+ *
+ * @param gear the gear to draw
+ * @param transform the current transformation matrix
+ * @param x the x position to draw the gear at
+ * @param y the y position to draw the gear at
+ * @param angle the rotation angle of the gear
+ * @param color the color of the gear
+ */
+static void
+draw_gear(struct gear *gear, GLfloat *transform,
+      GLfloat x, GLfloat y, GLfloat angle, const GLfloat color[4])
+{
+   GLfloat model_view[16];
+   GLfloat normal_matrix[16];
+   GLfloat model_view_projection[16];
+
+   /* Translate and rotate the gear */
+   memcpy(model_view, transform, sizeof (model_view));
+   translate(model_view, x, y, 0);
+   rotate(model_view, 2 * M_PI * angle / 360.0, 0, 0, 1);
+
+   /* Create and set the ModelViewProjectionMatrix */
+   memcpy(model_view_projection, ProjectionMatrix, sizeof(model_view_projection));
+   multiply(model_view_projection, model_view);
+
+   glUniformMatrix4fv(ModelViewProjectionMatrix_location, 1, GL_FALSE,
+                      model_view_projection);
+
+   /* 
+    * Create and set the NormalMatrix. It's the inverse transpose of the
+    * ModelView matrix.
+    */
+   memcpy(normal_matrix, model_view, sizeof (normal_matrix));
+   invert(normal_matrix);
+   transpose(normal_matrix);
+   glUniformMatrix4fv(NormalMatrix_location, 1, GL_FALSE, normal_matrix);
+
+   /* Set the gear color */
+   glUniform4fv(MaterialColor_location, 1, color);
+
+   /* Set the vertex buffer object to use */
+   glBindBuffer(GL_ARRAY_BUFFER, gear->vbo);
+
+   /* Set up the position of the attributes in the vertex buffer object */
+   glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE,
+         6 * sizeof(GLfloat), NULL);
+   glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE,
+         6 * sizeof(GLfloat), (GLfloat *) 0 + 3);
+
+   /* Enable the attributes */
+   glEnableVertexAttribArray(0);
+   glEnableVertexAttribArray(1);
+
+   /* Draw the triangle strips that comprise the gear */
+   int n;
+   for (n = 0; n < gear->nstrips; n++)
+      glDrawArrays(GL_TRIANGLE_STRIP, gear->strips[n].first, gear->strips[n].count);
+
+   /* Disable the attributes */
+   glDisableVertexAttribArray(1);
+   glDisableVertexAttribArray(0);
+}
+
+/** 
+ * Draws the gears.
+ */
+static void
+gears_draw(void)
+{
+   const static GLfloat red[4] = { 0.8, 0.1, 0.0, 1.0 };
+   const static GLfloat green[4] = { 0.0, 0.8, 0.2, 1.0 };
+   const static GLfloat blue[4] = { 0.2, 0.2, 1.0, 1.0 };
+   GLfloat transform[16];
+   identity(transform);
+
+   glClearColor(0.0, 0.0, 0.0, 0.0);
+   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+   /* Translate and rotate the view */
+   translate(transform, 0, 0, -20);
+   rotate(transform, 2 * M_PI * view_rot[0] / 360.0, 1, 0, 0);
+   rotate(transform, 2 * M_PI * view_rot[1] / 360.0, 0, 1, 0);
+   rotate(transform, 2 * M_PI * view_rot[2] / 360.0, 0, 0, 1);
+
+   /* Draw the gears */
+   draw_gear(gear1, transform, -3.0, -2.0, angle, red);
+   draw_gear(gear2, transform, 3.1, -2.0, -2 * angle - 9.0, green);
+   draw_gear(gear3, transform, -3.1, 4.2, -2 * angle - 25.0, blue);
+}
+
+/** 
+ * Handles a new window size or exposure.
+ * 
+ * @param width the window width
+ * @param height the window height
+ */
+static void
+gears_reshape(int width, int height)
+{
+   /* Update the projection matrix */
+   perspective(ProjectionMatrix, 60.0, width / (float)height, 1.0, 1024.0);
+
+   /* Set the viewport */
+   glViewport(0, 0, (GLint) width, (GLint) height);
+}
+
+/** 
+ * Handles special eglut events.
+ * 
+ * @param special the event to handle.
+ */
+static void
+gears_special(int special)
+{
+   switch (special) {
+      case EGLUT_KEY_LEFT:
+         view_rot[1] += 5.0;
+         break;
+      case EGLUT_KEY_RIGHT:
+         view_rot[1] -= 5.0;
+         break;
+      case EGLUT_KEY_UP:
+         view_rot[0] += 5.0;
+         break;
+      case EGLUT_KEY_DOWN:
+         view_rot[0] -= 5.0;
+         break;
+   }
+}
+
+static void
+gears_idle(void)
+{
+   static int frames = 0;
+   static double tRot0 = -1.0, tRate0 = -1.0;
+   double dt, t = eglutGet(EGLUT_ELAPSED_TIME) / 1000.0;
+
+   if (tRot0 < 0.0)
+      tRot0 = t;
+   dt = t - tRot0;
+   tRot0 = t;
+
+   /* advance rotation for next frame */
+   angle += 70.0 * dt;  /* 70 degrees per second */
+   if (angle > 3600.0)
+      angle -= 3600.0;
+
+   eglutPostRedisplay();
+   frames++;
+
+   if (tRate0 < 0.0)
+      tRate0 = t;
+   if (t - tRate0 >= 5.0) {
+      GLfloat seconds = t - tRate0;
+      GLfloat fps = frames / seconds;
+      printf("%d frames in %3.1f seconds = %6.3f FPS\n", frames, seconds,
+            fps);
+      tRate0 = t;
+      frames = 0;
+   }
+}
+
+static const char vertex_shader[] =
+"attribute vec3 position;\n"
+"attribute vec3 normal;\n"
+"\n"
+"uniform mat4 ModelViewProjectionMatrix;\n"
+"uniform mat4 NormalMatrix;\n"
+"uniform vec4 LightSourcePosition;\n"
+"uniform vec4 MaterialColor;\n"
+"\n"
+"varying vec4 Color;\n"
+"\n"
+"void main(void)\n"
+"{\n"
+"    // Transform the normal to eye coordinates\n"
+"    vec3 N = normalize(vec3(NormalMatrix * vec4(normal, 1.0)));\n"
+"\n"
+"    // The LightSourcePosition is actually its direction for directional light\n"
+"    vec3 L = normalize(LightSourcePosition.xyz);\n"
+"\n"
+"    // Multiply the diffuse value by the vertex color (which is fixed in this case)\n"
+"    // to get the actual color that we will use to draw this vertex with\n"
+"    float diffuse = max(dot(N, L), 0.0);\n"
+"    Color = diffuse * MaterialColor;\n"
+"\n"
+"    // Transform the position to clip coordinates\n"
+"    gl_Position = ModelViewProjectionMatrix * vec4(position, 1.0);\n"
+"}";
+
+static const char fragment_shader[] =
+"precision mediump float;\n"
+"varying vec4 Color;\n"
+"\n"
+"void main(void)\n"
+"{\n"
+"    gl_FragColor = Color;\n"
+"}";
+
+static void
+gears_init(void)
+{
+   GLuint v, f, program;
+   const char *p;
+   char msg[512];
+
+   glEnable(GL_CULL_FACE);
+   glEnable(GL_DEPTH_TEST);
+
+   /* Compile the vertex shader */
+   p = vertex_shader;
+   v = glCreateShader(GL_VERTEX_SHADER);
+   glShaderSource(v, 1, &p, NULL);
+   glCompileShader(v);
+   glGetShaderInfoLog(v, sizeof msg, NULL, msg);
+   printf("vertex shader info: %s\n", msg);
+
+   /* Compile the fragment shader */
+   p = fragment_shader;
+   f = glCreateShader(GL_FRAGMENT_SHADER);
+   glShaderSource(f, 1, &p, NULL);
+   glCompileShader(f);
+   glGetShaderInfoLog(f, sizeof msg, NULL, msg);
+   printf("fragment shader info: %s\n", msg);
+
+   /* Create and link the shader program */
+   program = glCreateProgram();
+   glAttachShader(program, v);
+   glAttachShader(program, f);
+   glBindAttribLocation(program, 0, "position");
+   glBindAttribLocation(program, 1, "normal");
+
+   glLinkProgram(program);
+   glGetProgramInfoLog(program, sizeof msg, NULL, msg);
+   printf("info: %s\n", msg);
+
+   /* Enable the shaders */
+   glUseProgram(program);
+
+   /* Get the locations of the uniforms so we can access them */
+   ModelViewProjectionMatrix_location = glGetUniformLocation(program, "ModelViewProjectionMatrix");
+   NormalMatrix_location = glGetUniformLocation(program, "NormalMatrix");
+   LightSourcePosition_location = glGetUniformLocation(program, "LightSourcePosition");
+   MaterialColor_location = glGetUniformLocation(program, "MaterialColor");
+
+   /* Set the LightSourcePosition uniform which is constant throught the program */
+   glUniform4fv(LightSourcePosition_location, 1, LightSourcePosition);
+
+   /* make the gears */
+   gear1 = create_gear(1.0, 4.0, 1.0, 20, 0.7);
+   gear2 = create_gear(0.5, 2.0, 2.0, 10, 0.7);
+   gear3 = create_gear(1.3, 2.0, 0.5, 10, 0.7);
+}
+
+int
+main(int argc, char *argv[])
+{
+   /* Initialize the window */
+   eglutInitWindowSize(300, 300);
+   eglutInitAPIMask(EGLUT_OPENGL_ES2_BIT);
+   eglutInit(argc, argv);
+
+   eglutCreateWindow("es2gears");
+
+   /* Set up eglut callback functions */
+   eglutIdleFunc(gears_idle);
+   eglutReshapeFunc(gears_reshape);
+   eglutDisplayFunc(gears_draw);
+   eglutSpecialFunc(gears_special);
+
+   /* Initialize the gears */
+   gears_init();
+
+   eglutMainLoop();
+
+   return 0;
+}
Index: X11/libs/sunxi-mali/3.0.4.0/pkgconfigs/egl.pc
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/pkgconfigs/egl.pc	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/pkgconfigs/egl.pc	(revision 563)
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: egl
+Description: Mali EGL library
+Requires.private:  libdrm >= 2.4.38 x11 xext xdamage xfixes x11-xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8 xcb-dri3 xcb-present xcb-sync xshmfence >= 1.1 xxf86vm
+Version: 3.0.4.0
+Libs: -L${libdir} -lEGL -lUMP -ldri2
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir} 
Index: X11/libs/sunxi-mali/3.0.4.0/pkgconfigs/glesv1_cm.pc
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/pkgconfigs/glesv1_cm.pc	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/pkgconfigs/glesv1_cm.pc	(revision 563)
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: glesv1_cm
+Description: Mali OpenGL ES 1.1 CM library
+Requires.private:
+Version: 3.0.4.0
+Libs: -L${libdir} -lGLESv1_CM -lUMP -ldri2
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir}
Index: X11/libs/sunxi-mali/3.0.4.0/pkgconfigs/glesv2.pc
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/pkgconfigs/glesv2.pc	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/pkgconfigs/glesv2.pc	(revision 563)
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: glesv2
+Description: Mali OpenGL ES 2.0 library
+Requires.private:
+Version: 3.0.4.0
+Libs: -L${libdir} -lGLESv2 -lUMP -ldri2
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir}
Index: X11/libs/sunxi-mali/3.0.4.0/license/COPYING
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/license/COPYING	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/license/COPYING	(revision 563)
@@ -0,0 +1,22 @@
+
+/*
+ * Copyright (C) 2010 ARM Limited. All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
Index: X11/libs/sunxi-mali/3.0.4.0/sunxi-mali-pkg-description.in
===================================================================
--- X11/libs/sunxi-mali/3.0.4.0/sunxi-mali-pkg-description.in	(nonexistent)
+++ X11/libs/sunxi-mali/3.0.4.0/sunxi-mali-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+          |-----handy-ruler------------------------------------------------------|
+sunxi-mali: sunxi-mali @VERSION@ (Mali userspace driver for X11)
+sunxi-mali:
+sunxi-mali: sunxi-mali is provided as a complete set of Mali userspace drivers,
+sunxi-mali: including proprietary OpenGLESv2/EGL binaries.
+sunxi-mali:
+sunxi-mali: See: http://linux-sunxi.org/Mali_binary_driver
+sunxi-mali:
+sunxi-mali:
+sunxi-mali:
+sunxi-mali:
+sunxi-mali:
Index: X11/X.org/app/appres/1.0.4/Makefile
===================================================================
--- X11/X.org/app/appres/1.0.4/Makefile	(nonexistent)
+++ X11/X.org/app/appres/1.0.4/Makefile	(revision 563)
@@ -0,0 +1,175 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/appres
+
+REQUIRES           = X11/X.org/lib/libXt/1.1.4
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.4
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/appres/appres-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/appres-$(version)
+src_dir_name       = appres-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = appres
+XORG_PKG_VERSION             = 1.0.4
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = X resource inspection utility
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/appres/1.0.4/appres-pkg-install.sh
===================================================================
--- X11/X.org/app/appres/1.0.4/appres-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/appres/1.0.4/appres-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/appres/1.0.4/appres-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/appres/1.0.4/PATCHES
===================================================================
Index: X11/X.org/app/appres/1.0.4/appres-pkg-description.in
===================================================================
--- X11/X.org/app/appres/1.0.4/appres-pkg-description.in	(nonexistent)
+++ X11/X.org/app/appres/1.0.4/appres-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+      |-----handy-ruler------------------------------------------------------|
+appres: appres @VERSION@ (X resource inspection utility)
+appres:
+appres: appres is part of X11.
+appres:
+appres: For more information about the X.Org Foundation (the providers
+appres: of the X.Org implementation of the X Window System).
+appres:
+appres: See: http://www.x.org
+appres:
+appres:
+appres:
Index: X11/X.org/app/bdftopcf/1.0.4/Makefile
===================================================================
--- X11/X.org/app/bdftopcf/1.0.4/Makefile	(nonexistent)
+++ X11/X.org/app/bdftopcf/1.0.4/Makefile	(revision 563)
@@ -0,0 +1,175 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/bdftopcf
+
+REQUIRES           = X11/X.org/lib/libXfont/1.5.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.4
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/bdftopcf/bdftopcf-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/bdftopcf-$(version)
+src_dir_name       = bdftopcf-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = bdftopcf
+XORG_PKG_VERSION             = 1.0.4
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = font compiler for the X server
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/bdftopcf/1.0.4/bdftopcf-pkg-install.sh
===================================================================
--- X11/X.org/app/bdftopcf/1.0.4/bdftopcf-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/bdftopcf/1.0.4/bdftopcf-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/bdftopcf/1.0.4/bdftopcf-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/bdftopcf/1.0.4/PATCHES
===================================================================
Index: X11/X.org/app/bdftopcf/1.0.4/bdftopcf-pkg-description.in
===================================================================
--- X11/X.org/app/bdftopcf/1.0.4/bdftopcf-pkg-description.in	(nonexistent)
+++ X11/X.org/app/bdftopcf/1.0.4/bdftopcf-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+bdftopcf: bdftopcf @VERSION@ (font compiler for the X server)
+bdftopcf:
+bdftopcf: bdftopcf is part of X11.
+bdftopcf:
+bdftopcf: For more information about the X.Org Foundation (the providers
+bdftopcf: of the X.Org implementation of the X Window System).
+bdftopcf:
+bdftopcf: See: http://www.x.org
+bdftopcf:
+bdftopcf:
+bdftopcf:
Index: X11/X.org/app/beforelight/1.0.5/Makefile
===================================================================
--- X11/X.org/app/beforelight/1.0.5/Makefile	(nonexistent)
+++ X11/X.org/app/beforelight/1.0.5/Makefile	(revision 563)
@@ -0,0 +1,176 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/beforelight
+
+REQUIRES           = X11/X.org/lib/libXt/1.1.4
+REQUIRES          += X11/X.org/lib/libXScrnSaver/1.2.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.5
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/beforelight/beforelight-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/beforelight-$(version)
+src_dir_name       = beforelight-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = beforelight
+XORG_PKG_VERSION             = 1.0.5
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = X11 screensaver
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/beforelight/1.0.5/beforelight-pkg-install.sh
===================================================================
--- X11/X.org/app/beforelight/1.0.5/beforelight-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/beforelight/1.0.5/beforelight-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/beforelight/1.0.5/beforelight-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/beforelight/1.0.5/PATCHES
===================================================================
Index: X11/X.org/app/beforelight/1.0.5/beforelight-pkg-description.in
===================================================================
--- X11/X.org/app/beforelight/1.0.5/beforelight-pkg-description.in	(nonexistent)
+++ X11/X.org/app/beforelight/1.0.5/beforelight-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+           |-----handy-ruler------------------------------------------------------|
+beforelight: beforelight @VERSION@ (X11 screensaver)
+beforelight:
+beforelight: beforelight is part of X11.
+beforelight:
+beforelight: For more information about the X.Org Foundation (the providers
+beforelight: of the X.Org implementation of the X Window System).
+beforelight:
+beforelight: See: http://www.x.org
+beforelight:
+beforelight:
+beforelight:
Index: X11/X.org/app/bitmap/1.0.7/Makefile
===================================================================
--- X11/X.org/app/bitmap/1.0.7/Makefile	(nonexistent)
+++ X11/X.org/app/bitmap/1.0.7/Makefile	(revision 563)
@@ -0,0 +1,186 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/bitmap
+
+REQUIRES           = X11/X.org/lib/libXaw/1.0.12
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.7
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/bitmap/bitmap-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/bitmap-$(version)
+src_dir_name       = bitmap-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = bitmap
+XORG_PKG_VERSION             = 1.0.7
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = X bitmap editor and converter
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@( cd $(XORG_PKG)/usr/share/man/man1 ; \
+	   for file in *.1 ; do                                \
+	     ln=`head -n 1 $$file` ;                           \
+	     if [ "`echo $$ln | grep '^\.so '`" != "" ] ; then \
+	       origin=`echo $$ln | cut -f 2 -d ' '` ;          \
+	       origin=`basename $$origin` ;                    \
+	       rm -f $$file ;                                  \
+	       ln -sf $$origin $$file ;                        \
+	     fi ;                                              \
+	   done ;                                              \
+	 )
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/bitmap/1.0.7/bitmap-pkg-install.sh
===================================================================
--- X11/X.org/app/bitmap/1.0.7/bitmap-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/bitmap/1.0.7/bitmap-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/bitmap/1.0.7/bitmap-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/bitmap/1.0.7/PATCHES
===================================================================
Index: X11/X.org/app/bitmap/1.0.7/bitmap-pkg-description.in
===================================================================
--- X11/X.org/app/bitmap/1.0.7/bitmap-pkg-description.in	(nonexistent)
+++ X11/X.org/app/bitmap/1.0.7/bitmap-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+      |-----handy-ruler------------------------------------------------------|
+bitmap: bitmap @VERSION@ (X bitmap editor and converter)
+bitmap:
+bitmap: bitmap is part of X11.
+bitmap:
+bitmap: For more information about the X.Org Foundation (the providers
+bitmap: of the X.Org implementation of the X Window System).
+bitmap:
+bitmap: See: http://www.x.org
+bitmap:
+bitmap:
+bitmap:
Index: X11/X.org/app/editres/1.0.6/Makefile
===================================================================
--- X11/X.org/app/editres/1.0.6/Makefile	(nonexistent)
+++ X11/X.org/app/editres/1.0.6/Makefile	(revision 563)
@@ -0,0 +1,175 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/editres
+
+REQUIRES           = X11/X.org/lib/libXaw/1.0.12
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.6
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/editres/editres-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/editres-$(version)
+src_dir_name       = editres-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = editres
+XORG_PKG_VERSION             = 1.0.6
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = X11 resource editor
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/editres/1.0.6/editres-pkg-install.sh
===================================================================
--- X11/X.org/app/editres/1.0.6/editres-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/editres/1.0.6/editres-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/editres/1.0.6/editres-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/editres/1.0.6/PATCHES
===================================================================
Index: X11/X.org/app/editres/1.0.6/editres-pkg-description.in
===================================================================
--- X11/X.org/app/editres/1.0.6/editres-pkg-description.in	(nonexistent)
+++ X11/X.org/app/editres/1.0.6/editres-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+       |-----handy-ruler------------------------------------------------------|
+editres: editres @VERSION@ (X11 resource editor)
+editres:
+editres: editres is part of X11.
+editres:
+editres: For more information about the X.Org Foundation (the providers
+editres: of the X.Org implementation of the X Window System).
+editres:
+editres: See: http://www.x.org
+editres:
+editres:
+editres:
Index: X11/X.org/app/fonttosfnt/1.0.4/Makefile
===================================================================
--- X11/X.org/app/fonttosfnt/1.0.4/Makefile	(nonexistent)
+++ X11/X.org/app/fonttosfnt/1.0.4/Makefile	(revision 563)
@@ -0,0 +1,176 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/fonttosfnt
+
+REQUIRES           = libs/freetype/2.5.3
+REQUIRES          += X11/X.org/lib/libfontenc/1.1.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.4
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/fonttosfnt/fonttosfnt-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/fonttosfnt-$(version)
+src_dir_name       = fonttosfnt-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = fonttosfnt
+XORG_PKG_VERSION             = 1.0.4
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = wrap a bitmap font utility
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/fonttosfnt/1.0.4/fonttosfnt-pkg-install.sh
===================================================================
--- X11/X.org/app/fonttosfnt/1.0.4/fonttosfnt-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/fonttosfnt/1.0.4/fonttosfnt-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/fonttosfnt/1.0.4/fonttosfnt-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/fonttosfnt/1.0.4/PATCHES
===================================================================
Index: X11/X.org/app/fonttosfnt/1.0.4/fonttosfnt-pkg-description.in
===================================================================
--- X11/X.org/app/fonttosfnt/1.0.4/fonttosfnt-pkg-description.in	(nonexistent)
+++ X11/X.org/app/fonttosfnt/1.0.4/fonttosfnt-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+          |-----handy-ruler------------------------------------------------------|
+fonttosfnt: fonttosfnt @VERSION@ (wrap a bitmap font utility)
+fonttosfnt:
+fonttosfnt: fonttosfnt is part of X11.
+fonttosfnt:
+fonttosfnt: For more information about the X.Org Foundation (the providers
+fonttosfnt: of the X.Org implementation of the X Window System).
+fonttosfnt:
+fonttosfnt: See: http://www.x.org
+fonttosfnt:
+fonttosfnt:
+fonttosfnt:
Index: X11/X.org/app/fslsfonts/1.0.4/Makefile
===================================================================
--- X11/X.org/app/fslsfonts/1.0.4/Makefile	(nonexistent)
+++ X11/X.org/app/fslsfonts/1.0.4/Makefile	(revision 563)
@@ -0,0 +1,175 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/fslsfonts
+
+REQUIRES           = X11/X.org/lib/libFS/1.0.6
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.4
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/fslsfonts/fslsfonts-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/fslsfonts-$(version)
+src_dir_name       = fslsfonts-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = fslsfonts
+XORG_PKG_VERSION             = 1.0.4
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = list of fonts from X font server
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/fslsfonts/1.0.4/fslsfonts-pkg-install.sh
===================================================================
--- X11/X.org/app/fslsfonts/1.0.4/fslsfonts-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/fslsfonts/1.0.4/fslsfonts-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/fslsfonts/1.0.4/fslsfonts-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/fslsfonts/1.0.4/PATCHES
===================================================================
Index: X11/X.org/app/fslsfonts/1.0.4/fslsfonts-pkg-description.in
===================================================================
--- X11/X.org/app/fslsfonts/1.0.4/fslsfonts-pkg-description.in	(nonexistent)
+++ X11/X.org/app/fslsfonts/1.0.4/fslsfonts-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+         |-----handy-ruler------------------------------------------------------|
+fslsfonts: fslsfonts @VERSION@ (list of fonts from X font server)
+fslsfonts:
+fslsfonts: fslsfonts is part of X11.
+fslsfonts:
+fslsfonts: For more information about the X.Org Foundation (the providers
+fslsfonts: of the X.Org implementation of the X Window System).
+fslsfonts:
+fslsfonts: See: http://www.x.org
+fslsfonts:
+fslsfonts:
+fslsfonts:
Index: X11/X.org/app/fstobdf/1.0.5/Makefile
===================================================================
--- X11/X.org/app/fstobdf/1.0.5/Makefile	(nonexistent)
+++ X11/X.org/app/fstobdf/1.0.5/Makefile	(revision 563)
@@ -0,0 +1,176 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/fstobdf
+
+REQUIRES           = X11/X.org/lib/libX11/1.6.2
+REQUIRES          += X11/X.org/lib/libFS/1.0.6
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.5
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/fstobdf/fstobdf-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/fstobdf-$(version)
+src_dir_name       = fstobdf-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = fstobdf
+XORG_PKG_VERSION             = 1.0.5
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = copy fonts from an X11 font server
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/fstobdf/1.0.5/fstobdf-pkg-install.sh
===================================================================
--- X11/X.org/app/fstobdf/1.0.5/fstobdf-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/fstobdf/1.0.5/fstobdf-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/fstobdf/1.0.5/fstobdf-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/fstobdf/1.0.5/PATCHES
===================================================================
Index: X11/X.org/app/fstobdf/1.0.5/fstobdf-pkg-description.in
===================================================================
--- X11/X.org/app/fstobdf/1.0.5/fstobdf-pkg-description.in	(nonexistent)
+++ X11/X.org/app/fstobdf/1.0.5/fstobdf-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+       |-----handy-ruler------------------------------------------------------|
+fstobdf: fstobdf @VERSION@ (copy fonts from an X11 font server)
+fstobdf:
+fstobdf: fstobdf is part of X11.
+fstobdf:
+fstobdf: For more information about the X.Org Foundation (the providers
+fstobdf: of the X.Org implementation of the X Window System).
+fstobdf:
+fstobdf: See: http://www.x.org
+fstobdf:
+fstobdf:
+fstobdf:
Index: X11/X.org/app/iceauth/1.0.6/Makefile
===================================================================
--- X11/X.org/app/iceauth/1.0.6/Makefile	(nonexistent)
+++ X11/X.org/app/iceauth/1.0.6/Makefile	(revision 563)
@@ -0,0 +1,175 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/iceauth
+
+REQUIRES           = X11/X.org/lib/libICE/1.0.9
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.6
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/iceauth/iceauth-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/iceauth-$(version)
+src_dir_name       = iceauth-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = iceauth
+XORG_PKG_VERSION             = 1.0.6
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = display/edit ICE authorization information
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/iceauth/1.0.6/iceauth-pkg-install.sh
===================================================================
--- X11/X.org/app/iceauth/1.0.6/iceauth-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/iceauth/1.0.6/iceauth-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/iceauth/1.0.6/iceauth-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/iceauth/1.0.6/PATCHES
===================================================================
Index: X11/X.org/app/iceauth/1.0.6/iceauth-pkg-description.in
===================================================================
--- X11/X.org/app/iceauth/1.0.6/iceauth-pkg-description.in	(nonexistent)
+++ X11/X.org/app/iceauth/1.0.6/iceauth-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+       |-----handy-ruler------------------------------------------------------|
+iceauth: iceauth @VERSION@ (display/edit ICE authorization information)
+iceauth:
+iceauth: iceauth is part of X11.
+iceauth:
+iceauth: For more information about the X.Org Foundation (the providers
+iceauth: of the X.Org implementation of the X Window System).
+iceauth:
+iceauth: See: http://www.x.org
+iceauth:
+iceauth:
+iceauth:
Index: X11/X.org/app/ico/1.0.4/Makefile
===================================================================
--- X11/X.org/app/ico/1.0.4/Makefile	(nonexistent)
+++ X11/X.org/app/ico/1.0.4/Makefile	(revision 563)
@@ -0,0 +1,175 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/ico
+
+REQUIRES           = X11/X.org/lib/libX11/1.6.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.4
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/ico/ico-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/ico-$(version)
+src_dir_name       = ico-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = ico
+XORG_PKG_VERSION             = 1.0.4
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = X11 test client
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/ico/1.0.4/ico-pkg-install.sh
===================================================================
--- X11/X.org/app/ico/1.0.4/ico-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/ico/1.0.4/ico-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/ico/1.0.4/ico-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/ico/1.0.4/PATCHES
===================================================================
Index: X11/X.org/app/ico/1.0.4/ico-pkg-description.in
===================================================================
--- X11/X.org/app/ico/1.0.4/ico-pkg-description.in	(nonexistent)
+++ X11/X.org/app/ico/1.0.4/ico-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+   |-----handy-ruler------------------------------------------------------|
+ico: ico @VERSION@ (X11 test client)
+ico:
+ico: ico is part of X11.
+ico:
+ico: For more information about the X.Org Foundation (the providers
+ico: of the X.Org implementation of the X Window System).
+ico:
+ico: See: http://www.x.org
+ico:
+ico:
+ico:
Index: X11/X.org/app/listres/1.0.3/Makefile
===================================================================
--- X11/X.org/app/listres/1.0.3/Makefile	(nonexistent)
+++ X11/X.org/app/listres/1.0.3/Makefile	(revision 563)
@@ -0,0 +1,175 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/listres
+
+REQUIRES           = X11/X.org/lib/libXaw/1.0.12
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.3
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/listres/listres-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/listres-$(version)
+src_dir_name       = listres-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = listres
+XORG_PKG_VERSION             = 1.0.3
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = X11 resource lister
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/listres/1.0.3/listres-pkg-install.sh
===================================================================
--- X11/X.org/app/listres/1.0.3/listres-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/listres/1.0.3/listres-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/listres/1.0.3/listres-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/listres/1.0.3/PATCHES
===================================================================
Index: X11/X.org/app/listres/1.0.3/listres-pkg-description.in
===================================================================
--- X11/X.org/app/listres/1.0.3/listres-pkg-description.in	(nonexistent)
+++ X11/X.org/app/listres/1.0.3/listres-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+       |-----handy-ruler------------------------------------------------------|
+listres: listres @VERSION@ (X11 resource lister)
+listres:
+listres: listres is part of X11.
+listres:
+listres: For more information about the X.Org Foundation (the providers
+listres: of the X.Org implementation of the X Window System).
+listres:
+listres: See: http://www.x.org
+listres:
+listres:
+listres:
Index: X11/X.org/app/luit/1.1.1/Makefile
===================================================================
--- X11/X.org/app/luit/1.1.1/Makefile	(nonexistent)
+++ X11/X.org/app/luit/1.1.1/Makefile	(revision 563)
@@ -0,0 +1,178 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/luit
+
+REQUIRES           = X11/X.org/lib/libfontenc/1.1.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.1.1
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/luit/luit-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/luit-$(version)
+src_dir_name       = luit-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = luit
+XORG_PKG_VERSION             = 1.1.1
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = character encoding convertor
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   autoreconf -fi ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/luit/1.1.1/luit-pkg-install.sh
===================================================================
--- X11/X.org/app/luit/1.1.1/luit-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/luit/1.1.1/luit-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/luit/1.1.1/luit-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/luit/1.1.1/PATCHES
===================================================================
--- X11/X.org/app/luit/1.1.1/PATCHES	(nonexistent)
+++ X11/X.org/app/luit/1.1.1/PATCHES	(revision 563)
@@ -0,0 +1,2 @@
+
+../../../../../sources/X.org/app/luit/patches/luit-1.1.1.patch -p0
Index: X11/X.org/app/luit/1.1.1/luit-pkg-description.in
===================================================================
--- X11/X.org/app/luit/1.1.1/luit-pkg-description.in	(nonexistent)
+++ X11/X.org/app/luit/1.1.1/luit-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+    |-----handy-ruler------------------------------------------------------|
+luit: luit @VERSION@ (character encoding convertor)
+luit:
+luit: luit is part of X11.
+luit:
+luit: For more information about the X.Org Foundation (the providers
+luit: of the X.Org implementation of the X Window System).
+luit:
+luit: See: http://www.x.org
+luit:
+luit:
+luit:
Index: X11/X.org/app/mkcomposecache/1.2.1/Makefile
===================================================================
--- X11/X.org/app/mkcomposecache/1.2.1/Makefile	(nonexistent)
+++ X11/X.org/app/mkcomposecache/1.2.1/Makefile	(revision 563)
@@ -0,0 +1,175 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/mkcomposecache
+
+REQUIRES           = X11/X.org/lib/libX11/1.6.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.2.1
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/mkcomposecache/mkcomposecache-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/mkcomposecache-$(version)
+src_dir_name       = mkcomposecache-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = mkcomposecache
+XORG_PKG_VERSION             = 1.2.1
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = creates system-wide Compose cache files
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(XORG_PKG); \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/mkcomposecache/1.2.1/mkcomposecache-pkg-install.sh
===================================================================
--- X11/X.org/app/mkcomposecache/1.2.1/mkcomposecache-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/mkcomposecache/1.2.1/mkcomposecache-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/mkcomposecache/1.2.1/mkcomposecache-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/mkcomposecache/1.2.1/PATCHES
===================================================================
Index: X11/X.org/app/mkcomposecache/1.2.1/mkcomposecache-pkg-description.in
===================================================================
--- X11/X.org/app/mkcomposecache/1.2.1/mkcomposecache-pkg-description.in	(nonexistent)
+++ X11/X.org/app/mkcomposecache/1.2.1/mkcomposecache-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+              |-----handy-ruler------------------------------------------------------|
+mkcomposecache: mkcomposecache @VERSION@ (creates system-wide Compose cache files)
+mkcomposecache:
+mkcomposecache: mkcomposecache is part of X11.
+mkcomposecache:
+mkcomposecache: For more information about the X.Org Foundation (the providers
+mkcomposecache: of the X.Org implementation of the X Window System).
+mkcomposecache:
+mkcomposecache: See: http://www.x.org
+mkcomposecache:
+mkcomposecache:
+mkcomposecache:
Index: X11/X.org/app/mkfontdir/1.0.7/Makefile
===================================================================
--- X11/X.org/app/mkfontdir/1.0.7/Makefile	(nonexistent)
+++ X11/X.org/app/mkfontdir/1.0.7/Makefile	(revision 563)
@@ -0,0 +1,172 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/mkfontdir
+
+REQUIRES           = X11/X.org/util/util-macros/1.19.0
+REQUIRES          += X11/X.org/app/mkfontscale/1.1.1
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.0.7
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/mkfontdir/mkfontdir-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/mkfontdir-$(version)
+src_dir_name       = mkfontdir-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = mkfontdir
+XORG_PKG_VERSION             = 1.0.7
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = X11 font utility
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(XORG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(XORG_PKG)/usr/share/man ]; then \
+	  ( cd $(XORG_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(XORG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(XORG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING INSTALL README \
+	         $(XORG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(XORG_PKG)/usr/share/doc ; \
+	   ln -sf $(src_dir_name) $(XORG_PKG_NAME) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(XORG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(XORG_PKG))
+	@touch $@
+
+$(XORG_PKG_DESCRIPTION_FILE): $(XORG_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG_INSTALL_SCRIPT)
+	@cp $(XORG_PKG_DESCRIPTION_FILE) $(XORG_PKG)/.DESCRIPTION
+	@cp $(XORG_PKG_INSTALL_SCRIPT) $(XORG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(XORG_PKG)/.REQUIRES
+	@echo "pkgname=$(XORG_PKG_NAME)"                            >  $(XORG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(XORG_PKG_VERSION)"                          >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "arch=$(XORG_PKG_ARCH)"                               >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(XORG_PKG_DISTRO_NAME)"                  >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(XORG_PKG_DISTRO_VERSION)"                >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "group=$(XORG_PKG_GROUP)"                             >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(XORG_PKG_SHORT_DESCRIPTION)\"" >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "url=$(XORG_PKG_URL)"                                 >> $(XORG_PKG)/.PKGINFO ; \
+	 echo "license=$(XORG_PKG_LICENSE)"                         >> $(XORG_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(XORG_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
Index: X11/X.org/app/mkfontdir/1.0.7/mkfontdir-pkg-install.sh
===================================================================
--- X11/X.org/app/mkfontdir/1.0.7/mkfontdir-pkg-install.sh	(nonexistent)
+++ X11/X.org/app/mkfontdir/1.0.7/mkfontdir-pkg-install.sh	(revision 563)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: X11/X.org/app/mkfontdir/1.0.7/mkfontdir-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: X11/X.org/app/mkfontdir/1.0.7/PATCHES
===================================================================
Index: X11/X.org/app/mkfontdir/1.0.7/mkfontdir-pkg-description.in
===================================================================
--- X11/X.org/app/mkfontdir/1.0.7/mkfontdir-pkg-description.in	(nonexistent)
+++ X11/X.org/app/mkfontdir/1.0.7/mkfontdir-pkg-description.in	(revision 563)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+         |-----handy-ruler------------------------------------------------------|
+mkfontdir: mkfontdir @VERSION@ (X11 font utility)
+mkfontdir:
+mkfontdir: mkfontdir is part of X11.
+mkfontdir:
+mkfontdir: For more information about the X.Org Foundation (the providers
+mkfontdir: of the X.Org implementation of the X Window System).
+mkfontdir:
+mkfontdir: See: http://www.x.org
+mkfontdir:
+mkfontdir:
+mkfontdir:
Index: X11/X.org/app/mkfontscale/1.1.1/Makefile
===================================================================
--- X11/X.org/app/mkfontscale/1.1.1/Makefile	(nonexistent)
+++ X11/X.org/app/mkfontscale/1.1.1/Makefile	(revision 563)
@@ -0,0 +1,176 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_DM64X)
+COMPONENT_TARGETS += $(HARDWARE_BEAGLE)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_B74)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/X.org/app/mkfontscale
+
+REQUIRES           = libs/freetype/2.5.3
+REQUIRES          += X11/X.org/lib/libfontenc/1.1.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.1.1
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/X.org/app/mkfontscale/mkfontscale-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/mkfontscale-$(version)
+src_dir_name       = mkfontscale-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xorg
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+XORG_PKG_NAME                = mkfontscale
+XORG_PKG_VERSION             = 1.1.1
+XORG_PKG_ARCH                = $(TOOLCHAIN)
+XORG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+XORG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+XORG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+XORG_PKG_SHORT_DESCRIPTION   = X11 font utility
+XORG_PKG_URL                 = $(BUG_URL)
+XORG_PKG_LICENSE             = custom
+XORG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-pkg-description
+XORG_PKG_DESCRIPTION_FILE_IN = $(XORG_PKG_NAME)-pkg-description.in
+XORG_PKG_INSTALL_SCRIPT      = $(XORG_PKG_NAME)-pkg-install.sh
+
+XORG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(XORG_PKG_NAME)-package
+
+pkg_basename     = $(XORG_PKG_NAME)-$(XORG_PKG_VERSION)-$(XORG_PKG_ARCH)-$(XORG_PKG_DISTRO_NAME)-$(XORG_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(XORG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_sw