From 19e019a3e0a87e770ddd5db01ccd0bd62efb938e Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 23 Feb 2012 03:07:21 +0100 Subject: [PATCH] new package: add package 'splashutils' Signed-off-by: Stephan Raue --- packages/sysutils/splashutils/build | 49 +++++++++++++++++++ packages/sysutils/splashutils/meta | 36 ++++++++++++++ .../patches/splashutils-1.5.4.4-fifodir.patch | 24 +++++++++ 3 files changed, 109 insertions(+) create mode 100755 packages/sysutils/splashutils/build create mode 100644 packages/sysutils/splashutils/meta create mode 100644 packages/sysutils/splashutils/patches/splashutils-1.5.4.4-fifodir.patch diff --git a/packages/sysutils/splashutils/build b/packages/sysutils/splashutils/build new file mode 100755 index 0000000000..c0df52fa2e --- /dev/null +++ b/packages/sysutils/splashutils/build @@ -0,0 +1,49 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --enable-shared \ + --disable-static \ + --disable-debug \ + --disable-static-binaries \ + --disable-deprecated \ + --disable-fbcondecor \ + --disable-helper \ + --disable-misc \ + --with-gnu-ld \ + --without-gpm \ + --without-mng \ + --with-png \ + --without-ttf \ + --without-ttf-kernel \ + --with-essential-prefix="/" \ + --with-essential-bindir="/bin" \ + --with-essential-sbindir="/sbin" \ + --with-essential-libdir="/lib" \ + --with-themedir="/etc/splash" \ + --without-klibc + +make diff --git a/packages/sysutils/splashutils/meta b/packages/sysutils/splashutils/meta new file mode 100644 index 0000000000..9438c2afb9 --- /dev/null +++ b/packages/sysutils/splashutils/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="splashutils" +PKG_VERSION="1.5.4.4" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://dev.gentoo.org/~spock/projects/fbsplash" +PKG_URL="http://dev.gentoo.org/~spock/projects/fbsplash/archive//$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="libpng libjpeg-turbo" +PKG_BUILD_DEPENDS="toolchain libpng libjpeg-turbo" +PKG_PRIORITY="optional" +PKG_SECTION="system" +PKG_SHORTDESC="splashutils:" +PKG_LONGDESC="splashutils.." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" diff --git a/packages/sysutils/splashutils/patches/splashutils-1.5.4.4-fifodir.patch b/packages/sysutils/splashutils/patches/splashutils-1.5.4.4-fifodir.patch new file mode 100644 index 0000000000..20d3990c80 --- /dev/null +++ b/packages/sysutils/splashutils/patches/splashutils-1.5.4.4-fifodir.patch @@ -0,0 +1,24 @@ +diff -Naur splashutils-1.5.4.4/src/fbsplash.h splashutils-1.5.4.4.patch/src/fbsplash.h +--- splashutils-1.5.4.4/src/fbsplash.h 2011-06-12 23:45:22.000000000 +0200 ++++ splashutils-1.5.4.4.patch/src/fbsplash.h 2012-02-16 07:54:55.028245671 +0100 +@@ -6,7 +6,7 @@ + #include + #include + +-#define FBSPLASH_DIR "//lib/splash" ++#define FBSPLASH_DIR "/run/splash" + #define FBSPLASH_CACHEDIR FBSPLASH_DIR"/cache" + #define FBSPLASH_PIDFILE FBSPLASH_CACHEDIR"/daemon.pid" + #define FBSPLASH_PROFILE FBSPLASH_CACHEDIR"/profile" +diff -Naur splashutils-1.5.4.4/src/fbsplash.h.in splashutils-1.5.4.4.patch/src/fbsplash.h.in +--- splashutils-1.5.4.4/src/fbsplash.h.in 2011-06-12 23:43:39.000000000 +0200 ++++ splashutils-1.5.4.4.patch/src/fbsplash.h.in 2012-02-16 07:54:39.069954498 +0100 +@@ -6,7 +6,7 @@ + #include + #include + +-#define FBSPLASH_DIR "@libdir@/splash" ++#define FBSPLASH_DIR "/run/splash" + #define FBSPLASH_CACHEDIR FBSPLASH_DIR"/cache" + #define FBSPLASH_PIDFILE FBSPLASH_CACHEDIR"/daemon.pid" + #define FBSPLASH_PROFILE FBSPLASH_CACHEDIR"/profile"