- New port: devel/critcl
The C Runtime In Tcl, CriTcl for short, is a system to build C extension packages for Tcl on the fly, from C code embedded within Tcl scripts, for all who wish to make their code go faster. WWW: http://andreas-kupries.github.io/critcl/
This commit is contained in:
parent
6a195acc43
commit
1c9e4cc4c8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332823
7 changed files with 199 additions and 0 deletions
|
@ -273,6 +273,7 @@
|
|||
SUBDIR += cproto
|
||||
SUBDIR += cpuflags
|
||||
SUBDIR += creduce
|
||||
SUBDIR += critcl
|
||||
SUBDIR += cross-binutils
|
||||
SUBDIR += cross-gcc
|
||||
SUBDIR += cross-gdb
|
||||
|
|
45
devel/critcl/Makefile
Normal file
45
devel/critcl/Makefile
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Created by: gahr@FreeBSD.org
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= critcl
|
||||
PORTVERSION= 3.1.10
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= tcltk@FreeBSD.org
|
||||
COMMENT= Compiled Runtime in Tcl
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
USES+= tcl
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= andreas-kupries
|
||||
GH_COMMIT= ea3f253
|
||||
|
||||
PLIST_SUB+= VER=${PORTVERSION}
|
||||
PORTDOCS= *
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
BUILD_DEPENDS+= dtplite:${PORTSDIR}/devel/tcllib
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|dtplite|${LOCALBASE}/bin/dtplite|g' ${WRKSRC}/build.tcl
|
||||
${REINPLACE_CMD} -e 's|4603|4746|g' ${WRKSRC}/test/cproc.test
|
||||
${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' ${WRKSRC}/lib/critcl/Config
|
||||
|
||||
do-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC} && ${TCLSH} build.tcl doc
|
||||
cd ${WRKSRC}/embedded/www && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
cd ${WRKSRC} && ${TCLSH} build.tcl install ${STAGEDIR}${PREFIX}/lib
|
||||
|
||||
regression-test:
|
||||
cd ${WRKSRC} && ${TCLSH} test/all.tcl
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/critcl/distinfo
Normal file
2
devel/critcl/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (critcl-3.1.10.tar.gz) = f8f599ce75ecbf90abfa23521f477ca206d9053eb1cfd39f5199cde4bd4613d0
|
||||
SIZE (critcl-3.1.10.tar.gz) = 1643940
|
11
devel/critcl/files/patch-build.tcl
Normal file
11
devel/critcl/files/patch-build.tcl
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- build.tcl.orig 2013-11-05 09:27:29.000000000 +0100
|
||||
+++ build.tcl 2013-11-05 09:28:22.000000000 +0100
|
||||
@@ -249,7 +249,7 @@
|
||||
set dsta [file dirname [file dirname [file normalize [info nameofexecutable]/___]]]
|
||||
} else {
|
||||
set dstl $dst
|
||||
- set dsta [file dirname [findlib $dstl]]/bin
|
||||
+ set dsta $dst/../bin
|
||||
}
|
||||
|
||||
puts {Installing into:}
|
21
devel/critcl/files/patch-lib-critcl_Config
Normal file
21
devel/critcl/files/patch-lib-critcl_Config
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- lib/critcl/Config.orig 2013-11-05 09:57:26.000000000 +0100
|
||||
+++ lib/critcl/Config 2013-11-05 09:57:54.000000000 +0100
|
||||
@@ -52,13 +52,13 @@
|
||||
# the "copy" option and then specifically setting the config bits that
|
||||
# you want to change. See win32-x86_64-cl for an example.
|
||||
|
||||
-compile gcc -c -fPIC
|
||||
-version gcc -v
|
||||
-link gcc -shared
|
||||
+compile %%CC%% -c -fPIC
|
||||
+version %%CC%% -v
|
||||
+link %%CC%% -shared
|
||||
include -I
|
||||
libinclude -L
|
||||
-preproc_define gcc -E -dM
|
||||
-preproc_enum gcc -E
|
||||
+preproc_define %%CC%% -E -dM
|
||||
+preproc_enum %%CC%% -E
|
||||
tclstubs -DUSE_TCL_STUBS
|
||||
tkstubs -DUSE_TK_STUBS
|
||||
debug_memory -DTCL_MEM_DEBUG
|
5
devel/critcl/pkg-descr
Normal file
5
devel/critcl/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
|||
The C Runtime In Tcl, CriTcl for short, is a system to build C extension
|
||||
packages for Tcl on the fly, from C code embedded within Tcl scripts,
|
||||
for all who wish to make their code go faster.
|
||||
|
||||
WWW: http://andreas-kupries.github.io/critcl/
|
114
devel/critcl/pkg-plist
Normal file
114
devel/critcl/pkg-plist
Normal file
|
@ -0,0 +1,114 @@
|
|||
bin/critcl
|
||||
lib/critcl-app%%VER%%/critcl.tcl
|
||||
lib/critcl-app%%VER%%/pkgIndex.tcl
|
||||
lib/critcl-app%%VER%%/runtime.tcl
|
||||
lib/critcl-app%%VER%%/tea/Config.in
|
||||
lib/critcl-app%%VER%%/tea/Makefile.in
|
||||
lib/critcl-app%%VER%%/tea/aclocal.m4
|
||||
lib/critcl-app%%VER%%/tea/configure.in
|
||||
lib/critcl-app%%VER%%/tea/tclconfig/README.txt
|
||||
lib/critcl-app%%VER%%/tea/tclconfig/install-sh
|
||||
lib/critcl-app%%VER%%/tea/tclconfig/tcl.m4
|
||||
lib/critcl-class1.0.6/class.h
|
||||
lib/critcl-class1.0.6/class.tcl
|
||||
lib/critcl-class1.0.6/pkgIndex.tcl
|
||||
lib/critcl-iassoc1.0.1/iassoc.h
|
||||
lib/critcl-iassoc1.0.1/iassoc.tcl
|
||||
lib/critcl-iassoc1.0.1/pkgIndex.tcl
|
||||
lib/critcl-platform/pkgIndex.tcl
|
||||
lib/critcl-platform/platform.tcl
|
||||
lib/critcl-platform/shell.tcl
|
||||
lib/critcl-util1/pkgIndex.tcl
|
||||
lib/critcl-util1/util.tcl
|
||||
lib/critcl%%VER%%/Config
|
||||
lib/critcl%%VER%%/critcl.tcl
|
||||
lib/critcl%%VER%%/critcl_c/cdata.c
|
||||
lib/critcl%%VER%%/critcl_c/header.c
|
||||
lib/critcl%%VER%%/critcl_c/pkginit.c
|
||||
lib/critcl%%VER%%/critcl_c/pkginitend.c
|
||||
lib/critcl%%VER%%/critcl_c/pkginittk.c
|
||||
lib/critcl%%VER%%/critcl_c/preload.c
|
||||
lib/critcl%%VER%%/critcl_c/stubs.c
|
||||
lib/critcl%%VER%%/critcl_c/stubs_e.c
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/X11/X.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/X11/Xatom.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/X11/Xfuncproto.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/X11/Xlib.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/X11/Xutil.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/X11/cursorfont.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/X11/keysym.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/X11/keysymdef.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/X11/tkIntXlibDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/tcl.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/tclDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/tclPlatDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/tk.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/tkDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.4/tkPlatDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/X.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/Xatom.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/Xfuncproto.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/Xlib.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/Xutil.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/cursorfont.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/keysym.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/keysymdef.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/tk.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/X11/tkIntXlibDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/tcl.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/tclDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/tclPlatDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/tk.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/tkDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.5/tkPlatDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/X.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/Xatom.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/Xfuncproto.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/Xlib.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/Xutil.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/cursorfont.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/keysym.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/keysymdef.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/tk.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/X11/tkIntXlibDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/tcl.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/tclDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/tclPlatDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/tk.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/tkDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tcl8.6/tkPlatDecls.h
|
||||
lib/critcl%%VER%%/critcl_c/tclAppInit.c
|
||||
lib/critcl%%VER%%/critcl_c/tkstubs.c
|
||||
lib/critcl%%VER%%/license.terms
|
||||
lib/critcl%%VER%%/pkgIndex.tcl
|
||||
lib/stubs/container.tcl
|
||||
lib/stubs/gen_decl.tcl
|
||||
lib/stubs/gen_header.tcl
|
||||
lib/stubs/gen_init.tcl
|
||||
lib/stubs/gen_lib.tcl
|
||||
lib/stubs/gen_macro.tcl
|
||||
lib/stubs/gen_slot.tcl
|
||||
lib/stubs/genframe.tcl
|
||||
lib/stubs/pkgIndex.tcl
|
||||
lib/stubs/reader.tcl
|
||||
lib/stubs/writer.tcl
|
||||
lib/util84/dict.tcl
|
||||
lib/util84/lassign.tcl
|
||||
lib/util84/pkgIndex.tcl
|
||||
@dirrm lib/util84
|
||||
@dirrm lib/stubs
|
||||
@dirrm lib/critcl%%VER%%/critcl_c/tcl8.6/X11
|
||||
@dirrm lib/critcl%%VER%%/critcl_c/tcl8.6
|
||||
@dirrm lib/critcl%%VER%%/critcl_c/tcl8.5/X11
|
||||
@dirrm lib/critcl%%VER%%/critcl_c/tcl8.5
|
||||
@dirrm lib/critcl%%VER%%/critcl_c/tcl8.4/X11
|
||||
@dirrm lib/critcl%%VER%%/critcl_c/tcl8.4
|
||||
@dirrm lib/critcl%%VER%%/critcl_c
|
||||
@dirrm lib/critcl%%VER%%
|
||||
@dirrm lib/critcl-util1
|
||||
@dirrm lib/critcl-platform
|
||||
@dirrm lib/critcl-iassoc1.0.1
|
||||
@dirrm lib/critcl-class1.0.6
|
||||
@dirrm lib/critcl-app%%VER%%/tea/tclconfig
|
||||
@dirrm lib/critcl-app%%VER%%/tea
|
||||
@dirrm lib/critcl-app%%VER%%
|
Loading…
Reference in a new issue