summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorseb <seb>2002-08-28 09:57:34 +0000
committerseb <seb>2002-08-28 09:57:34 +0000
commit6284d22fa09fdb5b36073e1a3c72bf9cff9b0186 (patch)
treefeef4e32d16848e875b98a455456615b2c888d14 /lang
parentd510c3f67f82c1349b2cd31b97a48e81ff5f6729 (diff)
downloadpkgsrc-6284d22fa09fdb5b36073e1a3c72bf9cff9b0186.tar.gz
Reimport lang/otcl as lang/tcl-otcl to follow established practices.
Do various otcl -> tcl[-/]otcl substitutions along the way. Sorry for the inconvenience.
Diffstat (limited to 'lang')
-rw-r--r--lang/tcl-otcl/DESCR13
-rw-r--r--lang/tcl-otcl/Makefile39
-rw-r--r--lang/tcl-otcl/PLIST18
-rw-r--r--lang/tcl-otcl/buildlink2.mk21
-rw-r--r--lang/tcl-otcl/distinfo5
-rw-r--r--lang/tcl-otcl/patches/patch-aa115
6 files changed, 211 insertions, 0 deletions
diff --git a/lang/tcl-otcl/DESCR b/lang/tcl-otcl/DESCR
new file mode 100644
index 00000000000..1b611c9d393
--- /dev/null
+++ b/lang/tcl-otcl/DESCR
@@ -0,0 +1,13 @@
+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.
+
+ 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)
diff --git a/lang/tcl-otcl/Makefile b/lang/tcl-otcl/Makefile
new file mode 100644
index 00000000000..3e12203055e
--- /dev/null
+++ b/lang/tcl-otcl/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/08/28 09:57:35 seb Exp $
+
+DISTNAME= otcl-1.0a8
+PKGNAME= tcl-${DISTNAME:S/a/rc/}
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=otcl-tclcl/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://otcl-tclcl.sourceforge.net/otcl/
+COMMENT= MIT Object Tcl
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_BUILDLINK2= yes
+USE_X11= yes
+
+CONFIGURE_ARGS+= --with-tcl=${BUILDLINK_PREFIX.tcl}
+CONFIGURE_ARGS+= --with-tk=${BUILDLINK_PREFIX.tk}
+
+CPPFLAGS+= -I${BUILDLINK_PREFIX.tcl}/include/tcl/generic
+
+HTMLDOCS= CHANGES.html autoload.html capi.html class.html object.html \
+ tutorial.html
+DOCS= otcl-paper.ps.gz
+HTMLDOCDIR= ${PREFIX}/share/doc/html/tcl/otcl
+DOCDIR= ${PREFIX}/share/doc/tcl/otcl
+
+post-install:
+ ${INSTALL_DATA_DIR} ${HTMLDOCDIR}
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+.for _file_ in ${HTMLDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${_file_} ${HTMLDOCDIR}
+.endfor
+.for _file_ in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${_file_} ${DOCDIR}
+.endfor
+
+.include "../../x11/tk/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/tcl-otcl/PLIST b/lang/tcl-otcl/PLIST
new file mode 100644
index 00000000000..c8409d2e607
--- /dev/null
+++ b/lang/tcl-otcl/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/08/28 09:57:34 seb Exp $
+bin/otclsh
+bin/owish
+include/otcl.h
+lib/libotcl.a
+lib/libotcl.la
+lib/libotcl.so
+lib/libotcl.so.0
+lib/libotcl.so.0.0
+share/doc/html/tcl/otcl/CHANGES.html
+share/doc/html/tcl/otcl/autoload.html
+share/doc/html/tcl/otcl/capi.html
+share/doc/html/tcl/otcl/class.html
+share/doc/html/tcl/otcl/object.html
+share/doc/html/tcl/otcl/tutorial.html
+share/doc/tcl/otcl/otcl-paper.ps.gz
+@dirrm share/doc/tcl/otcl
+@dirrm share/doc/html/tcl/otcl
diff --git a/lang/tcl-otcl/buildlink2.mk b/lang/tcl-otcl/buildlink2.mk
new file mode 100644
index 00000000000..5ddd2dc3e0c
--- /dev/null
+++ b/lang/tcl-otcl/buildlink2.mk
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2002/08/28 09:57:34 seb Exp $
+
+.if !defined(TCL_OTCL_BUILDLINK2_MK)
+TCL_OTCL_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= tcl-otcl
+BUILDLINK_DEPENDS.tcl-otcl?= tcl-otcl>=1.0rc8
+BUILDLINK_PKGSRCDIR.tcl-otcl?= ../../lang/tcl-otcl
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.tcl-otcl=tcl-otcl
+BUILDLINK_PREFIX.tcl-otcl_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.tcl-otcl+= include/otcl.h
+BUILDLINK_FILES.tcl-otcl+= lib/libotcl.*
+
+.include "../../x11/tk/buildlink2.mk"
+
+BUILDLINK_TARGETS+= tcl-otcl-buildlink
+
+tcl-otcl-buildlink: _BUILDLINK_USE
+
+.endif # TCL_OTCL_BUILDLINK2_MK
diff --git a/lang/tcl-otcl/distinfo b/lang/tcl-otcl/distinfo
new file mode 100644
index 00000000000..0c676ca4e6e
--- /dev/null
+++ b/lang/tcl-otcl/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/08/28 09:57:34 seb Exp $
+
+SHA1 (otcl-1.0a8.tar.gz) = 84cf8ec97a79230f5de6ae65ccee3ff788c7c20c
+Size (otcl-1.0a8.tar.gz) = 300607 bytes
+SHA1 (patch-aa) = aa5e68245897764a12c098a73f8e2f06f5672474
diff --git a/lang/tcl-otcl/patches/patch-aa b/lang/tcl-otcl/patches/patch-aa
new file mode 100644
index 00000000000..4111c77ea0a
--- /dev/null
+++ b/lang/tcl-otcl/patches/patch-aa
@@ -0,0 +1,115 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/08/28 09:57:35 seb Exp $
+
+--- Makefile.in.orig Thu Nov 2 02:45:59 2000
++++ Makefile.in
+@@ -5,6 +5,7 @@
+ #
+
+ CC= @CC@
++CPPFLAGS= @CPPFLAGS@
+ CFLAGS= @CFLAGS@
+ RANLIB= @RANLIB@
+ INSTALL= @INSTALL@
+@@ -28,7 +29,7 @@
+ INST_OTCLSH= @prefix@/bin
+ INST_OWISH= @prefix@/bin
+ INST_OLIB= @prefix@/lib
+-INST_OLIBSH= @INST_OLIBSH@
++INST_OLIBSH= @prefix@/lib
+ INST_OINC= @prefix@/include
+
+
+@@ -40,7 +41,6 @@
+ -I. \
+ @V_INCLUDES@ \
+ @V_INCLUDE_X11@ \
+- -I@includedir@ \
+ @V_INCLUDE@
+
+ DEFINES = \
+@@ -58,9 +58,9 @@
+ CFILES = otcl.c otclAppInit.c otkAppInit.c
+
+ .c.o:
+- $(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $<
++ ${LIBTOOL} --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFINES) $(INCLUDES) $<
+
+-all: libotcl.a libotcl$(SHLIB_SUFFIX) otclsh owish
++all: libotcl.a otclsh owish
+
+ #
+ # compile an appinit with tcl and otcl and link against
+@@ -69,8 +69,8 @@
+
+ otclsh: otclAppInit.c libotcl.a
+ rm -f libotcl$(SHLIB_SUFFIX)
+- $(CC) -o otclsh $(SHLD_FLAGS) $(CFLAGS) $(INCLUDES) otclAppInit.c \
+- $(OTCLLIB) $(LIB)
++ ${LIBTOOL} --mode=link $(CC) -o otclsh $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(LDFLAGS) otclAppInit.c \
++ ./libotcl.la $(LIB)
+
+ #
+ # compile an appinit with tcl/tk and otcl and link against
+@@ -79,8 +79,8 @@
+
+ owish: otkAppInit.c libotcl.a
+ rm -f libotcl$(SHLIB_SUFFIX)
+- $(CC) -o owish $(SHLD_FLAGS) $(CFLAGS) $(INCLUDES) otkAppInit.c \
+- $(OTCLLIB) $(LIB)
++ ${LIBTOOL} --mode=link $(CC) -o owish $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(LDFLAGS) otkAppInit.c \
++ ./libotcl.la $(LIB)
+
+ #
+ # compile otcl.c and link it into a library archive
+@@ -89,36 +89,25 @@
+
+ libotcl.a: otcl.c
+ rm -f libotcl.a otcl.o
+- $(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) otcl.c
+- ar cq libotcl.a otcl.o
+- $(RANLIB) libotcl.a
+-
+-#
+-# compile otcl.c and link it into a shared object
+-# INCLUDES give a path to tclInt.h (plus tk and X11)
+-#
+-
+-libotcl$(SHLIB_SUFFIX): otcl.c
+- rm -f libotcl$(SHLIB_SUFFIX) otcl.o so_locations
+- $(CC) -c $(CFLAGS) $(DEFINES) $(SHLIB_CFLAGS) $(INCLUDES) otcl.c
+- $(SHLIB_LD) -o libotcl$(SHLIB_SUFFIX) otcl.o
++ ${LIBTOOL} --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFINES) $(INCLUDES) otcl.c
++ ${LIBTOOL} --mode=link ${CC} -o ${.TARGET:.a=.la} otcl.lo -rpath ${PREFIX}/lib -version-info 0:0
+
+ test: otclsh owish
+ ./otclsh lib/test.tcl
+ ./owish lib/test.tcl
+
+-install: owish otclsh libotcl.a libotcl$(SHLIB_SUFFIX) otcl.h
++install: owish otclsh libotcl.a otcl.h
+ $(INSTALL) owish $(INST_OWISH)
+ $(INSTALL) otclsh $(INST_OTCLSH)
+- $(INSTALL) libotcl.a $(INST_OLIB)
+- $(INSTALL) libotcl$(SHLIB_SUFFIX) $(INST_OLIBSH)
++ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libotcl.la ${PREFIX}/lib
+ $(INSTALL) otcl.h $(INST_OINC)
+
+ clean:
+- rm -f owish otclsh libotcl.a libotcl$(SHLIB_SUFFIX) \
++ rm -f owish otclsh libotcl.la \
+ otcl.o otkAppInit.o otclAppInit.o \
+ config.status config.log config.cache \
+ core so_locations *.core Makefile
++ rm -rf .libs
+
+ # To be compatible with ns/nam
+ distclean: clean
+@@ -146,7 +135,7 @@
+
+ depend: $(CFILES)
+ @echo Making dependencies for $(srcdir){$(CFILES)}
+- @$(CC) -MM $(CFLAGS) $(INCLUDES) $(DEFINES) $(CFILES) > makedep
++ @$(CC) -MM $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(DEFINES) $(CFILES) > makedep
+ @echo '/^# DO NOT DELETE THIS LINE/+1,$$d' > eddep
+ @echo '$$r makedep' >> eddep
+ @echo 'w' >>eddep