From 3e071bb6b48b0a1d76565b597f76aad065d1f2e2 Mon Sep 17 00:00:00 2001 From: vpeter4 Date: Thu, 22 Mar 2012 14:23:39 +0100 Subject: [PATCH] web browser: preparing... xorg starts with cursor by default new packages libXcursor, nss (Mozilla Network Security Services) and old version of libpng --- packages/graphics/libpng12/build | 34 ++++++++++ packages/graphics/libpng12/install | 23 +++++++ packages/graphics/libpng12/meta | 35 ++++++++++ packages/graphics/libpng12/unpack | 27 ++++++++ packages/security/nss/build | 65 +++++++++++++++++++ packages/security/nss/install | 23 +++++++ packages/security/nss/meta | 35 ++++++++++ packages/x11/lib/libXcursor/build | 35 ++++++++++ packages/x11/lib/libXcursor/install | 26 ++++++++ packages/x11/lib/libXcursor/meta | 36 ++++++++++ .../xserver/xorg-server/scripts/xorg_start | 2 +- 11 files changed, 340 insertions(+), 1 deletion(-) create mode 100755 packages/graphics/libpng12/build create mode 100755 packages/graphics/libpng12/install create mode 100644 packages/graphics/libpng12/meta create mode 100755 packages/graphics/libpng12/unpack create mode 100755 packages/security/nss/build create mode 100755 packages/security/nss/install create mode 100644 packages/security/nss/meta create mode 100755 packages/x11/lib/libXcursor/build create mode 100755 packages/x11/lib/libXcursor/install create mode 100644 packages/x11/lib/libXcursor/meta diff --git a/packages/graphics/libpng12/build b/packages/graphics/libpng12/build new file mode 100755 index 0000000000..5a5d29dc90 --- /dev/null +++ b/packages/graphics/libpng12/build @@ -0,0 +1,34 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +ac_cv_lib_z_zlibVersion=yes \ +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared + +make diff --git a/packages/graphics/libpng12/install b/packages/graphics/libpng12/install new file mode 100755 index 0000000000..0ca72c8177 --- /dev/null +++ b/packages/graphics/libpng12/install @@ -0,0 +1,23 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 diff --git a/packages/graphics/libpng12/meta b/packages/graphics/libpng12/meta new file mode 100644 index 0000000000..40bf2ca2a6 --- /dev/null +++ b/packages/graphics/libpng12/meta @@ -0,0 +1,35 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="libpng" +PKG_VERSION="1.2.47" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://www.libpng.org/" +PKG_URL="$SOURCEFORGE_SRC/libpng/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="zlib" +PKG_BUILD_DEPENDS="toolchain zlib" +PKG_PRIORITY="optional" +PKG_SECTION="graphics" +PKG_SHORTDESC="libpng: Portable Network Graphics (PNG) Reference Library - old 1.2 version" +PKG_LONGDESC="PNG (Portable Network Graphics) is an extensible file format for the lossless, portable, well-compressed storage of raster images. PNG provides a patent-free replacement for GIF and can also replace many common uses of TIFF. Indexed-color, grayscale, and truecolor images are supported, plus an optional alpha channel. Sample depths range from 1 to 16 bits. Old 1.2 version." +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" diff --git a/packages/graphics/libpng12/unpack b/packages/graphics/libpng12/unpack new file mode 100755 index 0000000000..aab9610ee8 --- /dev/null +++ b/packages/graphics/libpng12/unpack @@ -0,0 +1,27 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +TGZ_PKG="`echo $PKG_URL | sed 's%.*/\(.*\)$%\1%'`" + + tar xjf $SOURCES/$1/$TGZ_PKG -C $BUILD >/dev/null 2>&1 diff --git a/packages/security/nss/build b/packages/security/nss/build new file mode 100755 index 0000000000..ccb4a10520 --- /dev/null +++ b/packages/security/nss/build @@ -0,0 +1,65 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +# dont build parallel + MAKEFLAGS=-j1 + +cd $PKG_BUILD/mozilla/security/nss + +setup_toolchain host + +# make host part (we need shlibsign and nsinstall) +make nss_build_all CC=$CC LDFLAGS="$LDFLAGS" + +# save host binary +cp ../coreconf/nsinstall/Linux*PTH_DBG.OBJ/nsinstall nsinstall-host +NSINSTALL_HOST=`pwd`/nsinstall-host + +# save library signatures to be used on target +# the .chk file format is cross platform (so I read) +find ./ -name "lib*.chk" -exec cp {} ../../dist/ \; + +# can't run in crosscompile (remove it from target) +sed -i "/shlibsign/d" cmd/manifest.mn + +# clean up host part +rm -rf `find ../../../ -type d -name Linux*PTH_DBG.OBJ` + +[ "$TARGET_ARCH" = "x86_64" ] && export USE_64=1 + +setup_toolchain target + +NSPR_CONFIGURE_OPTS="--host=$TARGET_NAME --build=$HOST_NAME --target=$TARGET_NAME" +NSPR_CONFIGURE_OPTS="$NSPR_CONFIGURE_OPTS --prefix=/usr --enable-strip --with-pthreads" \ +make nss_build_all \ + BUILD_OPT=1 \ + OS_TEST=$TARGET_ARCH \ + CPU_ARCH_TAG=$TARGET_ARCH \ + USE_SYSTEM_ZLIB=1 \ + ZLIB_LIBS=-lz \ + CC=$CC \ + CCC=$CXX \ + RANLIB=$RANLIB \ + V=1 \ + NSINSTALL=$NSINSTALL_HOST diff --git a/packages/security/nss/install b/packages/security/nss/install new file mode 100755 index 0000000000..0ca72c8177 --- /dev/null +++ b/packages/security/nss/install @@ -0,0 +1,23 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 diff --git a/packages/security/nss/meta b/packages/security/nss/meta new file mode 100644 index 0000000000..7ccfff1e5a --- /dev/null +++ b/packages/security/nss/meta @@ -0,0 +1,35 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="nss" +PKG_VERSION="3.13.3" +PKG_REV="1" +PKG_ARCH="i386 x86_64" +PKG_LICENSE="Mozilla Public License" +PKG_SITE="http://ftp.mozilla.org/" +PKG_URL="http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_13_3_RTM/src/$PKG_NAME-$PKG_VERSION-with-nspr-4.9.tar.gz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="security" +PKG_SHORTDESC="nss: Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications." +PKG_LONGDESC="Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications." +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" diff --git a/packages/x11/lib/libXcursor/build b/packages/x11/lib/libXcursor/build new file mode 100755 index 0000000000..a47c4d38fa --- /dev/null +++ b/packages/x11/lib/libXcursor/build @@ -0,0 +1,35 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --enable-shared + +make +$MAKEINSTALL diff --git a/packages/x11/lib/libXcursor/install b/packages/x11/lib/libXcursor/install new file mode 100755 index 0000000000..b37dd417f9 --- /dev/null +++ b/packages/x11/lib/libXcursor/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +#mkdir -p $INSTALL/usr/lib +# cp -P $PKG_BUILD/src/.libs/libXcursor.so* $INSTALL/usr/lib diff --git a/packages/x11/lib/libXcursor/meta b/packages/x11/lib/libXcursor/meta new file mode 100644 index 0000000000..266dc3a18d --- /dev/null +++ b/packages/x11/lib/libXcursor/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="libXcursor" +PKG_VERSION="1.1.13" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://www.X.org" +# PKG_URL="http://xorg.freedesktop.org/archive/individual/lib/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_URL="http://www.mirrorservice.org/sites/ftp.x.org/pub/individual/lib/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="libXfixes libXrender libX11" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="x11/lib" +PKG_SHORTDESC="libXcursor: X Cursor Library" +PKG_LONGDESC="X Cursor Library" +PKG_IS_ADDON="no" +PKG_AUTORECONF="yes" diff --git a/packages/x11/xserver/xorg-server/scripts/xorg_start b/packages/x11/xserver/xorg-server/scripts/xorg_start index 03995d7700..606161d831 100755 --- a/packages/x11/xserver/xorg-server/scripts/xorg_start +++ b/packages/x11/xserver/xorg-server/scripts/xorg_start @@ -43,7 +43,7 @@ if [ "$RUNLEVEL" = openelec ]; then logger -t Xorg "### creating start options ###" - XORG_ARGS="-s 0 -noreset -allowMouseOpenFail -nocursor -nolisten tcp" + XORG_ARGS="-s 0 -noreset -allowMouseOpenFail -nolisten tcp" if [ "$DEBUG" = yes ]; then XORG_ARGS="$XORG_ARGS -logverbose 6 -verbose 6"