Objective TCL, from FreeBSD
This commit is contained in:
parent
899c32d057
commit
dc93323fd4
22
lang/otcl/Makefile
Normal file
22
lang/otcl/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
#
|
||||
# $FreeBSD: ports/lang/otcl/Makefile,v 1.6 1999/11/28 18:31:28 steve Exp $
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2000/01/06 02:18:23 angelos Exp $
|
||||
#
|
||||
|
||||
DISTNAME= otcl-1.0a4
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://www-mash.cs.berkeley.edu/dist/
|
||||
|
||||
MAINTAINER= angelos@openbsd.org
|
||||
|
||||
LIB_DEPENDS= tk82.1:${PORTSDIR}/x11/tk82
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --includedir=${PREFIX}/include/tcl8.2/generic \
|
||||
--with-tcl-ver=8.2
|
||||
|
||||
post-install:
|
||||
${LN} -sf libotcl.so.1 ${PREFIX}/lib/libotcl.so
|
||||
${SETENV} ${LDCONFIG} -m ${PREFIX}/lib
|
||||
|
||||
.include <bsd.port.mk>
|
3
lang/otcl/files/md5
Normal file
3
lang/otcl/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (otcl-1.0a4.tar.gz) = 1aafd63973857991b90d08b9dcf29e03
|
||||
RMD160 (otcl-1.0a4.tar.gz) = 7db17242007e49e5c800cb407403e58019dc306b
|
||||
SHA1 (otcl-1.0a4.tar.gz) = bd325ec1dbd7ba01b965e9b5775633f902acc20e
|
22
lang/otcl/patches/patch-aa
Normal file
22
lang/otcl/patches/patch-aa
Normal file
@ -0,0 +1,22 @@
|
||||
--- configure.orig Mon Feb 22 17:18:58 1999
|
||||
+++ configure Wed Jan 5 19:57:45 2000
|
||||
@@ -2602,16 +2602,16 @@
|
||||
DL_LIBS="-ldl"
|
||||
SHLD_FLAGS="-Wl,-Bexport"
|
||||
;;
|
||||
- NetBSD-*|FreeBSD-*)
|
||||
+ NetBSD-*|FreeBSD-*|OpenBSD-*)
|
||||
# Not available on all versions: check for include file.
|
||||
if test -e /usr/include/dlfcn.h; then
|
||||
SHLIB_CFLAGS="-fpic"
|
||||
SHLIB_LD="ld -Bshareable"
|
||||
- SHLIB_SUFFIX=".so"
|
||||
+ SHLIB_SUFFIX=".so.1"
|
||||
DL_LIBS=""
|
||||
SHLD_FLAGS=""
|
||||
else
|
||||
- echo "NetBSD/FreeBSD with no support for dynamic loading"
|
||||
+ echo "NetBSD/FreeBSD/OpenBSD with no support for dynamic loading"
|
||||
echo " or shared libraries on this system."
|
||||
SHLIB_CFLAGS=""
|
||||
SHLIB_LD=": Skipping shared libaries"
|
34
lang/otcl/patches/patch-ab
Normal file
34
lang/otcl/patches/patch-ab
Normal file
@ -0,0 +1,34 @@
|
||||
--- otcl.c.orig Fri Feb 19 14:33:36 1999
|
||||
+++ otcl.c Wed Nov 3 15:31:47 1999
|
||||
@@ -762,13 +762,7 @@
|
||||
for (; args!=0 && i<3; args = args->nextPtr, i++) ;
|
||||
Tcl_ResetResult(in);
|
||||
while (args != 0) {
|
||||
-#if TCL_MAJOR_VERSION >= 8
|
||||
-#if TCL_RELEASE_SERIAL >= 3
|
||||
if (TclIsVarArgument(args))
|
||||
-#else
|
||||
- if (args->isArg)
|
||||
-#endif
|
||||
-#endif
|
||||
Tcl_AppendElement(in, args->name);
|
||||
args = args->nextPtr;
|
||||
}
|
||||
@@ -802,7 +796,7 @@
|
||||
if (ap->defValuePtr != 0) {
|
||||
if (Tcl_SetVar(in,
|
||||
var,
|
||||
- TclGetStringFromObj(ap->defValuePtr,
|
||||
+ Tcl_GetStringFromObj(ap->defValuePtr,
|
||||
(int *) NULL),
|
||||
0) == NULL) {
|
||||
#endif
|
||||
@@ -840,7 +834,7 @@
|
||||
Tcl_AppendResult(in, proc->command, 0);
|
||||
#else
|
||||
Tcl_AppendResult(in,
|
||||
- TclGetStringFromObj(proc->bodyPtr, (int *)NULL),
|
||||
+ Tcl_GetStringFromObj(proc->bodyPtr, (int *)NULL),
|
||||
0);
|
||||
#endif
|
||||
return TCL_OK;
|
12
lang/otcl/patches/patch-ac
Normal file
12
lang/otcl/patches/patch-ac
Normal file
@ -0,0 +1,12 @@
|
||||
--- config.guess.orig Wed Jan 5 21:12:10 2000
|
||||
+++ config.guess Wed Jan 5 21:12:31 2000
|
||||
@@ -290,6 +290,9 @@
|
||||
*:NetBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||
exit 0 ;;
|
||||
+ *:OpenBSD:*:*)
|
||||
+ echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||
+ exit 0 ;;
|
||||
*:GNU:*:*)
|
||||
echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
||||
exit 0 ;;
|
11
lang/otcl/patches/patch-ad
Normal file
11
lang/otcl/patches/patch-ad
Normal file
@ -0,0 +1,11 @@
|
||||
--- config.sub.orig Fri Feb 19 15:33:35 1999
|
||||
+++ config.sub Wed Jan 5 21:16:02 2000
|
||||
@@ -609,7 +609,7 @@
|
||||
| -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
|
||||
| -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
|
||||
| -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
|
||||
- | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
|
||||
+ | -hiux* | -386bsd* | -netbsd* | -freebsd* | -openbsd* | -riscix* \
|
||||
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
|
||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta | -udi | -eabi)
|
||||
;;
|
1
lang/otcl/pkg/COMMENT
Normal file
1
lang/otcl/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
MIT Object Tcl
|
24
lang/otcl/pkg/DESCR
Normal file
24
lang/otcl/pkg/DESCR
Normal file
@ -0,0 +1,24 @@
|
||||
From the README:
|
||||
|
||||
OTcl, short for MIT Object Tcl, is an extension to Tcl/Tk for
|
||||
object-oriented programming. It shouldn't be confused with the IXI
|
||||
Object Tcl extension by Dean Sheenan. (Sorry, but we both like the
|
||||
name and have been using it for a while.)
|
||||
|
||||
Some of OTcl's features as compared to alternatives are:
|
||||
* designed to be dynamically extensible, like Tcl, from the ground
|
||||
up
|
||||
* builds on Tcl syntax and concepts rather than importing another
|
||||
language
|
||||
* compact yet powerful object programming system (draws on CLOS,
|
||||
Smalltalk, and Self)
|
||||
* fairly portable implementation (2000 lines of C, without core
|
||||
hacks)
|
||||
|
||||
OTcl was presented at the Tcl/Tk Workshop '95. It constitutes a
|
||||
standalone release of a system that has been in use, embedded in the
|
||||
VuSystem, for two years. We made the release public (with free use,
|
||||
distribution and modification under the MIT license) to meet the
|
||||
demand for object-oriented programming in Tcl.
|
||||
|
||||
-Oscar <obonilla@fisicc-ufm.edu>
|
8
lang/otcl/pkg/PLIST
Normal file
8
lang/otcl/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
bin/otclsh
|
||||
bin/owish
|
||||
include/otcl.h
|
||||
lib/libotcl.a
|
||||
lib/libotcl.so.1
|
||||
lib/libotcl.so
|
||||
@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
|
||||
@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
|
Loading…
Reference in New Issue
Block a user