Imported sources from subversion.
This commit is contained in:
66
packages/tclcl/default.bash
Normal file
66
packages/tclcl/default.bash
Normal file
@@ -0,0 +1,66 @@
|
||||
version=\
|
||||
(
|
||||
"1.19"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://downloads.sourceforge.net/otcl-tclcl/tclcl-src-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"023aefbd2e6d99ad96eb2cbe8acdbf4a"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
"Ricardo Martins <rasm@fe.up.pt>"
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
prefix="${cfg_dir_toolchain_sysroot}/usr"
|
||||
|
||||
sed "s%/usr/unsupported%${prefix}%g" "../otcl-$version/conf/configure.in.x11" -i
|
||||
|
||||
export AR="$cmd_target_ar"
|
||||
|
||||
cd ../tclcl-$version && autoconf && cd - &&
|
||||
../tclcl-$version/configure \
|
||||
--prefix=$prefix \
|
||||
--target=$cfg_target_canonical \
|
||||
--host=$cfg_target_canonical \
|
||||
--build=$cfg_host_canonical \
|
||||
--with-tcl=${cfg_dir_toolchain_sysroot}/usr \
|
||||
--with-tk=${cfg_dir_toolchain_sysroot}/usr \
|
||||
--with-otcl=${cfg_dir_toolchain_sysroot}/usr
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
sed "s#\$(TCL2C) et#qemu-arm -L ${cfg_dir_rootfs} ${cfg_dir_rootfs}/lib/ld-linux.so.3 ./tcl2c++ et#g" "../tclcl-$version/Makefile" -i
|
||||
|
||||
$cmd_make \
|
||||
SHLIB_LD="$cmd_target_ld -shared"
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make \
|
||||
DESTDIR="${cfg_dir_toolchain_sysroot}/usr" \
|
||||
install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
cp ${cfg_dir_toolchain_sysroot}/usr/bin/tcl2c++ ${cfg_dir_rootfs}/usr/bin/
|
||||
}
|
25
packages/tclcl/patches/makefile.patch
Normal file
25
packages/tclcl/patches/makefile.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
--- a/Makefile.in 2007-03-10 23:18:00.000000000 +0000
|
||||
+++ b/Makefile.in 2011-08-31 05:11:43.957621032 +0100
|
||||
@@ -44,6 +44,7 @@
|
||||
TCLSH = @V_TCLSH@
|
||||
TCL2C = ./tcl2c++
|
||||
AR = ar rc $(BLANK)
|
||||
+DESTDIR = @prefix@
|
||||
|
||||
RANLIB = @RANLIB@
|
||||
INSTALL = @INSTALL@
|
||||
@@ -186,10 +186,10 @@
|
||||
$(TCL2C) et_console $(CONSOLE_FILES) > embedded-console.cc
|
||||
|
||||
install: force
|
||||
- $(INSTALL) -m 644 *.h @prefix@/include
|
||||
- $(INSTALL) tcl2c++ @prefix@/bin
|
||||
- $(INSTALL) $(LIB_TCLCL) @prefix@/lib
|
||||
- $(RANLIB) @prefix@/lib/$(LIB_TCLCL)
|
||||
+ $(INSTALL) -m 644 *.h $(DESTDIR)/include
|
||||
+ $(INSTALL) tcl2c++ $(DESTDIR)/bin
|
||||
+ $(INSTALL) $(LIB_TCLCL) $(DESTDIR)/lib
|
||||
+ $(RANLIB) $(DESTDIR)/lib/$(LIB_TCLCL)
|
||||
|
||||
# libTcl is no longer installed as of 13-Nov-99
|
||||
# -test -f @prefix@/lib/libTcl.a && rm -f @prefix@/lib/libTcl.a || true
|
Reference in New Issue
Block a user