From 48b82779acbe28349d2111a86ac2dde95adb59fd Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 7 Mar 2010 23:09:24 +0100 Subject: Packages: X Windowing system: Massive X windowing system packages introduction Signed-off-by: Abdoulaye Walsimou Gaye --- packages/x11/bigreqsproto/bigreqsproto.kconfig | 43 +++++ packages/x11/bigreqsproto/bigreqsproto.mk | 94 ++++++++++ packages/x11/compositeproto/compositeproto.kconfig | 43 +++++ packages/x11/compositeproto/compositeproto.mk | 91 ++++++++++ packages/x11/damageproto/damageproto.kconfig | 43 +++++ packages/x11/damageproto/damageproto.mk | 94 ++++++++++ packages/x11/fixesproto/fixesproto.kconfig | 42 +++++ packages/x11/fixesproto/fixesproto.mk | 100 +++++++++++ packages/x11/fontsproto/fontsproto.kconfig | 42 +++++ packages/x11/fontsproto/fontsproto.mk | 102 +++++++++++ packages/x11/inputproto/inputproto.kconfig | 42 +++++ packages/x11/inputproto/inputproto.mk | 101 +++++++++++ packages/x11/kbproto/kbproto.kconfig | 42 +++++ packages/x11/kbproto/kbproto.mk | 92 ++++++++++ packages/x11/libfontenc/libfontenc.kconfig | 42 +++++ packages/x11/libfontenc/libfontenc.mk | 90 ++++++++++ .../x11/libpthreadstubs/libpthreadstubs.kconfig | 42 +++++ packages/x11/libpthreadstubs/libpthreadstubs.mk | 90 ++++++++++ packages/x11/libx11/libx11.kconfig | 49 ++++++ packages/x11/libx11/libx11.mk | 104 +++++++++++ packages/x11/libxau/libxau.kconfig | 43 +++++ packages/x11/libxau/libxau.mk | 92 ++++++++++ packages/x11/libxcb/libxcb.kconfig | 45 +++++ packages/x11/libxcb/libxcb.mk | 102 +++++++++++ packages/x11/libxext/libxext.kconfig | 43 +++++ packages/x11/libxext/libxext.mk | 101 +++++++++++ packages/x11/libxfont/libxfont.kconfig | 44 +++++ packages/x11/libxfont/libxfont.mk | 97 +++++++++++ packages/x11/libxkbfile/libxkbfile.kconfig | 44 +++++ packages/x11/libxkbfile/libxkbfile.mk | 95 ++++++++++ packages/x11/libxrender/libxrender.kconfig | 43 +++++ packages/x11/libxrender/libxrender.mk | 93 ++++++++++ packages/x11/randrproto/randrproto.kconfig | 42 +++++ packages/x11/randrproto/randrproto.mk | 100 +++++++++++ packages/x11/renderproto/renderproto.kconfig | 42 +++++ packages/x11/renderproto/renderproto.mk | 100 +++++++++++ packages/x11/resourceproto/resourceproto.kconfig | 42 +++++ packages/x11/resourceproto/resourceproto.mk | 94 ++++++++++ packages/x11/utilmacros/utilmacros.kconfig | 42 +++++ packages/x11/utilmacros/utilmacros.mk | 101 +++++++++++ packages/x11/videoproto/videoproto.kconfig | 42 +++++ packages/x11/videoproto/videoproto.mk | 96 ++++++++++ packages/x11/x11.kconfig | 71 ++++++++ packages/x11/x11.mk | 193 +++++++++++++++++++++ packages/x11/xcbdemo/xcbdemo.kconfig | 43 +++++ packages/x11/xcbdemo/xcbdemo.mk | 100 +++++++++++ packages/x11/xcbproto/xcbproto.kconfig | 42 +++++ packages/x11/xcbproto/xcbproto.mk | 100 +++++++++++ packages/x11/xcbutil/xcbutil.kconfig | 43 +++++ packages/x11/xcbutil/xcbutil.mk | 114 ++++++++++++ packages/x11/xcmiscproto/xcmiscproto.kconfig | 42 +++++ packages/x11/xcmiscproto/xcmiscproto.mk | 100 +++++++++++ packages/x11/xextproto/xextproto.kconfig | 42 +++++ packages/x11/xextproto/xextproto.mk | 108 ++++++++++++ packages/x11/xkbcomp/xkbcomp.kconfig | 42 +++++ packages/x11/xkbcomp/xkbcomp.mk | 90 ++++++++++ .../x11/xkeyboardconfig/xkeyboardconfig.kconfig | 42 +++++ packages/x11/xkeyboardconfig/xkeyboardconfig.mk | 90 ++++++++++ packages/x11/xproto/xproto.kconfig | 42 +++++ packages/x11/xproto/xproto.mk | 103 +++++++++++ packages/x11/xserver/xserver.kconfig | 63 +++++++ packages/x11/xserver/xserver.mk | 110 ++++++++++++ packages/x11/xtrans/xtrans.kconfig | 42 +++++ packages/x11/xtrans/xtrans.mk | 101 +++++++++++ 64 files changed, 4654 insertions(+) create mode 100644 packages/x11/bigreqsproto/bigreqsproto.kconfig create mode 100644 packages/x11/bigreqsproto/bigreqsproto.mk create mode 100644 packages/x11/compositeproto/compositeproto.kconfig create mode 100644 packages/x11/compositeproto/compositeproto.mk create mode 100644 packages/x11/damageproto/damageproto.kconfig create mode 100644 packages/x11/damageproto/damageproto.mk create mode 100644 packages/x11/fixesproto/fixesproto.kconfig create mode 100644 packages/x11/fixesproto/fixesproto.mk create mode 100644 packages/x11/fontsproto/fontsproto.kconfig create mode 100644 packages/x11/fontsproto/fontsproto.mk create mode 100644 packages/x11/inputproto/inputproto.kconfig create mode 100644 packages/x11/inputproto/inputproto.mk create mode 100644 packages/x11/kbproto/kbproto.kconfig create mode 100644 packages/x11/kbproto/kbproto.mk create mode 100644 packages/x11/libfontenc/libfontenc.kconfig create mode 100644 packages/x11/libfontenc/libfontenc.mk create mode 100644 packages/x11/libpthreadstubs/libpthreadstubs.kconfig create mode 100644 packages/x11/libpthreadstubs/libpthreadstubs.mk create mode 100644 packages/x11/libx11/libx11.kconfig create mode 100644 packages/x11/libx11/libx11.mk create mode 100644 packages/x11/libxau/libxau.kconfig create mode 100644 packages/x11/libxau/libxau.mk create mode 100644 packages/x11/libxcb/libxcb.kconfig create mode 100644 packages/x11/libxcb/libxcb.mk create mode 100644 packages/x11/libxext/libxext.kconfig create mode 100644 packages/x11/libxext/libxext.mk create mode 100644 packages/x11/libxfont/libxfont.kconfig create mode 100644 packages/x11/libxfont/libxfont.mk create mode 100644 packages/x11/libxkbfile/libxkbfile.kconfig create mode 100644 packages/x11/libxkbfile/libxkbfile.mk create mode 100644 packages/x11/libxrender/libxrender.kconfig create mode 100644 packages/x11/libxrender/libxrender.mk create mode 100644 packages/x11/randrproto/randrproto.kconfig create mode 100644 packages/x11/randrproto/randrproto.mk create mode 100644 packages/x11/renderproto/renderproto.kconfig create mode 100644 packages/x11/renderproto/renderproto.mk create mode 100644 packages/x11/resourceproto/resourceproto.kconfig create mode 100644 packages/x11/resourceproto/resourceproto.mk create mode 100644 packages/x11/utilmacros/utilmacros.kconfig create mode 100644 packages/x11/utilmacros/utilmacros.mk create mode 100644 packages/x11/videoproto/videoproto.kconfig create mode 100644 packages/x11/videoproto/videoproto.mk create mode 100644 packages/x11/x11.kconfig create mode 100644 packages/x11/x11.mk create mode 100644 packages/x11/xcbdemo/xcbdemo.kconfig create mode 100644 packages/x11/xcbdemo/xcbdemo.mk create mode 100644 packages/x11/xcbproto/xcbproto.kconfig create mode 100644 packages/x11/xcbproto/xcbproto.mk create mode 100644 packages/x11/xcbutil/xcbutil.kconfig create mode 100644 packages/x11/xcbutil/xcbutil.mk create mode 100644 packages/x11/xcmiscproto/xcmiscproto.kconfig create mode 100644 packages/x11/xcmiscproto/xcmiscproto.mk create mode 100644 packages/x11/xextproto/xextproto.kconfig create mode 100644 packages/x11/xextproto/xextproto.mk create mode 100644 packages/x11/xkbcomp/xkbcomp.kconfig create mode 100644 packages/x11/xkbcomp/xkbcomp.mk create mode 100644 packages/x11/xkeyboardconfig/xkeyboardconfig.kconfig create mode 100644 packages/x11/xkeyboardconfig/xkeyboardconfig.mk create mode 100644 packages/x11/xproto/xproto.kconfig create mode 100644 packages/x11/xproto/xproto.mk create mode 100644 packages/x11/xserver/xserver.kconfig create mode 100644 packages/x11/xserver/xserver.mk create mode 100644 packages/x11/xtrans/xtrans.kconfig create mode 100644 packages/x11/xtrans/xtrans.mk (limited to 'packages') diff --git a/packages/x11/bigreqsproto/bigreqsproto.kconfig b/packages/x11/bigreqsproto/bigreqsproto.kconfig new file mode 100644 index 0000000..06bc824 --- /dev/null +++ b/packages/x11/bigreqsproto/bigreqsproto.kconfig @@ -0,0 +1,43 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file bigreqsproto.kconfig +# \brief bigreqsproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +config EMBTK_HAVE_BIGREQSPROTO + bool "Have bigreqsproto" + help + bigreqsproto for X windowing system +choice + prompt "bigreqsproto version you wish" + depends on EMBTK_HAVE_BIGREQSPROTO + help + Here you can choose which version of bigreqsproto you want to + use. + + config EMBTK_BIGREQSPROTO_VERSION_1_1_0 + bool "bigreqsproto-1.1.0" +endchoice + +config EMBTK_BIGREQSPROTO_VERSION_STRING + string + default "1.1.0" if EMBTK_BIGREQSPROTO_VERSION_1_1_0 + diff --git a/packages/x11/bigreqsproto/bigreqsproto.mk b/packages/x11/bigreqsproto/bigreqsproto.mk new file mode 100644 index 0000000..45c9e16 --- /dev/null +++ b/packages/x11/bigreqsproto/bigreqsproto.mk @@ -0,0 +1,94 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file bigreqsproto.mk +# \brief bigreqsproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +BIGREQSPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_BIGREQSPROTO_VERSION_STRING))) +BIGREQSPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +BIGREQSPROTO_PACKAGE := bigreqsproto-$(BIGREQSPROTO_VERSION).tar.bz2 +BIGREQSPROTO_BUILD_DIR := $(PACKAGES_BUILD)/bigreqsproto-$(BIGREQSPROTO_VERSION) + +BIGREQSPROTO_BINS = +BIGREQSPROTO_SBINS = +BIGREQSPROTO_INCLUDES = X11/extensions/bigreqsproto.h X11/extensions/bigreqstr.h +BIGREQSPROTO_LIBS = +BIGREQSPROTO_PKGCONFIGS = bigreqsproto.pc + +bigreqsproto_install: $(BIGREQSPROTO_BUILD_DIR)/.installed + +$(BIGREQSPROTO_BUILD_DIR)/.installed: download_bigreqsproto \ + $(BIGREQSPROTO_BUILD_DIR)/.decompressed $(BIGREQSPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + bigreqsproto-$(BIGREQSPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(BIGREQSPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(BIGREQSPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_bigreqsproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(BIGREQSPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(BIGREQSPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(BIGREQSPROTO_PACKAGE) \ + $(BIGREQSPROTO_SITE)/$(BIGREQSPROTO_PACKAGE) + +$(BIGREQSPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(BIGREQSPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(BIGREQSPROTO_PACKAGE) + @touch $@ + +$(BIGREQSPROTO_BUILD_DIR)/.configured: + $(Q)cd $(BIGREQSPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +bigreqsproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup bigreqsproto-$(BIGREQSPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(BIGREQSPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(BIGREQSPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(BIGREQSPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(BIGREQSPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(BIGREQSPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(BIGREQSPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(BIGREQSPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/compositeproto/compositeproto.kconfig b/packages/x11/compositeproto/compositeproto.kconfig new file mode 100644 index 0000000..5a2e820 --- /dev/null +++ b/packages/x11/compositeproto/compositeproto.kconfig @@ -0,0 +1,43 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file compositeproto.kconfig +# \brief compositeproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_COMPOSITEPROTO + bool "Have compositeproto" + help + compositeproto for X windowing system +choice + prompt "compositeproto version you wish" + depends on EMBTK_HAVE_COMPOSITEPROTO + help + Here you can choose which version of compositeproto you want to + use. + + config EMBTK_COMPOSITEPROTO_VERSION_0_4_1 + bool "compositeproto-0.4.1" +endchoice + +config EMBTK_COMPOSITEPROTO_VERSION_STRING + string + default "0.4.1" if EMBTK_COMPOSITEPROTO_VERSION_0_4_1 + diff --git a/packages/x11/compositeproto/compositeproto.mk b/packages/x11/compositeproto/compositeproto.mk new file mode 100644 index 0000000..b3f6abd --- /dev/null +++ b/packages/x11/compositeproto/compositeproto.mk @@ -0,0 +1,91 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file compositeproto.mk +# \brief compositeproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +COMPOSITEPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_COMPOSITEPROTO_VERSION_STRING))) +COMPOSITEPROTO_SITE := http://ftp.x.org/pub/individual/proto +COMPOSITEPROTO_PACKAGE := compositeproto-$(COMPOSITEPROTO_VERSION).tar.bz2 +COMPOSITEPROTO_BUILD_DIR := $(PACKAGES_BUILD)/compositeproto-$(COMPOSITEPROTO_VERSION) + +COMPOSITEPROTO_BINS = +COMPOSITEPROTO_SBINS = +COMPOSITEPROTO_INCLUDES = X11/extensions/compositeproto.h \ + X11/extensions/composite.h +COMPOSITEPROTO_LIBS = +COMPOSITEPROTO_PKGCONFIGS = compositeproto.pc + +compositeproto_install: $(COMPOSITEPROTO_BUILD_DIR)/.installed + +$(COMPOSITEPROTO_BUILD_DIR)/.installed: download_compositeproto \ + $(COMPOSITEPROTO_BUILD_DIR)/.decompressed $(COMPOSITEPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + compositeproto-$(COMPOSITEPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(COMPOSITEPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(COMPOSITEPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_compositeproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(COMPOSITEPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(COMPOSITEPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(COMPOSITEPROTO_PACKAGE) \ + $(COMPOSITEPROTO_SITE)/$(COMPOSITEPROTO_PACKAGE) + +$(COMPOSITEPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(COMPOSITEPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(COMPOSITEPROTO_PACKAGE) + @touch $@ + +$(COMPOSITEPROTO_BUILD_DIR)/.configured: + $(Q)cd $(COMPOSITEPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ + --prefix=/usr + @touch $@ + +compositeproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup compositeproto-$(COMPOSITEPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(COMPOSITEPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(COMPOSITEPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(COMPOSITEPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(COMPOSITEPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(COMPOSITEPROTO_PKGCONFIGS) + diff --git a/packages/x11/damageproto/damageproto.kconfig b/packages/x11/damageproto/damageproto.kconfig new file mode 100644 index 0000000..2f3194e --- /dev/null +++ b/packages/x11/damageproto/damageproto.kconfig @@ -0,0 +1,43 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file damageproto.kconfig +# \brief damageproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +config EMBTK_HAVE_DAMAGEPROTO + bool "Have damageproto" + help + damageproto for X windowing system +choice + prompt "damageproto version you wish" + depends on EMBTK_HAVE_DAMAGEPROTO + help + Here you can choose which version of damageproto you want to + use. + + config EMBTK_DAMAGEPROTO_VERSION_1_2_0 + bool "damageproto-1.2.0" +endchoice + +config EMBTK_DAMAGEPROTO_VERSION_STRING + string + default "1.2.0" if EMBTK_DAMAGEPROTO_VERSION_1_2_0 + diff --git a/packages/x11/damageproto/damageproto.mk b/packages/x11/damageproto/damageproto.mk new file mode 100644 index 0000000..0359a98 --- /dev/null +++ b/packages/x11/damageproto/damageproto.mk @@ -0,0 +1,94 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file damageproto.mk +# \brief damageproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date December 2009 +################################################################################ + +DAMAGEPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_DAMAGEPROTO_VERSION_STRING))) +DAMAGEPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +DAMAGEPROTO_PACKAGE := damageproto-$(DAMAGEPROTO_VERSION).tar.bz2 +DAMAGEPROTO_BUILD_DIR := $(PACKAGES_BUILD)/damageproto-$(DAMAGEPROTO_VERSION) + +DAMAGEPROTO_BINS = +DAMAGEPROTO_SBINS = +DAMAGEPROTO_INCLUDES = X11/extnsions/damageproto.h damagewire.h +DAMAGEPROTO_LIBS = +DAMAGEPROTO_PKGCONFIGS = damageproto.pc + +damageproto_install: $(DAMAGEPROTO_BUILD_DIR)/.installed + +$(DAMAGEPROTO_BUILD_DIR)/.installed: download_damageproto \ + $(DAMAGEPROTO_BUILD_DIR)/.decompressed $(DAMAGEPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + damageproto-$(DAMAGEPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(DAMAGEPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(DAMAGEPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_damageproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(DAMAGEPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(DAMAGEPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(DAMAGEPROTO_PACKAGE) \ + $(DAMAGEPROTO_SITE)/$(DAMAGEPROTO_PACKAGE) + +$(DAMAGEPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(DAMAGEPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(DAMAGEPROTO_PACKAGE) + @touch $@ + +$(DAMAGEPROTO_BUILD_DIR)/.configured: + $(Q)cd $(DAMAGEPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +damageproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup damageproto-$(DAMAGEPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(DAMAGEPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(DAMAGEPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(DAMAGEPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(DAMAGEPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(DAMAGEPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(DAMAGEPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(DAMAGEPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/fixesproto/fixesproto.kconfig b/packages/x11/fixesproto/fixesproto.kconfig new file mode 100644 index 0000000..9a11b7b --- /dev/null +++ b/packages/x11/fixesproto/fixesproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file fixesproto.kconfig +# \brief fixesproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +config EMBTK_HAVE_FIXESPROTO + bool "Have fixesproto" + help + fixesproto for X windowing system +choice + prompt "fixesproto version you wish" + depends on EMBTK_HAVE_FIXESPROTO + help + Here you can choose which version of fixesproto you want to use. + + config EMBTK_FIXESPROTO_VERSION_4_1 + bool "fixesproto-4.1" +endchoice + +config EMBTK_FIXESPROTO_VERSION_STRING + string + default "4.1" if EMBTK_FIXESPROTO_VERSION_4_1 + diff --git a/packages/x11/fixesproto/fixesproto.mk b/packages/x11/fixesproto/fixesproto.mk new file mode 100644 index 0000000..2a961bf --- /dev/null +++ b/packages/x11/fixesproto/fixesproto.mk @@ -0,0 +1,100 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file fixesproto.mk +# \brief fixesproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +FIXESPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_FIXESPROTO_VERSION_STRING))) +FIXESPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +FIXESPROTO_PACKAGE := fixesproto-$(FIXESPROTO_VERSION).tar.bz2 +FIXESPROTO_BUILD_DIR := $(PACKAGES_BUILD)/fixesproto-$(FIXESPROTO_VERSION) + +FIXESPROTO_BINS = +FIXESPROTO_SBINS = +FIXESPROTO_INCLUDES = X11/extensions/xfixesproto.h X11/extensions/xfixeswire.h +FIXESPROTO_LIBS = +FIXESPROTO_PKGCONFIGS = fixesproto.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +fixesproto_install: $(FIXESPROTO_BUILD_DIR)/.installed + +$(FIXESPROTO_BUILD_DIR)/.installed: download_fixesproto \ + $(FIXESPROTO_BUILD_DIR)/.decompressed $(FIXESPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + fixesproto-$(FIXESPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(FIXESPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(FIXESPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_fixesproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(FIXESPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(FIXESPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(FIXESPROTO_PACKAGE) \ + $(FIXESPROTO_SITE)/$(FIXESPROTO_PACKAGE) + +$(FIXESPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(FIXESPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(FIXESPROTO_PACKAGE) + @touch $@ + +$(FIXESPROTO_BUILD_DIR)/.configured: + $(Q)cd $(FIXESPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +fixesproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup fixesproto-$(FIXESPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(FIXESPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(FIXESPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(FIXESPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(FIXESPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(FIXESPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(FIXESPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(FIXESPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/fontsproto/fontsproto.kconfig b/packages/x11/fontsproto/fontsproto.kconfig new file mode 100644 index 0000000..109bc26 --- /dev/null +++ b/packages/x11/fontsproto/fontsproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file fontsproto.kconfig +# \brief fontsproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +config EMBTK_HAVE_FONTSPROTO + bool "Have fontsproto" + help + fontsproto for X windowing system +choice + prompt "fontsproto version you wish" + depends on EMBTK_HAVE_FONTSPROTO + help + Here you can choose which version of fontsproto you want to use. + + config EMBTK_FONTSPROTO_VERSION_2_1_0 + bool "fontsproto-2.1.0" +endchoice + +config EMBTK_FONTSPROTO_VERSION_STRING + string + default "2.1.0" if EMBTK_FONTSPROTO_VERSION_2_1_0 + diff --git a/packages/x11/fontsproto/fontsproto.mk b/packages/x11/fontsproto/fontsproto.mk new file mode 100644 index 0000000..8c2c182 --- /dev/null +++ b/packages/x11/fontsproto/fontsproto.mk @@ -0,0 +1,102 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file fontsproto.mk +# \brief fontsproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +FONTSPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_FONTSPROTO_VERSION_STRING))) +FONTSPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +FONTSPROTO_PACKAGE := fontsproto-$(FONTSPROTO_VERSION).tar.bz2 +FONTSPROTO_BUILD_DIR := $(PACKAGES_BUILD)/fontsproto-$(FONTSPROTO_VERSION) + +FONTSPROTO_BINS = +FONTSPROTO_SBINS = +FONTSPROTO_INCLUDES = X11/fonts/font.h X11/fonts/fontproto.h \ + X11/fonts/fontstruct.h X11/fonts/FS.h X11/fonts/fsmasks.h \ + X11/fonts/FSproto.h +FONTSPROTO_LIBS = +FONTSPROTO_PKGCONFIGS = fontsproto.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +fontsproto_install: $(FONTSPROTO_BUILD_DIR)/.installed + +$(FONTSPROTO_BUILD_DIR)/.installed: download_fontsproto \ + $(FONTSPROTO_BUILD_DIR)/.decompressed $(FONTSPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + fontsproto-$(FONTSPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(FONTSPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(FONTSPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_fontsproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(FONTSPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(FONTSPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(FONTSPROTO_PACKAGE) \ + $(FONTSPROTO_SITE)/$(FONTSPROTO_PACKAGE) + +$(FONTSPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(FONTSPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(FONTSPROTO_PACKAGE) + @touch $@ + +$(FONTSPROTO_BUILD_DIR)/.configured: + $(Q)cd $(FONTSPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +fontsproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup fontsproto-$(FONTSPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(FONTSPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(FONTSPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(FONTSPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(FONTSPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(FONTSPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(FONTSPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(FONTSPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/inputproto/inputproto.kconfig b/packages/x11/inputproto/inputproto.kconfig new file mode 100644 index 0000000..304ae56 --- /dev/null +++ b/packages/x11/inputproto/inputproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file inputproto.kconfig +# \brief inputproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +config EMBTK_HAVE_INPUTPROTO + bool "Have inputproto" + help + inputproto for X windowing system +choice + prompt "inputproto version you wish" + depends on EMBTK_HAVE_INPUTPROTO + help + Here you can choose which version of inputproto you want to use. + + config EMBTK_INPUTPROTO_VERSION_2_0 + bool "inputproto-2.0" +endchoice + +config EMBTK_INPUTPROTO_VERSION_STRING + string + default "2.0" if EMBTK_INPUTPROTO_VERSION_2_0 + diff --git a/packages/x11/inputproto/inputproto.mk b/packages/x11/inputproto/inputproto.mk new file mode 100644 index 0000000..6f5fc22 --- /dev/null +++ b/packages/x11/inputproto/inputproto.mk @@ -0,0 +1,101 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file inputproto.mk +# \brief inputproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date December 2009 +################################################################################ + +INPUTPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_INPUTPROTO_VERSION_STRING))) +INPUTPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +INPUTPROTO_PACKAGE := inputproto-$(INPUTPROTO_VERSION).tar.bz2 +INPUTPROTO_BUILD_DIR := $(PACKAGES_BUILD)/inputproto-$(INPUTPROTO_VERSION) + +INPUTPROTO_BINS = +INPUTPROTO_SBINS = +INPUTPROTO_INCLUDES = X11/extensions/XI2.h X11/extensions/XI2proto.h \ + X11/extensions/XI.h X11/extensions/XIproto.h +INPUTPROTO_LIBS = +INPUTPROTO_PKGCONFIGS = inputproto.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +inputproto_install: $(INPUTPROTO_BUILD_DIR)/.installed + +$(INPUTPROTO_BUILD_DIR)/.installed: download_inputproto \ + $(INPUTPROTO_BUILD_DIR)/.decompressed $(INPUTPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + inputproto-$(INPUTPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(INPUTPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(INPUTPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_inputproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(INPUTPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(INPUTPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(INPUTPROTO_PACKAGE) \ + $(INPUTPROTO_SITE)/$(INPUTPROTO_PACKAGE) + +$(INPUTPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(INPUTPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(INPUTPROTO_PACKAGE) + @touch $@ + +$(INPUTPROTO_BUILD_DIR)/.configured: + $(Q)cd $(INPUTPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +inputproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup inputproto-$(INPUTPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(INPUTPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(INPUTPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(INPUTPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(INPUTPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(INPUTPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(INPUTPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(INPUTPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/kbproto/kbproto.kconfig b/packages/x11/kbproto/kbproto.kconfig new file mode 100644 index 0000000..efe5da7 --- /dev/null +++ b/packages/x11/kbproto/kbproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file kbproto.kconfig +# \brief kbproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +config EMBTK_HAVE_KBPROTO + bool "Have kbproto" + help + kbproto for X windowing system +choice + prompt "kbproto version you wish" + depends on EMBTK_HAVE_KBPROTO + help + Here you can choose which version of kbproto you want to use. + + config EMBTK_KBPROTO_VERSION_1_0_4 + bool "kbproto-1.0.4" +endchoice + +config EMBTK_KBPROTO_VERSION_STRING + string + default "1.0.4" if EMBTK_KBPROTO_VERSION_1_0_4 + diff --git a/packages/x11/kbproto/kbproto.mk b/packages/x11/kbproto/kbproto.mk new file mode 100644 index 0000000..c6ad53c --- /dev/null +++ b/packages/x11/kbproto/kbproto.mk @@ -0,0 +1,92 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file kbproto.mk +# \brief kbproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +KBPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_KBPROTO_VERSION_STRING))) +KBPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +KBPROTO_PACKAGE := kbproto-$(KBPROTO_VERSION).tar.bz2 +KBPROTO_BUILD_DIR := $(PACKAGES_BUILD)/kbproto-$(KBPROTO_VERSION) + +KBPROTO_BINS = +KBPROTO_SBINS = +KBPROTO_INCLUDES = X11/extensions/XKBgeom.h X11/extensions/XKB.h \ + X11/extensions/XKBproto.h X11/extensions/XKBsrv.h \ + X11/extensions/XKBstr.h +KBPROTO_LIBS = +KBPROTO_PKGCONFIGS = kbproto.pc + +kbproto_install: $(KBPROTO_BUILD_DIR)/.installed + +$(KBPROTO_BUILD_DIR)/.installed: download_kbproto \ + $(KBPROTO_BUILD_DIR)/.decompressed $(KBPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + kbproto-$(KBPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(KBPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(KBPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_kbproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(KBPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(KBPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(KBPROTO_PACKAGE) \ + $(KBPROTO_SITE)/$(KBPROTO_PACKAGE) + +$(KBPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(KBPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(KBPROTO_PACKAGE) + @touch $@ + +$(KBPROTO_BUILD_DIR)/.configured: + $(Q)cd $(KBPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +kbproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup kbproto-$(KBPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(KBPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(KBPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(KBPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(KBPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(KBPROTO_PKGCONFIGS) + diff --git a/packages/x11/libfontenc/libfontenc.kconfig b/packages/x11/libfontenc/libfontenc.kconfig new file mode 100644 index 0000000..ef399e2 --- /dev/null +++ b/packages/x11/libfontenc/libfontenc.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libfontenc.kconfig +# \brief libfontenc.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_LIBFONTENC + bool "Have libfontenc" + help + libfontenc for X windowing system +choice + prompt "libfontenc version you wish" + depends on EMBTK_HAVE_LIBFONTENC + help + Here you can choose which version of libfontenc you want to use. + + config EMBTK_LIBFONTENC_VERSION_1_0_5 + bool "libfontenc-1.0.5" +endchoice + +config EMBTK_LIBFONTENC_VERSION_STRING + string + default "1.0.5" if EMBTK_LIBFONTENC_VERSION_1_0_5 + diff --git a/packages/x11/libfontenc/libfontenc.mk b/packages/x11/libfontenc/libfontenc.mk new file mode 100644 index 0000000..d676328 --- /dev/null +++ b/packages/x11/libfontenc/libfontenc.mk @@ -0,0 +1,90 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libfontenc.mk +# \brief libfontenc.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +LIBFONTENC_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBFONTENC_VERSION_STRING))) +LIBFONTENC_SITE := http://xorg.freedesktop.org/archive/individual/lib +LIBFONTENC_PACKAGE := libfontenc-$(LIBFONTENC_VERSION).tar.bz2 +LIBFONTENC_BUILD_DIR := $(PACKAGES_BUILD)/libfontenc-$(LIBFONTENC_VERSION) + +LIBFONTENC_BINS = +LIBFONTENC_SBINS = +LIBFONTENC_INCLUDES = X11/fonts/fontenc.h +LIBFONTENC_LIBS = libfontenc.* +LIBFONTENC_PKGCONFIGS = libfontenc.pc + +libfontenc_install: $(LIBFONTENC_BUILD_DIR)/.installed + +$(LIBFONTENC_BUILD_DIR)/.installed: download_libfontenc \ + $(LIBFONTENC_BUILD_DIR)/.decompressed $(LIBFONTENC_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libfontenc-$(LIBFONTENC_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(LIBFONTENC_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBFONTENC_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libfontenc: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBFONTENC_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBFONTENC_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBFONTENC_PACKAGE) \ + $(LIBFONTENC_SITE)/$(LIBFONTENC_PACKAGE) + +$(LIBFONTENC_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBFONTENC_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(LIBFONTENC_PACKAGE) + @touch $@ + +$(LIBFONTENC_BUILD_DIR)/.configured: + $(Q)cd $(LIBFONTENC_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +libfontenc_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libfontenc-$(LIBFONTENC_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBFONTENC_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBFONTENC_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBFONTENC_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBFONTENC_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBFONTENC_PKGCONFIGS) + diff --git a/packages/x11/libpthreadstubs/libpthreadstubs.kconfig b/packages/x11/libpthreadstubs/libpthreadstubs.kconfig new file mode 100644 index 0000000..ec3931f --- /dev/null +++ b/packages/x11/libpthreadstubs/libpthreadstubs.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libpthreadstubs.kconfig +# \brief libpthreadstubs.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_LIBPTHREADSTUBS + bool "Have libpthreadstubs" + help + libpthreadstubs for X windowing system +choice + prompt "libpthreadstubs version you wish" + depends on EMBTK_HAVE_LIBPTHREADSTUBS + help + Here you can choose which version of libpthreadstubs you want to use. + + config EMBTK_LIBPTHREADSTUBS_VERSION_0_3 + bool "libpthreadstubs-0.3" +endchoice + +config EMBTK_LIBPTHREADSTUBS_VERSION_STRING + string + default "0.3" if EMBTK_LIBPTHREADSTUBS_VERSION_0_3 + diff --git a/packages/x11/libpthreadstubs/libpthreadstubs.mk b/packages/x11/libpthreadstubs/libpthreadstubs.mk new file mode 100644 index 0000000..c47b958 --- /dev/null +++ b/packages/x11/libpthreadstubs/libpthreadstubs.mk @@ -0,0 +1,90 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libpthreadstubs.mk +# \brief libpthreadstubs.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +LIBPTHREADSTUBS_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBPTHREADSTUBS_VERSION_STRING))) +LIBPTHREADSTUBS_SITE := http://xcb.freedesktop.org/dist +LIBPTHREADSTUBS_PACKAGE := libpthread-stubs-$(LIBPTHREADSTUBS_VERSION).tar.bz2 +LIBPTHREADSTUBS_BUILD_DIR := $(PACKAGES_BUILD)/libpthread-stubs-$(LIBPTHREADSTUBS_VERSION) + +LIBPTHREADSTUBS_BINS = +LIBPTHREADSTUBS_SBINS = +LIBPTHREADSTUBS_INCLUDES = +LIBPTHREADSTUBS_LIBS = +LIBPTHREADSTUBS_PKGCONFIGS = pthread-stubs.pc + +libpthreadstubs_install: $(LIBPTHREADSTUBS_BUILD_DIR)/.installed + +$(LIBPTHREADSTUBS_BUILD_DIR)/.installed: download_libpthreadstubs \ + $(LIBPTHREADSTUBS_BUILD_DIR)/.decompressed $(LIBPTHREADSTUBS_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libpthreadstubs-$(LIBPTHREADSTUBS_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(LIBPTHREADSTUBS_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBPTHREADSTUBS_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libpthreadstubs: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBPTHREADSTUBS_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBPTHREADSTUBS_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBPTHREADSTUBS_PACKAGE) \ + $(LIBPTHREADSTUBS_SITE)/$(LIBPTHREADSTUBS_PACKAGE) + +$(LIBPTHREADSTUBS_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBPTHREADSTUBS_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(LIBPTHREADSTUBS_PACKAGE) + @touch $@ + +$(LIBPTHREADSTUBS_BUILD_DIR)/.configured: + $(Q)cd $(LIBPTHREADSTUBS_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +libpthreadstubs_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libpthreadstubs-$(LIBPTHREADSTUBS_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBPTHREADSTUBS_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBPTHREADSTUBS_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBPTHREADSTUBS_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBPTHREADSTUBS_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBPTHREADSTUBS_PKGCONFIGS) + diff --git a/packages/x11/libx11/libx11.kconfig b/packages/x11/libx11/libx11.kconfig new file mode 100644 index 0000000..8e50268 --- /dev/null +++ b/packages/x11/libx11/libx11.kconfig @@ -0,0 +1,49 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libx11.kconfig +# \brief libx11.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_LIBX11 + bool "Have libx11" + select EMBTK_HAVE_UTILMACROS + select EMBTK_HAVE_INPUTPROTO + select EMBTK_HAVE_KBPROTO + select EMBTK_HAVE_XEXTPROTO + select EMBTK_HAVE_XPROTO + select EMBTK_HAVE_LIBXCB + select EMBTK_HAVE_XTRANS + help + libx11 for X windowing system +choice + prompt "libx11 version you wish" + depends on EMBTK_HAVE_LIBX11 + help + Here you can choose which version of libx11 you want to use. + + config EMBTK_LIBX11_VERSION_1_3_3 + bool "libx11-1.3.3" +endchoice + +config EMBTK_LIBX11_VERSION_STRING + string + default "1.3.3" if EMBTK_LIBX11_VERSION_1_3_3 + diff --git a/packages/x11/libx11/libx11.mk b/packages/x11/libx11/libx11.mk new file mode 100644 index 0000000..8b6dda0 --- /dev/null +++ b/packages/x11/libx11/libx11.mk @@ -0,0 +1,104 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libx11.mk +# \brief libx11.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +LIBX11_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBX11_VERSION_STRING))) +LIBX11_SITE := http://xorg.freedesktop.org/archive/individual/lib +LIBX11_PACKAGE := libX11-$(LIBX11_VERSION).tar.bz2 +LIBX11_BUILD_DIR := $(PACKAGES_BUILD)/libX11-$(LIBX11_VERSION) + +LIBX11_BINS = +LIBX11_SBINS = +LIBX11_INCLUDES = X11/cursorfont.h X11/ImUtil.h X11/Xcms.h X11/XKBlib.h \ + X11/XlibConf.h X11/Xlib.h X11/Xlibint.h X11/Xlib-xcb.h \ + X11/Xlocale.h X11/Xregion.h X11/Xresource.h X11/Xutil.h +LIBX11_LIBS = libX11* X11/Xcms.txt +LIBX11_PKGCONFIGS = x11.pc x11-xcb.pc + +LIBX11_DEPS = utilmacros_install inputproto_install kbproto_install \ + xextproto_install xproto_install libxcb_install xtrans_install + +libx11_install: $(LIBX11_BUILD_DIR)/.installed + +$(LIBX11_BUILD_DIR)/.installed: $(LIBX11_DEPS) download_libx11 \ + $(LIBX11_BUILD_DIR)/.decompressed $(LIBX11_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libx11-$(LIBX11_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(LIBX11_BUILD_DIR)) + $(Q)$(MAKE) -C $(LIBX11_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBX11_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + $(Q)$(MAKE) $(LIBX11_BUILD_DIR)/.patchlibtool + @touch $@ + +download_libx11: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBX11_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBX11_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBX11_PACKAGE) \ + $(LIBX11_SITE)/$(LIBX11_PACKAGE) + +$(LIBX11_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBX11_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(LIBX11_PACKAGE) + @touch $@ + +$(LIBX11_BUILD_DIR)/.configured: + $(Q)cd $(LIBX11_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) --with-xcb + @touch $@ + +libx11_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libx11-$(LIBX11_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBX11_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBX11_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBX11_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBX11_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBX11_PKGCONFIGS) + +$(LIBX11_BUILD_DIR)/.patchlibtool: + @LIBX11_LT_FILES=`find $(SYSROOT)/usr/$(LIBDIR)/libX11-* -type f -name *.la`; \ + for i in $$LIBX11_LT_FILES; \ + do \ + sed \ + -i "s; /usr/$(LIBDIR)/libX11.la ; $(SYSROOT)/usr/$(LIBDIR)/libX11.la ;" $$i; \ + done diff --git a/packages/x11/libxau/libxau.kconfig b/packages/x11/libxau/libxau.kconfig new file mode 100644 index 0000000..7b283f3 --- /dev/null +++ b/packages/x11/libxau/libxau.kconfig @@ -0,0 +1,43 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxau.kconfig +# \brief libxau.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +config EMBTK_HAVE_LIBXAU + bool "Have libxau" + select EMBTK_HAVE_XPROTO + help + libxau for X windowing system +choice + prompt "libxau version you wish" + depends on EMBTK_HAVE_LIBXAU + help + Here you can choose which version of libxau you want to use. + + config EMBTK_LIBXAU_VERSION_1_0_5 + bool "libxau-1.0.5" +endchoice + +config EMBTK_LIBXAU_VERSION_STRING + string + default "1.0.5" if EMBTK_LIBXAU_VERSION_1_0_5 + diff --git a/packages/x11/libxau/libxau.mk b/packages/x11/libxau/libxau.mk new file mode 100644 index 0000000..4f09d46 --- /dev/null +++ b/packages/x11/libxau/libxau.mk @@ -0,0 +1,92 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxau.mk +# \brief libxau.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +LIBXAU_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBXAU_VERSION_STRING))) +LIBXAU_SITE := http://ftp.x.org/pub/individual/lib +LIBXAU_PACKAGE := libXau-$(LIBXAU_VERSION).tar.bz2 +LIBXAU_BUILD_DIR := $(PACKAGES_BUILD)/libXau-$(LIBXAU_VERSION) + +LIBXAU_BINS = +LIBXAU_SBINS = +LIBXAU_INCLUDES = X11/Xauth.h +LIBXAU_LIBS = libXau.* +LIBXAU_PKGCONFIGS = xau.pc + +LIBXAU_DEPS = xproto_install + +libxau_install: $(LIBXAU_BUILD_DIR)/.installed + +$(LIBXAU_BUILD_DIR)/.installed: $(LIBXAU_DEPS) download_libxau \ + $(LIBXAU_BUILD_DIR)/.decompressed $(LIBXAU_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libxau-$(LIBXAU_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(LIBXAU_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBXAU_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libxau: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBXAU_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBXAU_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBXAU_PACKAGE) \ + $(LIBXAU_SITE)/$(LIBXAU_PACKAGE) + +$(LIBXAU_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBXAU_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(LIBXAU_PACKAGE) + @touch $@ + +$(LIBXAU_BUILD_DIR)/.configured: + $(Q)cd $(LIBXAU_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +libxau_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libxau-$(LIBXAU_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBXAU_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBXAU_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBXAU_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBXAU_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBXAU_PKGCONFIGS) + diff --git a/packages/x11/libxcb/libxcb.kconfig b/packages/x11/libxcb/libxcb.kconfig new file mode 100644 index 0000000..2a5e57a --- /dev/null +++ b/packages/x11/libxcb/libxcb.kconfig @@ -0,0 +1,45 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxcb.kconfig +# \brief libxcb.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_LIBXCB + bool "Have libxcb" + select EMBTK_HAVE_LIBPTHREADSTUBS + select EMBTK_HAVE_LIBXAU + select EMBTK_HAVE_XCBPROTO + help + libxcb for X windowing system +choice + prompt "libxcb version you wish" + depends on EMBTK_HAVE_LIBXCB + help + Here you can choose which version of libxcb you want to use. + + config EMBTK_LIBXCB_VERSION_1_5 + bool "libxcb-1.5" +endchoice + +config EMBTK_LIBXCB_VERSION_STRING + string + default "1.5" if EMBTK_LIBXCB_VERSION_1_5 + diff --git a/packages/x11/libxcb/libxcb.mk b/packages/x11/libxcb/libxcb.mk new file mode 100644 index 0000000..196689e --- /dev/null +++ b/packages/x11/libxcb/libxcb.mk @@ -0,0 +1,102 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxcb.mk +# \brief libxcb.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +LIBXCB_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBXCB_VERSION_STRING))) +LIBXCB_SITE := http://xcb.freedesktop.org/dist +LIBXCB_PACKAGE := libxcb-$(LIBXCB_VERSION).tar.gz +LIBXCB_BUILD_DIR := $(PACKAGES_BUILD)/libxcb-$(LIBXCB_VERSION) + +LIBXCB_BINS = +LIBXCB_SBINS = +LIBXCB_INCLUDES = xcb +LIBXCB_LIBS = libxcb* +LIBXCB_PKGCONFIGS = xcb* + +LIBXCB_DEPS = xcbproto_install libpthreadstubs_install libxau_install + +libxcb_install: $(LIBXCB_BUILD_DIR)/.installed + +$(LIBXCB_BUILD_DIR)/.installed: $(LIBXCB_DEPS) download_libxcb \ + $(LIBXCB_BUILD_DIR)/.decompressed $(LIBXCB_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libxcb-$(LIBXCB_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(LIBXCB_BUILD_DIR)) + $(Q)$(MAKE) -C $(LIBXCB_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBXCB_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + $(Q)$(MAKE) $(LIBXCB_BUILD_DIR)/.patchlibtool + @touch $@ + +download_libxcb: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBXCB_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBXCB_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBXCB_PACKAGE) \ + $(LIBXCB_SITE)/$(LIBXCB_PACKAGE) + +$(LIBXCB_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBXCB_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xzf $(DOWNLOAD_DIR)/$(LIBXCB_PACKAGE) + @touch $@ + +$(LIBXCB_BUILD_DIR)/.configured: + $(Q)cd $(LIBXCB_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +libxcb_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libxcb-$(LIBXCB_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBXCB_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBXCB_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBXCB_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBXCB_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBXCB_PKGCONFIGS) + +$(LIBXCB_BUILD_DIR)/.patchlibtool: + @LIBXCB_LT_FILES=`find $(SYSROOT)/usr/$(LIBDIR)/libxcb-* -type f -name *.la`; \ + for i in $$LIBXCB_LT_FILES; \ + do \ + sed \ + -i "s; /usr/$(LIBDIR)/libxcb.la ; $(SYSROOT)/usr/$(LIBDIR)/libxcb.la ;" $$i; \ + done + diff --git a/packages/x11/libxext/libxext.kconfig b/packages/x11/libxext/libxext.kconfig new file mode 100644 index 0000000..9ed0229 --- /dev/null +++ b/packages/x11/libxext/libxext.kconfig @@ -0,0 +1,43 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxext.kconfig +# \brief libxext.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_LIBXEXT + bool "Have libXext" + select EMBTK_HAVE_LIBX11 + help + libXext for X windowing system +choice + prompt "libxext version you wish" + depends on EMBTK_HAVE_LIBXEXT + help + Here you can choose which version of libxext you want to use. + + config EMBTK_LIBXEXT_VERSION_1_1_1 + bool "libXext-1.1.1" +endchoice + +config EMBTK_LIBXEXT_VERSION_STRING + string + default "1.1.1" if EMBTK_LIBXEXT_VERSION_1_1_1 + diff --git a/packages/x11/libxext/libxext.mk b/packages/x11/libxext/libxext.mk new file mode 100644 index 0000000..4eca911 --- /dev/null +++ b/packages/x11/libxext/libxext.mk @@ -0,0 +1,101 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxext.mk +# \brief libxext.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +LIBXEXT_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBXEXT_VERSION_STRING))) +LIBXEXT_SITE := http://xorg.freedesktop.org/archive/individual/lib +LIBXEXT_PACKAGE := libXext-$(LIBXEXT_VERSION).tar.bz2 +LIBXEXT_BUILD_DIR := $(PACKAGES_BUILD)/libXext-$(LIBXEXT_VERSION) + +LIBXEXT_BINS = +LIBXEXT_SBINS = +LIBXEXT_INCLUDES = X11/extensions/dpms.h X11/extensions/lbxbuf.h \ + X11/extensions/lbximage.h X11/extensions/multibuf.h \ + X11/extensions/shape.h X11/extensions/Xag.h \ + X11/extensions/Xdbe.h X11/extensions/Xext.h \ + X11/extensions/XLbx.h X11/extensions/xtestext1.h \ + X11/extensions/extutil.h X11/extensions/lbxbufstr.h \ + X11/extensions/MITMisc.h X11/extensions/security.h \ + X11/extensions/sync.h X11/extensions/Xcup.h \ + X11/extensions/XEVI.h X11/extensions/Xge.h X11/extensions/XShm.h +LIBXEXT_LIBS = libXext.* +LIBXEXT_PKGCONFIGS = + +LIBXEXT_DEPS = libx11_install + +libxext_install: $(LIBXEXT_BUILD_DIR)/.installed + +$(LIBXEXT_BUILD_DIR)/.installed: $(LIBXEXT_DEPS) download_libxext \ + $(LIBXEXT_BUILD_DIR)/.decompressed $(LIBXEXT_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libxext-$(LIBXEXT_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(LIBXEXT_BUILD_DIR)) + $(Q)$(MAKE) -C $(LIBXEXT_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBXEXT_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libxext: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBXEXT_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBXEXT_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBXEXT_PACKAGE) \ + $(LIBXEXT_SITE)/$(LIBXEXT_PACKAGE) + +$(LIBXEXT_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBXEXT_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(LIBXEXT_PACKAGE) + @touch $@ + +$(LIBXEXT_BUILD_DIR)/.configured: + $(Q)cd $(LIBXEXT_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ + --prefix=/usr --enable-malloc0returnsnull + @touch $@ + +libxext_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libxext-$(LIBXEXT_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBXEXT_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBXEXT_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBXEXT_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBXEXT_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBXEXT_PKGCONFIGS) + diff --git a/packages/x11/libxfont/libxfont.kconfig b/packages/x11/libxfont/libxfont.kconfig new file mode 100644 index 0000000..4744e25 --- /dev/null +++ b/packages/x11/libxfont/libxfont.kconfig @@ -0,0 +1,44 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxfont.kconfig +# \brief libxfont.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_LIBXFONT + bool "Have libxfont" + select EMBTK_HAVE_LIBFONTENC + select EMBTK_HAVE_FREETYPE + help + libxfont for X windowing system +choice + prompt "libxfont version you wish" + depends on EMBTK_HAVE_LIBXFONT + help + Here you can choose which version of libxfont you want to use. + + config EMBTK_LIBXFONT_VERSION_1_4_1 + bool "libxfont-1.4.1" +endchoice + +config EMBTK_LIBXFONT_VERSION_STRING + string + default "1.4.1" if EMBTK_LIBXFONT_VERSION_1_4_1 + diff --git a/packages/x11/libxfont/libxfont.mk b/packages/x11/libxfont/libxfont.mk new file mode 100644 index 0000000..d98f992 --- /dev/null +++ b/packages/x11/libxfont/libxfont.mk @@ -0,0 +1,97 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxfont.mk +# \brief libxfont.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +LIBXFONT_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBXFONT_VERSION_STRING))) +LIBXFONT_SITE := http://xorg.freedesktop.org/archive/individual/lib +LIBXFONT_PACKAGE := libXfont-$(LIBXFONT_VERSION).tar.bz2 +LIBXFONT_BUILD_DIR := $(PACKAGES_BUILD)/libXfont-$(LIBXFONT_VERSION) + +LIBXFONT_BINS = +LIBXFONT_SBINS = +LIBXFONT_INCLUDES = X11/fonts/bdfint.h X11/fonts/bufio.h X11/fonts/fntfilio.h \ + X11/fonts/fontconf.h X11/fonts/fontmisc.h X11/fonts/fontutil.h \ + X11/fonts/ftfuncs.h X11/fonts/pcf.h X11/fonts/bitmap.h \ + X11/fonts/fntfil.h X11/fonts/fntfilst.h X11/fonts/fontencc.h \ + X11/fonts/fontshow.h X11/fonts/fontxlfd.h X11/fonts/ft.h +LIBXFONT_LIBS = libXfont.* +LIBXFONT_PKGCONFIGS = xfont.pc + +LIBXFONT_DEPS = libfontenc_install freetype_install + +libxfont_install: $(LIBXFONT_BUILD_DIR)/.installed + +$(LIBXFONT_BUILD_DIR)/.installed: $(LIBXFONT_DEPS) download_libxfont \ + $(LIBXFONT_BUILD_DIR)/.decompressed $(LIBXFONT_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libxfont-$(LIBXFONT_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(LIBXFONT_BUILD_DIR)) + $(Q)$(MAKE) -C $(LIBXFONT_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBXFONT_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libxfont: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBXFONT_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBXFONT_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBXFONT_PACKAGE) \ + $(LIBXFONT_SITE)/$(LIBXFONT_PACKAGE) + +$(LIBXFONT_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBXFONT_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(LIBXFONT_PACKAGE) + @touch $@ + +$(LIBXFONT_BUILD_DIR)/.configured: + $(Q)cd $(LIBXFONT_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +libxfont_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libxfont-$(LIBXFONT_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBXFONT_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBXFONT_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBXFONT_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBXFONT_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBXFONT_PKGCONFIGS) + diff --git a/packages/x11/libxkbfile/libxkbfile.kconfig b/packages/x11/libxkbfile/libxkbfile.kconfig new file mode 100644 index 0000000..9e19b5e --- /dev/null +++ b/packages/x11/libxkbfile/libxkbfile.kconfig @@ -0,0 +1,44 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxkbfile.kconfig +# \brief libxkbfile.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +config EMBTK_HAVE_LIBXKBFILE + bool "Have libxkbfile" + select EMBTK_HAVE_KBPROTO + select EMBTK_HAVE_LIBX11 + help + libxkbfile for X windowing system +choice + prompt "libxkbfile version you wish" + depends on EMBTK_HAVE_LIBXKBFILE + help + Here you can choose which version of libxkbfile you want to use. + + config EMBTK_LIBXKBFILE_VERSION_1_0_6 + bool "libxkbfile-1.0.6" +endchoice + +config EMBTK_LIBXKBFILE_VERSION_STRING + string + default "1.0.6" if EMBTK_LIBXKBFILE_VERSION_1_0_6 + diff --git a/packages/x11/libxkbfile/libxkbfile.mk b/packages/x11/libxkbfile/libxkbfile.mk new file mode 100644 index 0000000..83a5859 --- /dev/null +++ b/packages/x11/libxkbfile/libxkbfile.mk @@ -0,0 +1,95 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxkbfile.mk +# \brief libxkbfile.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +LIBXKBFILE_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBXKBFILE_VERSION_STRING))) +LIBXKBFILE_SITE := http://xorg.freedesktop.org/archive/individual/lib +LIBXKBFILE_PACKAGE := libxkbfile-$(LIBXKBFILE_VERSION).tar.bz2 +LIBXKBFILE_BUILD_DIR := $(PACKAGES_BUILD)/libxkbfile-$(LIBXKBFILE_VERSION) + +LIBXKBFILE_BINS = +LIBXKBFILE_SBINS = +LIBXKBFILE_INCLUDES = X11/extensions/XKBbells.h X11/extensions/XKBconfig.h \ + X11/extensions/XKBfile.h X11/extensions/XKBrules.h \ + X11/extensions/XKMformat.h X11/extensions/XKM.h +LIBXKBFILE_LIBS = libxkbfile.* +LIBXKBFILE_PKGCONFIGS = + +LIBXKBFILE_DEPS = kbproto_install libx11_install + +libxkbfile_install: $(LIBXKBFILE_BUILD_DIR)/.installed + +$(LIBXKBFILE_BUILD_DIR)/.installed: $(LIBXKBFILE_DEPS) download_libxkbfile \ + $(LIBXKBFILE_BUILD_DIR)/.decompressed $(LIBXKBFILE_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libxkbfile-$(LIBXKBFILE_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(LIBXKBFILE_BUILD_DIR)) + $(Q)$(MAKE) -C $(LIBXKBFILE_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBXKBFILE_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libxkbfile: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBXKBFILE_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBXKBFILE_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBXKBFILE_PACKAGE) \ + $(LIBXKBFILE_SITE)/$(LIBXKBFILE_PACKAGE) + +$(LIBXKBFILE_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBXKBFILE_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(LIBXKBFILE_PACKAGE) + @touch $@ + +$(LIBXKBFILE_BUILD_DIR)/.configured: + $(Q)cd $(LIBXKBFILE_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +libxkbfile_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libxkbfile-$(LIBXKBFILE_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBXKBFILE_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBXKBFILE_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBXKBFILE_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBXKBFILE_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBXKBFILE_PKGCONFIGS) + diff --git a/packages/x11/libxrender/libxrender.kconfig b/packages/x11/libxrender/libxrender.kconfig new file mode 100644 index 0000000..c58c2d3 --- /dev/null +++ b/packages/x11/libxrender/libxrender.kconfig @@ -0,0 +1,43 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxrender.kconfig +# \brief libxrender.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_LIBXRENDER + bool "Have libxrender" + select EMBTK_HAVE_LIBX11 + help + libXrender for X windowing system +choice + prompt "libxrender version you wish" + depends on EMBTK_HAVE_LIBXRENDER + help + Here you can choose which version of libxrender you want to use. + + config EMBTK_LIBXRENDER_VERSION_0_9_5 + bool "libXrender-0.9.5" +endchoice + +config EMBTK_LIBXRENDER_VERSION_STRING + string + default "0.9.5" if EMBTK_LIBXRENDER_VERSION_0_9_5 + diff --git a/packages/x11/libxrender/libxrender.mk b/packages/x11/libxrender/libxrender.mk new file mode 100644 index 0000000..b13582a --- /dev/null +++ b/packages/x11/libxrender/libxrender.mk @@ -0,0 +1,93 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file libxrender.mk +# \brief libxrender.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +LIBXRENDER_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBXRENDER_VERSION_STRING))) +LIBXRENDER_SITE := http://xorg.freedesktop.org/archive/individual/lib +LIBXRENDER_PACKAGE := libXrender-$(LIBXRENDER_VERSION).tar.bz2 +LIBXRENDER_BUILD_DIR := $(PACKAGES_BUILD)/libXrender-$(LIBXRENDER_VERSION) + +LIBXRENDER_BINS = +LIBXRENDER_SBINS = +LIBXRENDER_INCLUDES = X11/extensions/Xrender.h +LIBXRENDER_LIBS = libXrender.* +LIBXRENDER_PKGCONFIGS = xrender.pc + +LIBXRENDER_DEPS = libx11_install + +libxrender_install: $(LIBXRENDER_BUILD_DIR)/.installed + +$(LIBXRENDER_BUILD_DIR)/.installed: $(LIBXRENDER_DEPS) download_libxrender \ + $(LIBXRENDER_BUILD_DIR)/.decompressed $(LIBXRENDER_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libxrender-$(LIBXRENDER_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(LIBXRENDER_BUILD_DIR)) + $(Q)$(MAKE) -C $(LIBXRENDER_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBXRENDER_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libxrender: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBXRENDER_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBXRENDER_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBXRENDER_PACKAGE) \ + $(LIBXRENDER_SITE)/$(LIBXRENDER_PACKAGE) + +$(LIBXRENDER_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBXRENDER_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(LIBXRENDER_PACKAGE) + @touch $@ + +$(LIBXRENDER_BUILD_DIR)/.configured: + $(Q)cd $(LIBXRENDER_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ + --prefix=/usr --enable-malloc0returnsnull + @touch $@ + +libxrender_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libxrender-$(LIBXRENDER_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBXRENDER_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBXRENDER_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBXRENDER_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBXRENDER_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBXRENDER_PKGCONFIGS) + diff --git a/packages/x11/randrproto/randrproto.kconfig b/packages/x11/randrproto/randrproto.kconfig new file mode 100644 index 0000000..d2905f4 --- /dev/null +++ b/packages/x11/randrproto/randrproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file randrproto.kconfig +# \brief randrproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +config EMBTK_HAVE_RANDRPROTO + bool "Have randrproto" + help + randrproto for X windowing system +choice + prompt "randrproto version you wish" + depends on EMBTK_HAVE_RANDRPROTO + help + Here you can choose which version of randrproto you want to use. + + config EMBTK_RANDRPROTO_VERSION_1_3_1 + bool "randrproto-1.3.1" +endchoice + +config EMBTK_RANDRPROTO_VERSION_STRING + string + default "1.3.1" if EMBTK_RANDRPROTO_VERSION_1_3_1 + diff --git a/packages/x11/randrproto/randrproto.mk b/packages/x11/randrproto/randrproto.mk new file mode 100644 index 0000000..573fc63 --- /dev/null +++ b/packages/x11/randrproto/randrproto.mk @@ -0,0 +1,100 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file randrproto.mk +# \brief randrproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date February 2010 +################################################################################ + +RANDRPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_RANDRPROTO_VERSION_STRING))) +RANDRPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +RANDRPROTO_PACKAGE := randrproto-$(RANDRPROTO_VERSION).tar.bz2 +RANDRPROTO_BUILD_DIR := $(PACKAGES_BUILD)/randrproto-$(RANDRPROTO_VERSION) + +RANDRPROTO_BINS = +RANDRPROTO_SBINS = +RANDRPROTO_INCLUDES = X11/extensions/randr.h X11/extensions/randrproto.h +RANDRPROTO_LIBS = +RANDRPROTO_PKGCONFIGS = randrproto.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +randrproto_install: $(RANDRPROTO_BUILD_DIR)/.installed + +$(RANDRPROTO_BUILD_DIR)/.installed: download_randrproto \ + $(RANDRPROTO_BUILD_DIR)/.decompressed $(RANDRPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + randrproto-$(RANDRPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(RANDRPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(RANDRPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_randrproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(RANDRPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(RANDRPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(RANDRPROTO_PACKAGE) \ + $(RANDRPROTO_SITE)/$(RANDRPROTO_PACKAGE) + +$(RANDRPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(RANDRPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(RANDRPROTO_PACKAGE) + @touch $@ + +$(RANDRPROTO_BUILD_DIR)/.configured: + $(Q)cd $(RANDRPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +randrproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup randrproto-$(RANDRPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(RANDRPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(RANDRPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(RANDRPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(RANDRPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(RANDRPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(RANDRPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(RANDRPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/renderproto/renderproto.kconfig b/packages/x11/renderproto/renderproto.kconfig new file mode 100644 index 0000000..5784110 --- /dev/null +++ b/packages/x11/renderproto/renderproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file renderproto.kconfig +# \brief renderproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_RENDERPROTO + bool "Have renderproto" + help + renderproto for X windowing system +choice + prompt "renderproto version you wish" + depends on EMBTK_HAVE_RENDERPROTO + help + Here you can choose which version of renderproto you want to use. + + config EMBTK_RENDERPROTO_VERSION_0_11 + bool "renderproto-0.11" +endchoice + +config EMBTK_RENDERPROTO_VERSION_STRING + string + default "0.11" if EMBTK_RENDERPROTO_VERSION_0_11 + diff --git a/packages/x11/renderproto/renderproto.mk b/packages/x11/renderproto/renderproto.mk new file mode 100644 index 0000000..dcad9f4 --- /dev/null +++ b/packages/x11/renderproto/renderproto.mk @@ -0,0 +1,100 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file renderproto.mk +# \brief renderproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +RENDERPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_RENDERPROTO_VERSION_STRING))) +RENDERPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +RENDERPROTO_PACKAGE := renderproto-$(RENDERPROTO_VERSION).tar.bz2 +RENDERPROTO_BUILD_DIR := $(PACKAGES_BUILD)/renderproto-$(RENDERPROTO_VERSION) + +RENDERPROTO_BINS = +RENDERPROTO_SBINS = +RENDERPROTO_INCLUDES = X11/extensions/render.h X11/extensions/renderproto.h +RENDERPROTO_LIBS = +RENDERPROTO_PKGCONFIGS = renderproto.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +renderproto_install: $(RENDERPROTO_BUILD_DIR)/.installed + +$(RENDERPROTO_BUILD_DIR)/.installed: download_renderproto \ + $(RENDERPROTO_BUILD_DIR)/.decompressed $(RENDERPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + renderproto-$(RENDERPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(RENDERPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(RENDERPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_renderproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(RENDERPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(RENDERPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(RENDERPROTO_PACKAGE) \ + $(RENDERPROTO_SITE)/$(RENDERPROTO_PACKAGE) + +$(RENDERPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(RENDERPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(RENDERPROTO_PACKAGE) + @touch $@ + +$(RENDERPROTO_BUILD_DIR)/.configured: + $(Q)cd $(RENDERPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +renderproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup renderproto-$(RENDERPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(RENDERPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(RENDERPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(RENDERPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(RENDERPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(RENDERPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(RENDERPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(RENDERPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/resourceproto/resourceproto.kconfig b/packages/x11/resourceproto/resourceproto.kconfig new file mode 100644 index 0000000..bae91ed --- /dev/null +++ b/packages/x11/resourceproto/resourceproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file resourceproto.kconfig +# \brief resourceproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_RESOURCEPROTO + bool "Have resourceproto" + help + resourceproto for X windowing system +choice + prompt "resourceproto version you wish" + depends on EMBTK_HAVE_RESOURCEPROTO + help + Here you can choose which version of resourceproto you want to use. + + config EMBTK_RESOURCEPROTO_VERSION_1_1_0 + bool "resourceproto-1.1.0" +endchoice + +config EMBTK_RESOURCEPROTO_VERSION_STRING + string + default "1.1.0" if EMBTK_RESOURCEPROTO_VERSION_1_1_0 + diff --git a/packages/x11/resourceproto/resourceproto.mk b/packages/x11/resourceproto/resourceproto.mk new file mode 100644 index 0000000..67c45fc --- /dev/null +++ b/packages/x11/resourceproto/resourceproto.mk @@ -0,0 +1,94 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file resourceproto.mk +# \brief resourceproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +RESOURCEPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_RESOURCEPROTO_VERSION_STRING))) +RESOURCEPROTO_SITE := http://ftp.x.org/pub/individual/proto +RESOURCEPROTO_PACKAGE := resourceproto-$(RESOURCEPROTO_VERSION).tar.bz2 +RESOURCEPROTO_BUILD_DIR := $(PACKAGES_BUILD)/resourceproto-$(RESOURCEPROTO_VERSION) + +RESOURCEPROTO_BINS = +RESOURCEPROTO_SBINS = +RESOURCEPROTO_INCLUDES = X11/extensions/XResproto.h +RESOURCEPROTO_LIBS = +RESOURCEPROTO_PKGCONFIGS = resourceproto.pc + +resourceproto_install: $(RESOURCEPROTO_BUILD_DIR)/.installed + +$(RESOURCEPROTO_BUILD_DIR)/.installed: download_resourceproto \ + $(RESOURCEPROTO_BUILD_DIR)/.decompressed $(RESOURCEPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + resourceproto-$(RESOURCEPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(RESOURCEPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(RESOURCEPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_resourceproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(RESOURCEPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(RESOURCEPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(RESOURCEPROTO_PACKAGE) \ + $(RESOURCEPROTO_SITE)/$(RESOURCEPROTO_PACKAGE) + +$(RESOURCEPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(RESOURCEPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(RESOURCEPROTO_PACKAGE) + @touch $@ + +$(RESOURCEPROTO_BUILD_DIR)/.configured: + $(Q)cd $(RESOURCEPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ + --prefix=/usr + @touch $@ + +resourceproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup resourceproto-$(RESOURCEPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(RESOURCEPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(RESOURCEPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(RESOURCEPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(RESOURCEPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(RESOURCEPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(RESOURCEPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(RESOURCEPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/utilmacros/utilmacros.kconfig b/packages/x11/utilmacros/utilmacros.kconfig new file mode 100644 index 0000000..cc20ca6 --- /dev/null +++ b/packages/x11/utilmacros/utilmacros.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file utilmacros.kconfig +# \brief utilmacros.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_UTILMACROS + bool "Have utilmacros" + help + utilmacros for X windowing system +choice + prompt "utilmacros version you wish" + depends on EMBTK_HAVE_UTILMACROS + help + Here you can choose which version of utilmacros you want to use. + + config EMBTK_UTILMACROS_VERSION_1_6_0 + bool "utilmacros-1.6.0" +endchoice + +config EMBTK_UTILMACROS_VERSION_STRING + string + default "1.6.0" if EMBTK_UTILMACROS_VERSION_1_6_0 + diff --git a/packages/x11/utilmacros/utilmacros.mk b/packages/x11/utilmacros/utilmacros.mk new file mode 100644 index 0000000..3ca1a50 --- /dev/null +++ b/packages/x11/utilmacros/utilmacros.mk @@ -0,0 +1,101 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file utilmacros.mk +# \brief utilmacros.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +UTILMACROS_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_UTILMACROS_VERSION_STRING))) +UTILMACROS_SITE := http://xorg.freedesktop.org/archive/individual/util +UTILMACROS_PACKAGE := util-macros-$(UTILMACROS_VERSION).tar.bz2 +UTILMACROS_BUILD_DIR := $(PACKAGES_BUILD)/util-macros-$(UTILMACROS_VERSION) + +UTILMACROS_BINS = +UTILMACROS_SBINS = +UTILMACROS_INCLUDES = +UTILMACROS_LIBS = +UTILMACROS_PKGCONFIGS = xorg-macros.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +utilmacros_install: $(UTILMACROS_BUILD_DIR)/.installed + +$(UTILMACROS_BUILD_DIR)/.installed: download_utilmacros \ + $(UTILMACROS_BUILD_DIR)/.decompressed $(UTILMACROS_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + utilmacros-$(UTILMACROS_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(UTILMACROS_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(UTILMACROS_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)cp $(SYSROOT)/usr/share/pkgconfig/xorg-macros.pc $(PKG_CONFIG_PATH) + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_utilmacros: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(UTILMACROS_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(UTILMACROS_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(UTILMACROS_PACKAGE) \ + $(UTILMACROS_SITE)/$(UTILMACROS_PACKAGE) + +$(UTILMACROS_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(UTILMACROS_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(UTILMACROS_PACKAGE) + @touch $@ + +$(UTILMACROS_BUILD_DIR)/.configured: + $(Q)cd $(UTILMACROS_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +utilmacros_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup utilmacros-$(UTILMACROS_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(UTILMACROS_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(UTILMACROS_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(UTILMACROS_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(UTILMACROS_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(UTILMACROS_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(UTILMACROS_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(UTILMACROS_PKGCONFIGS) +endif + diff --git a/packages/x11/videoproto/videoproto.kconfig b/packages/x11/videoproto/videoproto.kconfig new file mode 100644 index 0000000..5712cac --- /dev/null +++ b/packages/x11/videoproto/videoproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file videoproto.kconfig +# \brief videoproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_VIDEOPROTO + bool "Have videoproto" + help + videoproto for X windowing system +choice + prompt "videoproto version you wish" + depends on EMBTK_HAVE_VIDEOPROTO + help + Here you can choose which version of videoproto you want to use. + + config EMBTK_VIDEOPROTO_VERSION_2_3_0 + bool "videoproto-2.3.0" +endchoice + +config EMBTK_VIDEOPROTO_VERSION_STRING + string + default "2.3.0" if EMBTK_VIDEOPROTO_VERSION_2_3_0 + diff --git a/packages/x11/videoproto/videoproto.mk b/packages/x11/videoproto/videoproto.mk new file mode 100644 index 0000000..3597a7c --- /dev/null +++ b/packages/x11/videoproto/videoproto.mk @@ -0,0 +1,96 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file videoproto.mk +# \brief videoproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +VIDEOPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_VIDEOPROTO_VERSION_STRING))) +VIDEOPROTO_SITE := http://ftp.x.org/pub/individual/proto +VIDEOPROTO_PACKAGE := videoproto-$(VIDEOPROTO_VERSION).tar.bz2 +VIDEOPROTO_BUILD_DIR := $(PACKAGES_BUILD)/videoproto-$(VIDEOPROTO_VERSION) + +VIDEOPROTO_BINS = +VIDEOPROTO_SBINS = +VIDEOPROTO_INCLUDES = X11/extensions/vldXvMC.h X11/extensions/Xv.h \ + X11/extensions/XvMC.h X11/extensions/XvMCproto.h \ + X11/extensions/Xvproto.h +VIDEOPROTO_LIBS = +VIDEOPROTO_PKGCONFIGS = videoproto.pc + +videoproto_install: $(VIDEOPROTO_BUILD_DIR)/.installed + +$(VIDEOPROTO_BUILD_DIR)/.installed: download_videoproto \ + $(VIDEOPROTO_BUILD_DIR)/.decompressed $(VIDEOPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + videoproto-$(VIDEOPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(VIDEOPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(VIDEOPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_videoproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(VIDEOPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(VIDEOPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(VIDEOPROTO_PACKAGE) \ + $(VIDEOPROTO_SITE)/$(VIDEOPROTO_PACKAGE) + +$(VIDEOPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(VIDEOPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(VIDEOPROTO_PACKAGE) + @touch $@ + +$(VIDEOPROTO_BUILD_DIR)/.configured: + $(Q)cd $(VIDEOPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ + --prefix=/usr + @touch $@ + +videoproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup videoproto-$(VIDEOPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(VIDEOPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(VIDEOPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(VIDEOPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(VIDEOPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(VIDEOPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(VIDEOPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(VIDEOPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/x11.kconfig b/packages/x11/x11.kconfig new file mode 100644 index 0000000..4d3f686 --- /dev/null +++ b/packages/x11/x11.kconfig @@ -0,0 +1,71 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# For Copyrright from linux kernel's build/configure system, see their source +# code. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file packages.kconfig +# \brief packages.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +menu "X windowing system tools" +source packages/x11/utilmacros/utilmacros.kconfig +source packages/x11/xcbutil/xcbutil.kconfig +endmenu + +menu "X windowing system prototype packages" +source packages/x11/bigreqsproto/bigreqsproto.kconfig +source packages/x11/compositeproto/compositeproto.kconfig +source packages/x11/damageproto/damageproto.kconfig +source packages/x11/fixesproto/fixesproto.kconfig +source packages/x11/fontsproto/fontsproto.kconfig +source packages/x11/inputproto/inputproto.kconfig +source packages/x11/kbproto/kbproto.kconfig +source packages/x11/randrproto/randrproto.kconfig +source packages/x11/renderproto/renderproto.kconfig +source packages/x11/resourceproto/resourceproto.kconfig +source packages/x11/videoproto/videoproto.kconfig +source packages/x11/xcbproto/xcbproto.kconfig +source packages/x11/xcmiscproto/xcmiscproto.kconfig +source packages/x11/xextproto/xextproto.kconfig +source packages/x11/xproto/xproto.kconfig +endmenu + +menu "X windowing system library packages" +source packages/x11/libfontenc/libfontenc.kconfig +source packages/x11/libpthreadstubs/libpthreadstubs.kconfig +source packages/x11/libx11/libx11.kconfig +source packages/x11/libxau/libxau.kconfig +source packages/x11/libxext/libxext.kconfig +source packages/x11/libxfont/libxfont.kconfig +source packages/x11/libxcb/libxcb.kconfig +source packages/x11/libxkbfile/libxkbfile.kconfig +source packages/x11/libxrender/libxrender.kconfig +endmenu + +menu "X windowing system application packages" +source packages/x11/xcbdemo/xcbdemo.kconfig +source packages/x11/xkeyboardconfig/xkeyboardconfig.kconfig +source packages/x11/xkbcomp/xkbcomp.kconfig +source packages/x11/xtrans/xtrans.kconfig +endmenu + +menu "X windowing server" +source packages/x11/xserver/xserver.kconfig +endmenu diff --git a/packages/x11/x11.mk b/packages/x11/x11.mk new file mode 100644 index 0000000..06fb43c --- /dev/null +++ b/packages/x11/x11.mk @@ -0,0 +1,193 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file x11.mk +# \brief x11.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +######### +# X Tools +######### +#utilmacros +include $(EMBTK_ROOT)/packages/x11/utilmacros/utilmacros.mk +ROOTFS_COMPONENTS_CLEAN += utilmacros_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_UTILMACROS) += utilmacros_install + +#xcb-util +include $(EMBTK_ROOT)/packages/x11/xcbutil/xcbutil.mk +ROOTFS_COMPONENTS_CLEAN += xcbutil_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XCBUTIL) += xcbutil_install + +############## +# X prototypes +############## +#bigreqsproto +include $(EMBTK_ROOT)/packages/x11/bigreqsproto/bigreqsproto.mk +ROOTFS_COMPONENTS_CLEAN += bigreqsproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_BIGREQSPROTO) += bigreqsproto_install + +#compositeproto +include $(EMBTK_ROOT)/packages/x11/compositeproto/compositeproto.mk +ROOTFS_COMPONENTS_CLEAN += compositeproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_COMPOSITEPROTO) += compositeproto_install + +#damageproto +include $(EMBTK_ROOT)/packages/x11/damageproto/damageproto.mk +ROOTFS_COMPONENTS_CLEAN += damageproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_DAMAGEPROTO) += damageproto_install + +#fixesproto +include $(EMBTK_ROOT)/packages/x11/fixesproto/fixesproto.mk +ROOTFS_COMPONENTS_CLEAN += fixesproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_FIXESPROTO) += fixesproto_install + +#fontsproto +include $(EMBTK_ROOT)/packages/x11/fontsproto/fontsproto.mk +ROOTFS_COMPONENTS_CLEAN += fontsproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_FONTSPROTO) += fontsproto_install + +#inputproto +include $(EMBTK_ROOT)/packages/x11/inputproto/inputproto.mk +ROOTFS_COMPONENTS_CLEAN += inputproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_INPUTPROTO) += inputproto_install + +#kbproto +include $(EMBTK_ROOT)/packages/x11/kbproto/kbproto.mk +ROOTFS_COMPONENTS_CLEAN += kbproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_INPUTPROTO) += kbproto_install + +#randrproto +include $(EMBTK_ROOT)/packages/x11/randrproto/randrproto.mk +ROOTFS_COMPONENTS_CLEAN += randrproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_RANDRPROTO) += randrproto_install + +#renderproto +include $(EMBTK_ROOT)/packages/x11/renderproto/renderproto.mk +ROOTFS_COMPONENTS_CLEAN += renderproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_RENDERPROTO) += renderproto_install + +#resourceproto +include $(EMBTK_ROOT)/packages/x11/resourceproto/resourceproto.mk +ROOTFS_COMPONENTS_CLEAN += resourceproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_RESOURCEPROTO) += resourceproto_install + +#videoproto +include $(EMBTK_ROOT)/packages/x11/videoproto/videoproto.mk +ROOTFS_COMPONENTS_CLEAN += videoproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_VIDEOPROTO) += videoproto_install + +#xcbproto +include $(EMBTK_ROOT)/packages/x11/xcbproto/xcbproto.mk +ROOTFS_COMPONENTS_CLEAN += xcbproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XCBPROTO) += xcbproto_install + +#xcmiscproto +include $(EMBTK_ROOT)/packages/x11/xcmiscproto/xcmiscproto.mk +ROOTFS_COMPONENTS_CLEAN += xcmiscproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XCMISCPROTO) += xcmiscproto_install + +#xextcproto +include $(EMBTK_ROOT)/packages/x11/xextproto/xextproto.mk +ROOTFS_COMPONENTS_CLEAN += xextproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XEXTPROTO) += xextproto_install + +#xproto +include $(EMBTK_ROOT)/packages/x11/xproto/xproto.mk +ROOTFS_COMPONENTS_CLEAN += xproto_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XPROTO) += xproto_install + +##################################### +# X windowing system library packages +##################################### +#libfontenc +include $(EMBTK_ROOT)/packages/x11/libfontenc/libfontenc.mk +ROOTFS_COMPONENTS_CLEAN += libfontenc_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBFONTENC) += libfontenc_install + +#libx11 +include $(EMBTK_ROOT)/packages/x11/libx11/libx11.mk +ROOTFS_COMPONENTS_CLEAN += libx11_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBX11) += libx11_install + +#libpthreadstubs +include $(EMBTK_ROOT)/packages/x11/libpthreadstubs/libpthreadstubs.mk +ROOTFS_COMPONENTS_CLEAN += libpthreadstubs_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBPTHREADSTUBS) += libpthreadstubs_install + +#libxau +include $(EMBTK_ROOT)/packages/x11/libxau/libxau.mk +ROOTFS_COMPONENTS_CLEAN += libxau_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXAU) += libxau_install + +#libXext +include $(EMBTK_ROOT)/packages/x11/libxext/libxext.mk +ROOTFS_COMPONENTS_CLEAN += libxext_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXEXT) += libxext_install + +#libxfont +include $(EMBTK_ROOT)/packages/x11/libxfont/libxfont.mk +ROOTFS_COMPONENTS_CLEAN += libxfont_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXFONT) += libxfont_install + +#libxcb +include $(EMBTK_ROOT)/packages/x11/libxcb/libxcb.mk +ROOTFS_COMPONENTS_CLEAN += libxcb_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXCB) += libxcb_install + +#libxkbfile +include $(EMBTK_ROOT)/packages/x11/libxkbfile/libxkbfile.mk +ROOTFS_COMPONENTS_CLEAN += libxkbfile_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXKBFILE) += libxkbfile_install + +#libxrender +include $(EMBTK_ROOT)/packages/x11/libxrender/libxrender.mk +ROOTFS_COMPONENTS_CLEAN += libxrender_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXRENDER) += libxrender_install + +######################################### +# X windowing system application packages +######################################### +#xcbdemo +include $(EMBTK_ROOT)/packages/x11/xcbdemo/xcbdemo.mk +ROOTFS_COMPONENTS_CLEAN += xcbdemo_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XCBDEMO) += xcbdemo_install + +#xkbcomp +include $(EMBTK_ROOT)/packages/x11/xkbcomp/xkbcomp.mk +ROOTFS_COMPONENTS_CLEAN += xkbcomp_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XKBCOMP) += xkbcomp_install + +#xkeyboard-config +include $(EMBTK_ROOT)/packages/x11/xkeyboardconfig/xkeyboardconfig.mk +ROOTFS_COMPONENTS_CLEAN += xkeyboardconfig_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XKEYBOARDCONFIG) += xkeyboardconfig_install + +#xtrans +include $(EMBTK_ROOT)/packages/x11/xtrans/xtrans.mk +ROOTFS_COMPONENTS_CLEAN += xtrans_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XTRANS) += xtrans_install + +########## +# X server +########## +#kdrive +include $(EMBTK_ROOT)/packages/x11/xserver/xserver.mk +ROOTFS_COMPONENTS_CLEAN += xserver_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_XSERVER) += xserver_install diff --git a/packages/x11/xcbdemo/xcbdemo.kconfig b/packages/x11/xcbdemo/xcbdemo.kconfig new file mode 100644 index 0000000..ce53187 --- /dev/null +++ b/packages/x11/xcbdemo/xcbdemo.kconfig @@ -0,0 +1,43 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcbdemo.kconfig +# \brief xcbdemo.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XCBDEMO + bool "Have xcbdemo" + select EMBTK_HAVE_XCBUTIL + help + X C binding (xcb) demo applications +choice + prompt "xcbdemo version you wish" + depends on EMBTK_HAVE_XCBDEMO + help + Here you can choose which version of xcbdemo you want to use. + + config EMBTK_XCBDEMO_VERSION_0_1 + bool "xcb-demo-0.1" +endchoice + +config EMBTK_XCBDEMO_VERSION_STRING + string + default "0.1" if EMBTK_XCBDEMO_VERSION_0_1 + diff --git a/packages/x11/xcbdemo/xcbdemo.mk b/packages/x11/xcbdemo/xcbdemo.mk new file mode 100644 index 0000000..cbac5ab --- /dev/null +++ b/packages/x11/xcbdemo/xcbdemo.mk @@ -0,0 +1,100 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcbdemo.mk +# \brief xcbdemo.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +XCBDEMO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XCBDEMO_VERSION_STRING))) +XCBDEMO_SITE := http://xcb.freedesktop.org/dist +XCBDEMO_PACKAGE := xcb-demo-$(XCBDEMO_VERSION).tar.bz2 +XCBDEMO_BUILD_DIR := $(PACKAGES_BUILD)/xcb-demo-$(XCBDEMO_VERSION) + +XCBDEMO_BINS = +XCBDEMO_SBINS = +XCBDEMO_INCLUDES = +XCBDEMO_LIBS = +XCBDEMO_PKGCONFIGS = + +XCBDEMO_DEPS = xcbutil_install + +xcbdemo_install: $(XCBDEMO_BUILD_DIR)/.installed + +$(XCBDEMO_BUILD_DIR)/.installed: download_xcbdemo \ + $(XCBDEMO_BUILD_DIR)/.decompressed $(XCBDEMO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xcbdemo-$(XCBDEMO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(XCBDEMO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XCBDEMO_BUILD_DIR) DESTDIR=$(SYSROOT)/testxcbdemo install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_xcbdemo: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XCBDEMO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XCBDEMO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XCBDEMO_PACKAGE) \ + $(XCBDEMO_SITE)/$(XCBDEMO_PACKAGE) + +$(XCBDEMO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XCBDEMO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(XCBDEMO_PACKAGE) + @touch $@ + +$(XCBDEMO_BUILD_DIR)/.configured: + $(Q)cd $(XCBDEMO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS) -I$(SYSROOT)/usr/include -I$(SYSROOT)/usr/include/xcb" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include -I$(SYSROOT)/usr/include/xcb" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ + --prefix=/usr + @touch $@ + +xcbdemo_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xcbdemo-$(XCBDEMO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XCBDEMO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XCBDEMO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XCBDEMO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(XCBDEMO_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(XCBDEMO_PKGCONFIGS) + +$(XCBDEMO_BUILD_DIR)/.x11patch: + @XCBDEMO_C_FILES=`find $(XCBDEMO_BUILD_DIR)/tests -type f`; \ + for i in $$XCBDEMO_C_FILES; \ + do \ + sed \ + -i "s;X11/XCB/;;g" $$i; \ + done + diff --git a/packages/x11/xcbproto/xcbproto.kconfig b/packages/x11/xcbproto/xcbproto.kconfig new file mode 100644 index 0000000..b286529 --- /dev/null +++ b/packages/x11/xcbproto/xcbproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcbproto.kconfig +# \brief xcbproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XCBPROTO + bool "Have xcbproto" + help + xcbproto for X windowing system +choice + prompt "xcbproto version you wish" + depends on EMBTK_HAVE_XCBPROTO + help + Here you can choose which version of xcbproto you want to use. + + config EMBTK_XCBPROTO_VERSION_1_6 + bool "xcbproto-1.6" +endchoice + +config EMBTK_XCBPROTO_VERSION_STRING + string + default "1.6" if EMBTK_XCBPROTO_VERSION_1_6 + diff --git a/packages/x11/xcbproto/xcbproto.mk b/packages/x11/xcbproto/xcbproto.mk new file mode 100644 index 0000000..f3ceaef --- /dev/null +++ b/packages/x11/xcbproto/xcbproto.mk @@ -0,0 +1,100 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcbproto.mk +# \brief xcbproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +XCBPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XCBPROTO_VERSION_STRING))) +XCBPROTO_SITE := http://xcb.freedesktop.org/dist +XCBPROTO_PACKAGE := xcb-proto-$(XCBPROTO_VERSION).tar.gz +XCBPROTO_BUILD_DIR := $(PACKAGES_BUILD)/xcb-proto-$(XCBPROTO_VERSION) + +XCBPROTO_BINS = +XCBPROTO_SBINS = +XCBPROTO_INCLUDES = +XCBPROTO_LIBS = python2.6 +XCBPROTO_PKGCONFIGS = xcb-proto.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +xcbproto_install: $(XCBPROTO_BUILD_DIR)/.installed + +$(XCBPROTO_BUILD_DIR)/.installed: download_xcbproto \ + $(XCBPROTO_BUILD_DIR)/.decompressed $(XCBPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xcbproto-$(XCBPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(XCBPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XCBPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_xcbproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XCBPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XCBPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XCBPROTO_PACKAGE) \ + $(XCBPROTO_SITE)/$(XCBPROTO_PACKAGE) + +$(XCBPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XCBPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xzf $(DOWNLOAD_DIR)/$(XCBPROTO_PACKAGE) + @touch $@ + +$(XCBPROTO_BUILD_DIR)/.configured: + $(Q)cd $(XCBPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +xcbproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xcbproto-$(XCBPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XCBPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XCBPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XCBPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(XCBPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(XCBPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(XCBPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(XCBPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/xcbutil/xcbutil.kconfig b/packages/x11/xcbutil/xcbutil.kconfig new file mode 100644 index 0000000..d7d2ccd --- /dev/null +++ b/packages/x11/xcbutil/xcbutil.kconfig @@ -0,0 +1,43 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcbutil.kconfig +# \brief xcbutil.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XCBUTIL + bool "Have xcbutil" + select EMBTK_HAVE_LIBXCB + help + xcb-util for XCB (X windowing system related). +choice + prompt "xcbutil version you wish" + depends on EMBTK_HAVE_XCBUTIL + help + Here you can choose which version of xcb-util you want to use. + + config EMBTK_XCBUTIL_VERSION_0_3_6 + bool "xcb-util-0.3.6" +endchoice + +config EMBTK_XCBUTIL_VERSION_STRING + string + default "0.3.6" if EMBTK_XCBUTIL_VERSION_0_3_6 + diff --git a/packages/x11/xcbutil/xcbutil.mk b/packages/x11/xcbutil/xcbutil.mk new file mode 100644 index 0000000..32552bc --- /dev/null +++ b/packages/x11/xcbutil/xcbutil.mk @@ -0,0 +1,114 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcbutil.mk +# \brief xcbutil.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2009 +################################################################################ + +XCBUTIL_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XCBUTIL_VERSION_STRING))) +XCBUTIL_SITE := http://xcb.freedesktop.org/dist +XCBUTIL_PACKAGE := xcb-util-$(XCBUTIL_VERSION).tar.bz2 +XCBUTIL_BUILD_DIR := $(PACKAGES_BUILD)/xcb-util-$(XCBUTIL_VERSION) + +XCBUTIL_BINS = +XCBUTIL_SBINS = +XCBUTIL_INCLUDES = xcb/xcb_atom.h xcb/xcb_aux.h xcb/xcb_bitops.h \ + xcb/xcb_event.h xcb/xcb_icccm.h xcb/xcb_image.h \ + xcb/xcb_keysyms.h xcb/xcb_pixel.h xcb/xcb_property.h \ + xcb/xcb_renderutil.h xcb/xcb_reply.h +XCBUTIL_LIBS = libxcb-atom.* libxcb-aux.* libxcb-event.* libxcb-icccm.* \ + libxcb-image.* libxcb-keysyms.* libxcb-property.* \ + libxcb-render-util.* libxcb-reply.* +XCBUTIL_PKGCONFIGS = xcb-atom.pc xcb-aux.pc xcb-event.pc xcb-icccm.pc \ + xcb-image.pc xcb-keysyms.pc xcb-property.pc xcb-renderutil.pc \ + xcb-reply.pc + +XCBUTIL_DEPS = libxcb_install + +xcbutil_install: $(XCBUTIL_BUILD_DIR)/.installed + +$(XCBUTIL_BUILD_DIR)/.installed: $(XCBUTIL_DEPS) download_xcbutil \ + $(XCBUTIL_BUILD_DIR)/.decompressed $(XCBUTIL_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xcbutil-$(XCBUTIL_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(XCBUTIL_BUILD_DIR)) + $(Q)$(MAKE) -C $(XCBUTIL_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XCBUTIL_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + $(Q)$(MAKE) $(XCBUTIL_BUILD_DIR)/.patchlibtool + @touch $@ + +download_xcbutil: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XCBUTIL_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XCBUTIL_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XCBUTIL_PACKAGE) \ + $(XCBUTIL_SITE)/$(XCBUTIL_PACKAGE) + +$(XCBUTIL_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XCBUTIL_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(XCBUTIL_PACKAGE) + @touch $@ + +$(XCBUTIL_BUILD_DIR)/.configured: + cd $(XCBUTIL_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure $XORG_CONFIG --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) --prefix=/usr + @touch $@ + +xcbutil_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xcbutil-$(XCBUTIL_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XCBUTIL_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XCBUTIL_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XCBUTIL_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(XCBUTIL_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(XCBUTIL_PKGCONFIGS) + +$(XCBUTIL_BUILD_DIR)/.patchlibtool: + @XCBUTIL_LT_FILES=`find $(SYSROOT)/usr/$(LIBDIR)/libxcb-* -type f -name *.la`; \ + for i in $$XCBUTIL_LT_FILES; \ + do \ + sed \ + -i "s; /usr/$(LIBDIR)/libxcb-event.la ; $(SYSROOT)/usr/$(LIBDIR)/libxcb-event.la ;" $$i; \ + sed \ + -i "s; /usr/$(LIBDIR)/libxcb-aux.la ; $(SYSROOT)/usr/$(LIBDIR)/libxcb-aux.la ;" $$i; \ + sed \ + -i "s; /usr/$(LIBDIR)/libxcb-property.la ; $(SYSROOT)/usr/$(LIBDIR)/libxcb-property.la ;" $$i; \ + sed \ + -i "s; /usr/$(LIBDIR)/libxcb-atom.la ; $(SYSROOT)/usr/$(LIBDIR)/libxcb-atom.la ;" $$i; \ + done + diff --git a/packages/x11/xcmiscproto/xcmiscproto.kconfig b/packages/x11/xcmiscproto/xcmiscproto.kconfig new file mode 100644 index 0000000..748e2d5 --- /dev/null +++ b/packages/x11/xcmiscproto/xcmiscproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcmiscproto.kconfig +# \brief xcmiscproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XCMISCPROTO + bool "Have xcmiscproto" + help + xcmiscproto for X windowing system +choice + prompt "xcmiscproto version you wish" + depends on EMBTK_HAVE_XCMISCPROTO + help + Here you can choose which version of xcmiscproto you want to use. + + config EMBTK_XCMISCPROTO_VERSION_1_2_0 + bool "xcmiscproto-1.2.0" +endchoice + +config EMBTK_XCMISCPROTO_VERSION_STRING + string + default "1.2.0" if EMBTK_XCMISCPROTO_VERSION_1_2_0 + diff --git a/packages/x11/xcmiscproto/xcmiscproto.mk b/packages/x11/xcmiscproto/xcmiscproto.mk new file mode 100644 index 0000000..0845b0f --- /dev/null +++ b/packages/x11/xcmiscproto/xcmiscproto.mk @@ -0,0 +1,100 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcmiscproto.mk +# \brief xcmiscproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +XCMISCPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XCMISCPROTO_VERSION_STRING))) +XCMISCPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +XCMISCPROTO_PACKAGE := xcmiscproto-$(XCMISCPROTO_VERSION).tar.bz2 +XCMISCPROTO_BUILD_DIR := $(PACKAGES_BUILD)/xcmiscproto-$(XCMISCPROTO_VERSION) + +XCMISCPROTO_BINS = +XCMISCPROTO_SBINS = +XCMISCPROTO_INCLUDES = X11/extensions/xcmiscproto.h X11/extensions/xcmiscstr.h +XCMISCPROTO_LIBS = +XCMISCPROTO_PKGCONFIGS = xcmiscproto.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +xcmiscproto_install: $(XCMISCPROTO_BUILD_DIR)/.installed + +$(XCMISCPROTO_BUILD_DIR)/.installed: download_xcmiscproto \ + $(XCMISCPROTO_BUILD_DIR)/.decompressed $(XCMISCPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xcmiscproto-$(XCMISCPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(XCMISCPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XCMISCPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_xcmiscproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XCMISCPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XCMISCPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XCMISCPROTO_PACKAGE) \ + $(XCMISCPROTO_SITE)/$(XCMISCPROTO_PACKAGE) + +$(XCMISCPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XCMISCPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(XCMISCPROTO_PACKAGE) + @touch $@ + +$(XCMISCPROTO_BUILD_DIR)/.configured: + $(Q)cd $(XCMISCPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +xcmiscproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xcmiscproto-$(XCMISCPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XCMISCPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XCMISCPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XCMISCPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(XCMISCPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(XCMISCPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(XCMISCPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(XCMISCPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/xextproto/xextproto.kconfig b/packages/x11/xextproto/xextproto.kconfig new file mode 100644 index 0000000..7128462 --- /dev/null +++ b/packages/x11/xextproto/xextproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xextproto.kconfig +# \brief xextproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XEXTPROTO + bool "Have xextproto" + help + xextproto description +choice + prompt "xextproto version you wish" + depends on EMBTK_HAVE_XEXTPROTO + help + Here you can choose which version of xextproto you want to use. + + config EMBTK_XEXTPROTO_VERSION_7_1_1 + bool "xextproto-7.1.1" +endchoice + +config EMBTK_XEXTPROTO_VERSION_STRING + string + default "7.1.1" if EMBTK_XEXTPROTO_VERSION_7_1_1 + diff --git a/packages/x11/xextproto/xextproto.mk b/packages/x11/xextproto/xextproto.mk new file mode 100644 index 0000000..ff8a85c --- /dev/null +++ b/packages/x11/xextproto/xextproto.mk @@ -0,0 +1,108 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xextproto.mk +# \brief xextproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +XEXTPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XEXTPROTO_VERSION_STRING))) +XEXTPROTO_SITE := http://xorg.freedesktop.org/archive/individual/proto +XEXTPROTO_PACKAGE := xextproto-$(XEXTPROTO_VERSION).tar.bz2 +XEXTPROTO_BUILD_DIR := $(PACKAGES_BUILD)/xextproto-$(XEXTPROTO_VERSION) + +XEXTPROTO_BINS = +XEXTPROTO_SBINS = +XEXTPROTO_INCLUDES = X11/extensions/ag.h X11/extensions/cupproto.h \ + X11/extensions/dpmsconst.h X11/extensions/EVIproto.h \ + X11/extensions/lbx.h X11/extensions/mitmiscproto.h \ + X11/extensions/secur.h X11/extensions/shapeproto.h \ + X11/extensions/syncconst.h X11/extensions/xtestext1const.h \ + X11/extensions/agproto.h X11/extensions/dbe.h \ + X11/extensions/dpmsproto.h X11/extensions/ge.h \ + X11/extensions/lbxproto.h X11/extensions/multibufconst.h \ + X11/extensions/securproto.h X11/extensions/shm.h \ + X11/extensions/syncproto.h X11/extensions/xtestext1proto.h \ + X11/extensions/cup.h X11/extensions/dbeproto.h \ + X11/extensions/EVI.h X11/extensions/geproto.h \ + X11/extensions/mitmiscconst.h X11/extensions/multibufproto.h \ + X11/extensions/shapeconst.h X11/extensions/shmproto.h \ + X11/extensions/xtestconst.h X11/extensions/xtestproto.h +XEXTPROTO_LIBS = +XEXTPROTO_PKGCONFIGS = xextproto.pc + +xextproto_install: $(XEXTPROTO_BUILD_DIR)/.installed + +$(XEXTPROTO_BUILD_DIR)/.installed: download_xextproto \ + $(XEXTPROTO_BUILD_DIR)/.decompressed $(XEXTPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xextproto-$(XEXTPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(XEXTPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XEXTPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_xextproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XEXTPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XEXTPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XEXTPROTO_PACKAGE) \ + $(XEXTPROTO_SITE)/$(XEXTPROTO_PACKAGE) + +$(XEXTPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XEXTPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(XEXTPROTO_PACKAGE) + @touch $@ + +$(XEXTPROTO_BUILD_DIR)/.configured: + $(Q)cd $(XEXTPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +xextproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xextproto-$(XEXTPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XEXTPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XEXTPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XEXTPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(XEXTPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(XEXTPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(XEXTPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(XEXTPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/xkbcomp/xkbcomp.kconfig b/packages/x11/xkbcomp/xkbcomp.kconfig new file mode 100644 index 0000000..f1808e5 --- /dev/null +++ b/packages/x11/xkbcomp/xkbcomp.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xkbcomp.kconfig +# \brief xkbcomp.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XKBCOMP + bool "Have xkbcomp" + help + xkbcomp for X windowing system +choice + prompt "xkbcomp version you wish" + depends on EMBTK_HAVE_XKBCOMP + help + Here you can choose which version of xkbcomp you want to use. + + config EMBTK_XKBCOMP_VERSION_1_1_1 + bool "xkbcomp-1.1.1" +endchoice + +config EMBTK_XKBCOMP_VERSION_STRING + string + default "1.1.1" if EMBTK_XKBCOMP_VERSION_1_1_1 + diff --git a/packages/x11/xkbcomp/xkbcomp.mk b/packages/x11/xkbcomp/xkbcomp.mk new file mode 100644 index 0000000..9598a22 --- /dev/null +++ b/packages/x11/xkbcomp/xkbcomp.mk @@ -0,0 +1,90 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xkbcomp.mk +# \brief xkbcomp.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +XKBCOMP_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XKBCOMP_VERSION_STRING))) +XKBCOMP_SITE := http://xorg.freedesktop.org/archive/individual/app/ +XKBCOMP_PACKAGE := xkbcomp-$(XKBCOMP_VERSION).tar.bz2 +XKBCOMP_BUILD_DIR := $(PACKAGES_BUILD)/xkbcomp-$(XKBCOMP_VERSION) + +XKBCOMP_BINS = xkbcomp +XKBCOMP_SBINS = +XKBCOMP_INCLUDES = +XKBCOMP_LIBS = +XKBCOMP_PKGCONFIGS = + +xkbcomp_install: $(XKBCOMP_BUILD_DIR)/.installed + +$(XKBCOMP_BUILD_DIR)/.installed: download_xkbcomp \ + $(XKBCOMP_BUILD_DIR)/.decompressed $(XKBCOMP_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xkbcomp-$(XKBCOMP_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(XKBCOMP_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XKBCOMP_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_xkbcomp: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XKBCOMP_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XKBCOMP_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XKBCOMP_PACKAGE) \ + $(XKBCOMP_SITE)/$(XKBCOMP_PACKAGE) + +$(XKBCOMP_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XKBCOMP_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(XKBCOMP_PACKAGE) + @touch $@ + +$(XKBCOMP_BUILD_DIR)/.configured: + $(Q)cd $(XKBCOMP_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ + --prefix=/usr + @touch $@ + +xkbcomp_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xkbcomp-$(XKBCOMP_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XKBCOMP_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XKBCOMP_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XKBCOMP_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(XKBCOMP_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(XKBCOMP_PKGCONFIGS) + diff --git a/packages/x11/xkeyboardconfig/xkeyboardconfig.kconfig b/packages/x11/xkeyboardconfig/xkeyboardconfig.kconfig new file mode 100644 index 0000000..4125f9f --- /dev/null +++ b/packages/x11/xkeyboardconfig/xkeyboardconfig.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xkeyboardconfig.kconfig +# \brief xkeyboardconfig.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XKEYBOARDCONFIG + bool "Have xkeyboard-config" + help + xkeyboard-config for X windowing system +choice + prompt "xkeyboardconfig version you wish" + depends on EMBTK_HAVE_XKEYBOARDCONFIG + help + Here you can choose which version of xkeyboardconfig you want to use. + + config EMBTK_XKEYBOARDCONFIG_VERSION_1_8 + bool "xkeyboard-config-1.8" +endchoice + +config EMBTK_XKEYBOARDCONFIG_VERSION_STRING + string + default "1.8" if EMBTK_XKEYBOARDCONFIG_VERSION_1_8 + diff --git a/packages/x11/xkeyboardconfig/xkeyboardconfig.mk b/packages/x11/xkeyboardconfig/xkeyboardconfig.mk new file mode 100644 index 0000000..b67f15a --- /dev/null +++ b/packages/x11/xkeyboardconfig/xkeyboardconfig.mk @@ -0,0 +1,90 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xkeyboardconfig.mk +# \brief xkeyboardconfig.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +XKEYBOARDCONFIG_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XKEYBOARDCONFIG_VERSION_STRING))) +XKEYBOARDCONFIG_SITE := http://xlibs.freedesktop.org/xkbdesc +XKEYBOARDCONFIG_PACKAGE := xkeyboard-config-$(XKEYBOARDCONFIG_VERSION).tar.bz2 +XKEYBOARDCONFIG_BUILD_DIR := $(PACKAGES_BUILD)/xkeyboard-config-$(XKEYBOARDCONFIG_VERSION) + +XKEYBOARDCONFIG_BINS = +XKEYBOARDCONFIG_SBINS = +XKEYBOARDCONFIG_INCLUDES = +XKEYBOARDCONFIG_LIBS = +XKEYBOARDCONFIG_PKGCONFIGS = + +xkeyboardconfig_install: $(XKEYBOARDCONFIG_BUILD_DIR)/.installed + +$(XKEYBOARDCONFIG_BUILD_DIR)/.installed: download_xkeyboardconfig \ + $(XKEYBOARDCONFIG_BUILD_DIR)/.decompressed $(XKEYBOARDCONFIG_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xkeyboardconfig-$(XKEYBOARDCONFIG_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(XKEYBOARDCONFIG_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XKEYBOARDCONFIG_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_xkeyboardconfig: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XKEYBOARDCONFIG_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XKEYBOARDCONFIG_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XKEYBOARDCONFIG_PACKAGE) \ + $(XKEYBOARDCONFIG_SITE)/$(XKEYBOARDCONFIG_PACKAGE) + +$(XKEYBOARDCONFIG_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XKEYBOARDCONFIG_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(XKEYBOARDCONFIG_PACKAGE) + @touch $@ + +$(XKEYBOARDCONFIG_BUILD_DIR)/.configured: + $(Q)cd $(XKEYBOARDCONFIG_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ + --prefix=/usr + @touch $@ + +xkeyboardconfig_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xkeyboardconfig-$(XKEYBOARDCONFIG_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XKEYBOARDCONFIG_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XKEYBOARDCONFIG_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XKEYBOARDCONFIG_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(XKEYBOARDCONFIG_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(XKEYBOARDCONFIG_PKGCONFIGS) + diff --git a/packages/x11/xproto/xproto.kconfig b/packages/x11/xproto/xproto.kconfig new file mode 100644 index 0000000..0d39a1f --- /dev/null +++ b/packages/x11/xproto/xproto.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xproto.kconfig +# \brief xproto.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XPROTO + bool "Have xproto" + help + xproto for X windowing system +choice + prompt "xproto version you wish" + depends on EMBTK_HAVE_XPROTO + help + Here you can choose which version of xproto you want to use. + + config EMBTK_XPROTO_VERSION_7_0_16 + bool "xproto-7.0.16" +endchoice + +config EMBTK_XPROTO_VERSION_STRING + string + default "7.0.16" if EMBTK_XPROTO_VERSION_7_0_16 + diff --git a/packages/x11/xproto/xproto.mk b/packages/x11/xproto/xproto.mk new file mode 100644 index 0000000..59a46a2 --- /dev/null +++ b/packages/x11/xproto/xproto.mk @@ -0,0 +1,103 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xproto.mk +# \brief xproto.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +XPROTO_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XPROTO_VERSION_STRING))) +XPROTO_SITE := http://ftp.x.org/pub/individual/proto +XPROTO_PACKAGE := xproto-$(XPROTO_VERSION).tar.bz2 +XPROTO_BUILD_DIR := $(PACKAGES_BUILD)/xproto-$(XPROTO_VERSION) + +XPROTO_BINS = +XPROTO_SBINS = +XPROTO_INCLUDES = X11/keysymdef.h X11/Xalloca.h X11/Xatom.h X11/XF86keysym.h \ + X11/Xfuncs.h Xmd.h X11/Xos.h X11/Xpoll.h X11/Xprotostr.h \ + X11/keysym.h X11/Xarch.h X11/Xdefs.h X11/Xfuncproto.h X11/X.h \ + X11/Xosdefs.h X11/Xos_r.h X11/Xproto.h X11/Xthreads.h +XPROTO_LIBS = +XPROTO_PKGCONFIGS = xproto.pc + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +xproto_install: $(XPROTO_BUILD_DIR)/.installed + +$(XPROTO_BUILD_DIR)/.installed: download_xproto \ + $(XPROTO_BUILD_DIR)/.decompressed $(XPROTO_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xproto-$(XPROTO_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(XPROTO_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XPROTO_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_xproto: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XPROTO_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XPROTO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XPROTO_PACKAGE) \ + $(XPROTO_SITE)/$(XPROTO_PACKAGE) + +$(XPROTO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XPROTO_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(XPROTO_PACKAGE) + @touch $@ + +$(XPROTO_BUILD_DIR)/.configured: + $(Q)cd $(XPROTO_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +xproto_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xproto-$(XPROTO_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XPROTO_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XPROTO_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XPROTO_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(XPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(XPROTO_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(XPROTO_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(XPROTO_PKGCONFIGS) +endif + diff --git a/packages/x11/xserver/xserver.kconfig b/packages/x11/xserver/xserver.kconfig new file mode 100644 index 0000000..ebcc54b --- /dev/null +++ b/packages/x11/xserver/xserver.kconfig @@ -0,0 +1,63 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xserver.kconfig +# \brief xserver.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XSERVER + bool "Have xserver (kdrive)" + select EMBTK_HAVE_UTILMACROS + select EMBTK_HAVE_BIGREQSPROTO + select EMBTK_HAVE_COMPOSITEPROTO + select EMBTK_HAVE_DAMAGEPROTO + select EMBTK_HAVE_FIXESPROTO + select EMBTK_HAVE_FONTSPROTO + select EMBTK_HAVE_INPUTPROTO + select EMBTK_HAVE_KBPROTO + select EMBTK_HAVE_RANDRPROTO + select EMBTK_HAVE_RENDERPROTO + select EMBTK_HAVE_RESOURCEPROTO + select EMBTK_HAVE_VIDEOPROTO + select EMBTK_HAVE_XCBPROTO + select EMBTK_HAVE_XCMISCPROTO + select EMBTK_HAVE_XEXTPROTO + select EMBTK_HAVE_XPROTO + select EMBTK_HAVE_LIBXFONT + select EMBTK_HAVE_LIBXKBFILE + select EMBTK_HAVE_XTRANS + select EMBTK_HAVE_OPENSSL + select EMBTK_HAVE_PIXMAN + help + xserver (actually kdrive) +choice + prompt "xserver version you wish" + depends on EMBTK_HAVE_XSERVER + help + Here you can choose which version of xserver you want to use. + + config EMBTK_XSERVER_VERSION_1_7_99_901 + bool "xserver-1.7.99.901" +endchoice + +config EMBTK_XSERVER_VERSION_STRING + string + default "1.7.99.901" if EMBTK_XSERVER_VERSION_1_7_99_901 + diff --git a/packages/x11/xserver/xserver.mk b/packages/x11/xserver/xserver.mk new file mode 100644 index 0000000..ea6159b --- /dev/null +++ b/packages/x11/xserver/xserver.mk @@ -0,0 +1,110 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xserver.mk +# \brief xserver.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +XSERVER_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XSERVER_VERSION_STRING))) +XSERVER_SITE := http://ftp.x.org/pub/individual/xserver +XSERVER_PACKAGE := xorg-server-$(XSERVER_VERSION).tar.bz2 +XSERVER_BUILD_DIR := $(PACKAGES_BUILD)/xorg-server-$(XSERVER_VERSION) + +XSERVER_BINS = Xfbdev +XSERVER_SBINS = +XSERVER_INCLUDES = +XSERVER_LIBS = xorg/protocol.txt +XSERVER_PKGCONFIGS = + +XSERVER_DEPS = utilmacros_install bigreqsproto_install compositeproto_install \ + damageproto_install fixesproto_install fontsproto_install \ + inputproto_install kbproto_install randrproto_install \ + renderproto_install resourceproto_install videoproto_install \ + xcbproto_install xcmiscproto_install xextproto_install \ + xproto_install libxfont_install libxkbfile_install \ + xtrans_install openssl_install + +xserver_install: $(XSERVER_BUILD_DIR)/.installed + +$(XSERVER_BUILD_DIR)/.installed: $(XSERVER_DEPS) download_xserver \ + $(XSERVER_BUILD_DIR)/.decompressed $(XSERVER_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xserver-$(XSERVER_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(XSERVER_BUILD_DIR)) + $(Q)$(MAKE) -C $(XSERVER_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XSERVER_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + $(Q)-cp -R $(SYSROOT)/usr/$(LIBDIR)/xorg $(ROOTFS)/usr/$(LIBDIR)/ + @touch $@ + +download_xserver: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XSERVER_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XSERVER_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XSERVER_PACKAGE) \ + $(XSERVER_SITE)/$(XSERVER_PACKAGE) + +$(XSERVER_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XSERVER_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(XSERVER_PACKAGE) + @touch $@ + +$(XSERVER_BUILD_DIR)/.configured: + $(Q)cd $(XSERVER_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + XLIB_CFLAGS=`$(PKGCONFIG_BIN) xcb --cflags` \ + XLIB_LIBS=`$(PKGCONFIG_BIN) xcb --libs` \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ + --prefix=/usr --enable-kdrive --with-sha1=libcrypto \ + --disable-xorg --disable-aiglx --disable-glx-tls --disable-dga \ + --disable-xdmcp --disable-xdm-auth-1 --disable-config-hal \ + --disable-xf86vidmode --disable-xf86bigfont --disable-xnest \ + --disable-xquartz --disable-xwin --disable-xfake \ + --disable-install-setuid --disable-xvfb --disable-dmx \ + --disable-glx --disable-xinerama --disable-xfree86-utils \ + --disable-screensaver --disable-dri --disable-tcp-transport \ + --disable-ipv6 + @touch $@ + +xserver_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xserver-$(XSERVER_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XSERVER_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XSERVER_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XSERVER_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(XSERVER_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(XSERVER_PKGCONFIGS) + diff --git a/packages/x11/xtrans/xtrans.kconfig b/packages/x11/xtrans/xtrans.kconfig new file mode 100644 index 0000000..dae2a29 --- /dev/null +++ b/packages/x11/xtrans/xtrans.kconfig @@ -0,0 +1,42 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2009-2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xtrans.kconfig +# \brief xtrans.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XTRANS + bool "Have xtrans" + help + xtrans for X windowing system +choice + prompt "xtrans version you wish" + depends on EMBTK_HAVE_XTRANS + help + Here you can choose which version of xtrans you want to use. + + config EMBTK_XTRANS_VERSION_1_2_5 + bool "xtrans-1.2.5" +endchoice + +config EMBTK_XTRANS_VERSION_STRING + string + default "1.2.5" if EMBTK_XTRANS_VERSION_1_2_5 + diff --git a/packages/x11/xtrans/xtrans.mk b/packages/x11/xtrans/xtrans.mk new file mode 100644 index 0000000..7a9d915 --- /dev/null +++ b/packages/x11/xtrans/xtrans.mk @@ -0,0 +1,101 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xtrans.mk +# \brief xtrans.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date March 2010 +################################################################################ + +XTRANS_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XTRANS_VERSION_STRING))) +XTRANS_SITE := http://xorg.freedesktop.org/archive/individual/lib +XTRANS_PACKAGE := xtrans-$(XTRANS_VERSION).tar.bz2 +XTRANS_BUILD_DIR := $(PACKAGES_BUILD)/xtrans-$(XTRANS_VERSION) + +XTRANS_BINS = +XTRANS_SBINS = +XTRANS_INCLUDES = X11/xtrans +XTRANS_LIBS = +XTRANS_PKGCONFIGS = + +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib32/pkgconfig +else +PKG_CONFIG_PATH=$(SYSROOT)/usr/lib/pkgconfig +endif + +xtrans_install: $(XTRANS_BUILD_DIR)/.installed + +$(XTRANS_BUILD_DIR)/.installed: download_xtrans \ + $(XTRANS_BUILD_DIR)/.decompressed $(XTRANS_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xtrans-$(XTRANS_VERSION) in your root filesystem...") + $(Q)$(MAKE) -C $(XTRANS_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XTRANS_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)cp $(SYSROOT)/usr/share/pkgconfig/xtrans.pc $(PKG_CONFIG_PATH) + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_xtrans: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XTRANS_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XTRANS_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XTRANS_PACKAGE) \ + $(XTRANS_SITE)/$(XTRANS_PACKAGE) + +$(XTRANS_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XTRANS_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjvf $(DOWNLOAD_DIR)/$(XTRANS_PACKAGE) + @touch $@ + +$(XTRANS_BUILD_DIR)/.configured: + $(Q)cd $(XTRANS_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) \ + --prefix=/usr --libdir=/usr/$(LIBDIR) + @touch $@ + +xtrans_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xtrans-$(XTRANS_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XTRANS_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XTRANS_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XTRANS_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/lib; rm -rf $(XTRANS_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib/pkgconfig; rm -rf $(XTRANS_PKGCONFIGS) +ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y) + $(Q)-cd $(SYSROOT)/usr/lib32; rm -rf $(XTRANS_LIBS) + $(Q)-cd $(SYSROOT)/usr/lib32/pkgconfig; rm -rf $(XTRANS_PKGCONFIGS) +endif + -- cgit v1.2.3