Duktape is an embeddable Javascript engine, with a focus on portability and
compact footprint. Duktape is easy to integrate into a C/C++ project: add duktape.c and duktape.h to your build, and use the Duktape API to call Ecmascript functions from C code and vice versa. Main features: * Embeddable, portable, compact; about 210kB code, 80kB memory, 40kLoC source (excluding comments etc) * Ecmascript E5/E5.1 compliant, some features borrowed from E6 draft * Built-in regular expression engine * Built-in Unicode support * Minimal platform dependencies * Combined reference counting and mark-and-sweep garbage collection with finalization * Custom features like coroutines, built-in logging framework, and built-in CommonJS-based module loading framework * Property virtualization using a subset of Ecmascript E6 Proxy object * Liberal license (MIT)
This commit is contained in:
parent
b7e2899d01
commit
4c5a127774
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373582
@ -49,6 +49,7 @@
|
||||
SUBDIR += dlv
|
||||
SUBDIR += dmd1
|
||||
SUBDIR += dmd2
|
||||
SUBDIR += duktape
|
||||
SUBDIR += ecl
|
||||
SUBDIR += elan
|
||||
SUBDIR += elixir
|
||||
|
30
lang/duktape/Makefile
Normal file
30
lang/duktape/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= duktape
|
||||
PORTVERSION= 1.0.2
|
||||
CATEGORIES= lang devel
|
||||
MASTER_SITES= http://duktape.org/
|
||||
|
||||
MAINTAINER= bapt@FreeBSD.org
|
||||
COMMENT= Embeddable Javascript engine
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
||||
|
||||
USES= readline tar:xz
|
||||
|
||||
MAKEFILE= Makefile.cmdline
|
||||
ALL_TARGET= #
|
||||
|
||||
PLIST_FILES= bin/duk
|
||||
|
||||
# for readline
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -I${LOCALBASE}/lib
|
||||
|
||||
MAKE_ARGS= CC="${CC}"
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/duk ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
2
lang/duktape/distinfo
Normal file
2
lang/duktape/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (duktape-1.0.2.tar.xz) = 916f4ae8f8a679c4cd976ca8442d3e863205bb858e6e8483997f4fa0f487b784
|
||||
SIZE (duktape-1.0.2.tar.xz) = 428588
|
20
lang/duktape/files/patch-Makefile.cmdline
Normal file
20
lang/duktape/files/patch-Makefile.cmdline
Normal file
@ -0,0 +1,20 @@
|
||||
--- Makefile.cmdline.orig 2014-11-08 02:33:22 UTC
|
||||
+++ Makefile.cmdline
|
||||
@@ -10,14 +10,14 @@ DUKTAPE_CMDLINE_SOURCES = \
|
||||
|
||||
CC = gcc
|
||||
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
|
||||
-CCOPTS += -I./src
|
||||
+CCOPTS += -I./src ${CPPFLAGS}
|
||||
CCLIBS = -lm
|
||||
|
||||
# If you have readline, you may want to enable these. On some platforms
|
||||
# -lreadline also requires -lncurses (e.g. RHEL), so it is added by default
|
||||
# (you may be able to remove it)
|
||||
-#CCOPTS += -DDUK_CMDLINE_FANCY
|
||||
-#CCLIBS += -lreadline
|
||||
+CCOPTS += -DDUK_CMDLINE_FANCY
|
||||
+CCLIBS += ${LDFLAGS} -lreadline
|
||||
#CCLIBS += -lncurses
|
||||
|
||||
# Optional feature defines, see: http://duktape.org/guide.html#compiling
|
8
lang/duktape/pkg-descr
Normal file
8
lang/duktape/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
Duktape is an embeddable Javascript engine, with a focus on portability and
|
||||
compact footprint.
|
||||
|
||||
Duktape is easy to integrate into a C/C++ project: add duktape.c and duktape.h
|
||||
to your build, and use the Duktape API to call Ecmascript functions from C code
|
||||
and vice versa.
|
||||
|
||||
WWW: http://duktape.org
|
Loading…
Reference in New Issue
Block a user