summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/Makefile1
-rw-r--r--lang/angelscript/Makefile44
-rw-r--r--lang/angelscript/distinfo2
-rw-r--r--lang/angelscript/pkg-descr20
4 files changed, 67 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index e867cd410f88..a85d894e41ef 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -11,6 +11,7 @@
SUBDIR += afnix
SUBDIR += algol68g
SUBDIR += alisp
+ SUBDIR += angelscript
SUBDIR += arena
SUBDIR += asis
SUBDIR += asn1c
diff --git a/lang/angelscript/Makefile b/lang/angelscript/Makefile
new file mode 100644
index 000000000000..3b7a6dcac835
--- /dev/null
+++ b/lang/angelscript/Makefile
@@ -0,0 +1,44 @@
+# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= angelscript
+PORTVERSION= 2.27.0
+CATEGORIES= lang
+MASTER_SITES= http://www.angelcode.com/angelscript/sdk/files/
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+
+MAINTAINER= vg@FreeBSD.org
+COMMENT= AngelCode Scripting Library
+
+LICENSE= ZLIB
+
+MAKEFILE= makefile
+MAKE_ARGS= LOCAL=${PREFIX}
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+USE_ZIP= yes
+
+WRKSRC= ${WRKDIR}/sdk/angelscript/projects/gnuc/
+
+PLIST_FILES= include/angelscript.h
+
+OPTIONS_SINGLE= TYPE
+OPTIONS_SINGLE_TYPE= STATIC SHARED
+STATIC_DESC= Build static library
+SHARED_DESC= Build shared library
+OPTIONS_DEFAULT= STATIC
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSHARED}
+LIB_VERSION= 2
+MAKE_ARGS+= SHARED=1 VERSION=${LIB_VERSION}
+PLIST_FILES+= lib/libangelscript.so.${LIB_VERSION} \
+ lib/libangelscript-${LIB_VERSION}.so \
+ lib/libangelscript.so
+
+.else
+PLIST_FILES+= lib/libangelscript.a
+.endif
+
+.include <bsd.port.mk>
diff --git a/lang/angelscript/distinfo b/lang/angelscript/distinfo
new file mode 100644
index 000000000000..7207cc7c811c
--- /dev/null
+++ b/lang/angelscript/distinfo
@@ -0,0 +1,2 @@
+SHA256 (angelscript_2.27.0.zip) = 5bb3b197c972dc5021da5cd05f8bf8181e5d11195e6391d2193c9d0a81a4da5a
+SIZE (angelscript_2.27.0.zip) = 1442212
diff --git a/lang/angelscript/pkg-descr b/lang/angelscript/pkg-descr
new file mode 100644
index 000000000000..b3877b5bb413
--- /dev/null
+++ b/lang/angelscript/pkg-descr
@@ -0,0 +1,20 @@
+The AngelCode Scripting Library, or AngelScript as it is also known, is an
+extremely flexible cross-platform scripting library designed to allow
+applications to extend their functionality through external scripts. It has
+been designed from the beginning to be an easy to use component, both for
+the application programmer and the script writer.
+
+Efforts have been made to let it call standard C functions and C++ methods
+with little to no need for proxy functions. The application simply registers
+the functions, objects, and methods that the scripts should be able to work
+with and nothing more has to be done with your code. The same functions used
+by the application internally can also be used by the scripting engine, which
+eliminates the need to duplicate functionality.
+
+For the script writer the scripting language follows the widely known syntax
+of C/C++, but without the need to worry about pointers and memory leaks.
+Contrary to most scripting languages, AngelScript uses the common C/C++
+datatypes for more efficient communication with the host application.
+
+
+WWW: http://www.angelcode.com/angelscript/