termcap: added host rules.

This commit is contained in:
Ricardo Martins 2014-06-28 13:28:17 +01:00
parent 82e1ada242
commit f065b339fc
3 changed files with 35 additions and 15 deletions

14
rules/termcap/common.bash Normal file
View File

@ -0,0 +1,14 @@
version=\
(
'1.3.1'
)
url=\
(
"ftp://ftp.gnu.org/gnu/termcap/termcap-$version.tar.gz"
)
md5=\
(
'ffe6f86e63a3a29fa53ac645faaabdfa'
)

View File

@ -1,17 +1,4 @@
version=\ source "$pkg_common"
(
'1.3.1'
)
url=\
(
"ftp://ftp.gnu.org/gnu/termcap/termcap-$version.tar.gz"
)
md5=\
(
'ffe6f86e63a3a29fa53ac645faaabdfa'
)
configure() configure()
{ {
@ -35,7 +22,7 @@ host_install()
target_install() target_install()
{ {
# Libs: # Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libtermcap*; do for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libtermcap*; do
if [ -L "$f" ]; then if [ -L "$f" ]; then
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib" $cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"

19
rules/termcap/host.bash Normal file
View File

@ -0,0 +1,19 @@
source "$pkg_common"
configure()
{
./configure \
--prefix="$cfg_dir_toolchain" \
--enable-shared \
--disable-nls
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}