mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Convert tcl to working recipe
This commit is contained in:
@@ -1,31 +1,80 @@
|
||||
DESCRIPTION="Tcl (Tool Command Language) is a very powerful but easy to learn dynamic programming language, suitable for a very wide range of uses."
|
||||
SUMMARY="Tcl (Tool Command Language) is a very powerful but easy to learn dynamic programming language."
|
||||
DESCRIPTION="
|
||||
Tcl (Tool Command Language) is a very powerful but easy to learn
|
||||
dynamic programming language, suitable for a very wide range of uses,
|
||||
including web and desktop applications, networking, administration,
|
||||
testing and many more. Open source and business-friendly, Tcl is a
|
||||
mature yet evolving language that is truly cross platform, easily
|
||||
deployed and highly extensible."
|
||||
|
||||
HOMEPAGE="http://www.tcl.tk"
|
||||
SRC_URI="http://sourceforge.net/projects/tcl/files/Tcl/8.5.9/tcl8.5.9-src.tar.gz/download"
|
||||
SRC_URI="http://sourceforge.net/projects/tcl/files/Tcl/8.5.9/tcl8.5.9-src.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
CHECKSUM_MD5="8512d8db3233041dd68a81476906012a"
|
||||
LICENSE="BSD (2-clause)"
|
||||
COPYRIGHT="Regents of the University of California, Sun Microsystems, Inc., Scriptics Corporation, ActiveState Corporation and other parties"
|
||||
SOURCE_DIR="tcl8.5.9"
|
||||
|
||||
PATCHES="tcl-8.5.9.patch"
|
||||
|
||||
PROVIDES="
|
||||
tcl = $portVersion compat >= 8.5
|
||||
cmd:tclsh = $portVersion compat >= 8.5
|
||||
cmd:tclsh8.5 = $portVersion compat >= 8.5
|
||||
lib:libtcl8.5 = $portVersion compat >= 8.5
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:autoconf
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:find
|
||||
cmd:sed
|
||||
cmd:grep
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd tcl8.5.9/unix
|
||||
cd unix
|
||||
autoconf -f
|
||||
./configure --prefix=$(finddir B_COMMON_DIRECTORY) \
|
||||
runConfigure ./configure \
|
||||
--enable-threads --enable-man-symlinks
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd tcl8.5.9/unix
|
||||
cd unix
|
||||
make install
|
||||
ln -s tclsh8.5 "$(finddir B_COMMON_BIN_DIRECTORY)/tclsh"
|
||||
|
||||
ln -s tclsh8.5 "${binDir}/tclsh"
|
||||
|
||||
prepareInstalledDevelLibs libtclstub8.5
|
||||
packageEntries devel $developDir
|
||||
packageEntries devel ${libDir}/tclConfig.sh
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd tcl8.5.9/unix
|
||||
cd unix
|
||||
make test
|
||||
}
|
||||
|
||||
LICENSE="BSD (2-clause)"
|
||||
#COPYRIGHT=""
|
||||
PROVIDES_devel="
|
||||
tcl_devel = $portVersion
|
||||
devel:libtclstub8.5 = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
tcl == $portVersion
|
||||
"
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
cd tcl8.6b1/pkgs/tdbc1.0b1
|
||||
autoconf
|
||||
cd ../../unix
|
||||
autoconf
|
||||
mkdir build && cd build
|
||||
../configure --prefix=`finddir B_COMMON_DIRECTORY` --enable-man-symlinks
|
||||
make
|
||||
@@ -1,2 +0,0 @@
|
||||
cd tcl8.6b1/unix/build
|
||||
make install
|
||||
@@ -1,99 +0,0 @@
|
||||
diff -Naur tcl8.6b1/generic/tclPosixStr.c tcl8.6b1-haiku/generic/tclPosixStr.c
|
||||
--- tcl8.6b1/generic/tclPosixStr.c 2008-04-28 00:21:32.028049408 +0200
|
||||
+++ tcl8.6b1-haiku/generic/tclPosixStr.c 2011-06-11 21:57:53.249036800 +0200
|
||||
@@ -941,7 +941,9 @@
|
||||
case SIGALRM: return "SIGALRM";
|
||||
#endif
|
||||
#ifdef SIGBUS
|
||||
- case SIGBUS: return "SIGBUS";
|
||||
+# if !defined(SIGSEGV) || (SIGBUS != SIGSEGV)
|
||||
+ case SIGBUS: return "SIGBUS";
|
||||
+# endif
|
||||
#endif
|
||||
#ifdef SIGCHLD
|
||||
case SIGCHLD: return "SIGCHLD";
|
||||
@@ -1072,7 +1074,9 @@
|
||||
case SIGALRM: return "alarm clock";
|
||||
#endif
|
||||
#ifdef SIGBUS
|
||||
- case SIGBUS: return "bus error";
|
||||
+# if !defined(SIGSEGV) || (SIGBUS != SIGSEGV)
|
||||
+ case SIGBUS: return "bus error";
|
||||
+# endif
|
||||
#endif
|
||||
#ifdef SIGCHLD
|
||||
case SIGCHLD: return "child status changed";
|
||||
diff -Naur tcl8.6b1/pkgs/tdbc1.0b1/tclconfig/tcl.m4 tcl8.6b1-haiku/pkgs/tdbc1.0b1/tclconfig/tcl.m4
|
||||
--- tcl8.6b1/pkgs/tdbc1.0b1/tclconfig/tcl.m4 2008-12-22 18:45:06.004456448 +0100
|
||||
+++ tcl8.6b1-haiku/pkgs/tdbc1.0b1/tclconfig/tcl.m4 2011-06-11 21:58:19.403177472 +0200
|
||||
@@ -761,8 +761,15 @@
|
||||
# The space is needed
|
||||
THREADS_LIBS=" -pthread"
|
||||
else
|
||||
- TCL_THREADS=0
|
||||
- AC_MSG_WARN([Do not know how to find pthread lib on your system - thread support disabled])
|
||||
+ # Haiku
|
||||
+ AC_CHECK_LIB(root,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
|
||||
+ if test "$tcl_ok" = "yes"; then
|
||||
+ # The space is needed
|
||||
+ THREADS_LIBS=" -lroot"
|
||||
+ else
|
||||
+ TCL_THREADS=0
|
||||
+ AC_MSG_WARN([Do not know how to find pthread lib on your system - thread support disabled])
|
||||
+ fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -1459,6 +1466,15 @@
|
||||
CC_SEARCH_FLAGS=""
|
||||
LD_SEARCH_FLAGS=""
|
||||
;;
|
||||
+ Haiku*)
|
||||
+ SHLIB_CFLAGS="-fPIC"
|
||||
+ SHLIB_LD='${CC} -nostart'
|
||||
+ SHLIB_LD_LIBS='${LIBS}'
|
||||
+ SHLIB_SUFFIX=".so"
|
||||
+ DL_OBJS="tclLoadDl.o"
|
||||
+ DL_LIBS="-lroot"
|
||||
+ LIBS="$LIBS -lnetwork"
|
||||
+ ;;
|
||||
HP-UX-*.11.*)
|
||||
# Use updated header definitions where possible
|
||||
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Do we want to use the XOPEN network library?])
|
||||
diff -Naur tcl8.6b1/unix/tcl.m4 tcl8.6b1-haiku/unix/tcl.m4
|
||||
--- tcl8.6b1/unix/tcl.m4 2008-12-22 18:45:06.034603008 +0100
|
||||
+++ tcl8.6b1-haiku/unix/tcl.m4 2011-06-11 22:04:12.228327424 +0200
|
||||
@@ -667,8 +667,15 @@
|
||||
# The space is needed
|
||||
THREADS_LIBS=" -pthread"
|
||||
else
|
||||
- TCL_THREADS=0
|
||||
- AC_MSG_WARN([Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...])
|
||||
+ # Haiku
|
||||
+ AC_CHECK_LIB(root,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
|
||||
+ if test "$tcl_ok" = "yes"; then
|
||||
+ # The space is needed
|
||||
+ THREADS_LIBS=" -lroot"
|
||||
+ else
|
||||
+ TCL_THREADS=0
|
||||
+ AC_MSG_WARN([Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...])
|
||||
+ fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -1252,6 +1259,15 @@
|
||||
CC_SEARCH_FLAGS=""
|
||||
LD_SEARCH_FLAGS=""
|
||||
;;
|
||||
+ Haiku*)
|
||||
+ SHLIB_CFLAGS="-fPIC"
|
||||
+ SHLIB_LD='${CC} -nostart'
|
||||
+ SHLIB_LD_LIBS='${LIBS}'
|
||||
+ SHLIB_SUFFIX=".so"
|
||||
+ DL_OBJS="tclLoadDl.o"
|
||||
+ DL_LIBS="-lroot"
|
||||
+ LIBS="$LIBS -lnetwork"
|
||||
+ ;;
|
||||
HP-UX-*.11.*)
|
||||
# Use updated header definitions where possible
|
||||
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Do we want to use the XOPEN network library?])
|
||||
@@ -1,2 +0,0 @@
|
||||
cd tcl8.6b1/unix/build
|
||||
make test
|
||||
Reference in New Issue
Block a user