mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
readline: add readline for target
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
5c8a9beaa6
commit
65d6d4ed40
40
packages/devel/readline/build
Executable file
40
packages/devel/readline/build
Executable file
@ -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
|
32
packages/devel/readline/install
Executable file
32
packages/devel/readline/install
Executable file
@ -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
|
@ -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"
|
||||
|
@ -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)
|
Loading…
x
Reference in New Issue
Block a user