From 65d6d4ed402136dcb13deec64223d4d159b9ab81 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 20 Sep 2012 01:13:20 +0200 Subject: [PATCH] readline: add readline for target Signed-off-by: Stephan Raue --- packages/devel/readline/build | 40 +++++++++++++++++++ packages/devel/readline/install | 32 +++++++++++++++ packages/devel/readline/meta | 2 +- .../patches/readline-6.2-shlib_libs.patch | 36 +++++++++++++++++ 4 files changed, 109 insertions(+), 1 deletion(-) create mode 100755 packages/devel/readline/build create mode 100755 packages/devel/readline/install create mode 100644 packages/devel/readline/patches/readline-6.2-shlib_libs.patch diff --git a/packages/devel/readline/build b/packages/devel/readline/build new file mode 100755 index 0000000000..c9151252d2 --- /dev/null +++ b/packages/devel/readline/build @@ -0,0 +1,40 @@ +#!/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 +mkdir -p .build-target && cd .build-target +../configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --enable-shared \ + --disable-static \ + --without-curses \ + --without-purify + +make + +$MAKEINSTALL diff --git a/packages/devel/readline/install b/packages/devel/readline/install new file mode 100755 index 0000000000..c9aaf70f03 --- /dev/null +++ b/packages/devel/readline/install @@ -0,0 +1,32 @@ +#!/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/.build-target/shlib/libreadline.so.6.2 $INSTALL/usr/lib + ln -sf /usr/lib/libreadline.so.6.2 $INSTALL/usr/lib/libreadline.so.6 + ln -sf /usr/lib/libreadline.so.6 $INSTALL/usr/lib/libreadline.so + + cp -P $PKG_BUILD/.build-target/shlib/libhistory.so.6.2 $INSTALL/usr/lib + ln -sf /usr/lib/libhistory.so.6.2 $INSTALL/usr/lib/libhistory.so.6 + ln -sf /usr/lib/libhistory.so.6 $INSTALL/usr/lib/libhistory.so diff --git a/packages/devel/readline/meta b/packages/devel/readline/meta index ad6789657a..1ff56dfd0e 100644 --- a/packages/devel/readline/meta +++ b/packages/devel/readline/meta @@ -33,4 +33,4 @@ PKG_SHORTDESC="readline: The GNU Readline library provides a set of functions fo PKG_LONGDESC="The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in." PKG_IS_ADDON="no" -PKG_AUTORECONF="yes" +PKG_AUTORECONF="no" diff --git a/packages/devel/readline/patches/readline-6.2-shlib_libs.patch b/packages/devel/readline/patches/readline-6.2-shlib_libs.patch new file mode 100644 index 0000000000..6bc7cc2330 --- /dev/null +++ b/packages/devel/readline/patches/readline-6.2-shlib_libs.patch @@ -0,0 +1,36 @@ +diff -Naur readline-6.2-old/configure readline-6.2-new/configure +--- a/configure 2010-11-14 14:48:06.000000000 -0800 ++++ b/configure 2012-05-02 19:38:49.000000000 -0700 +@@ -10450,10 +10450,10 @@ + $as_echo_n "checking configuration for building shared libraries... " >&6; } + eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` + +-# case "$SHLIB_LIBS" in +-# *curses*|*termcap*|*termlib*) ;; +-# *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; +-# esac ++ case "$SHLIB_LIBS" in ++ *curses*|*termcap*|*termlib*) ;; ++ *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; ++ esac + + + +diff -Naur readline-6.2-old/configure.in readline-6.2-new/configure.in +--- a/configure.in 2010-11-14 14:41:48.000000000 -0800 ++++ b/configure.in 2012-05-02 19:38:41.000000000 -0700 +@@ -214,10 +214,10 @@ + AC_MSG_CHECKING(configuration for building shared libraries) + eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` + +-# case "$SHLIB_LIBS" in +-# *curses*|*termcap*|*termlib*) ;; +-# *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; +-# esac ++ case "$SHLIB_LIBS" in ++ *curses*|*termcap*|*termlib*) ;; ++ *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; ++ esac + + AC_SUBST(SHOBJ_CC) + AC_SUBST(SHOBJ_CFLAGS)