diff options
author | nia <nia@pkgsrc.org> | 2021-02-28 08:06:52 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-02-28 08:06:52 +0000 |
commit | efb7c8830c4acab3f435b5544335c21f4fc195a4 (patch) | |
tree | 02b9683f32b29672d23212e469ffb2726d3902aa /lang | |
parent | 1fde93bcff916b9ebba0a86ead3e302921a4baf6 (diff) | |
download | pkgsrc-efb7c8830c4acab3f435b5544335c21f4fc195a4.tar.gz |
lang: add surgescript.
SurgeScript is a scripting language for games. Use it to unleash your
creativity and build your own amazing interactive content!
Diffstat (limited to 'lang')
-rw-r--r-- | lang/surgescript/DESCR | 2 | ||||
-rw-r--r-- | lang/surgescript/Makefile | 17 | ||||
-rw-r--r-- | lang/surgescript/PLIST | 39 | ||||
-rw-r--r-- | lang/surgescript/distinfo | 8 | ||||
-rw-r--r-- | lang/surgescript/patches/patch-src_surgescript_util_utf8.c | 18 | ||||
-rw-r--r-- | lang/surgescript/patches/patch-src_surgescript_util_utf8.h | 17 |
6 files changed, 101 insertions, 0 deletions
diff --git a/lang/surgescript/DESCR b/lang/surgescript/DESCR new file mode 100644 index 00000000000..53ced60e39d --- /dev/null +++ b/lang/surgescript/DESCR @@ -0,0 +1,2 @@ +SurgeScript is a scripting language for games. Use it to unleash your +creativity and build your own amazing interactive content! diff --git a/lang/surgescript/Makefile b/lang/surgescript/Makefile new file mode 100644 index 00000000000..fcd7191e20e --- /dev/null +++ b/lang/surgescript/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2021/02/28 08:06:52 nia Exp $ + +DISTNAME= surgescript-0.5.5 +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_GITHUB:=alemart/} +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://docs.opensurge2d.org/ +COMMENT= Scripting language for games +LICENSE= apache-2.0 + +USE_CMAKE= yes + +PKGCONFIG_OVERRIDE+= src/surgescript/misc/surgescript.pc.in + +.include "../../mk/bsd.pkg.mk" diff --git a/lang/surgescript/PLIST b/lang/surgescript/PLIST new file mode 100644 index 00000000000..302d2e94fa9 --- /dev/null +++ b/lang/surgescript/PLIST @@ -0,0 +1,39 @@ +@comment $NetBSD: PLIST,v 1.1 2021/02/28 08:06:52 nia Exp $ +bin/surgescript +include/surgescript.h +include/surgescript/compiler/asm.h +include/surgescript/compiler/lexer.h +include/surgescript/compiler/nodecontext.h +include/surgescript/compiler/parser.h +include/surgescript/compiler/symtable.h +include/surgescript/compiler/token.h +include/surgescript/runtime/heap.h +include/surgescript/runtime/object.h +include/surgescript/runtime/object_manager.h +include/surgescript/runtime/program.h +include/surgescript/runtime/program_operators.h +include/surgescript/runtime/program_pool.h +include/surgescript/runtime/renv.h +include/surgescript/runtime/sslib/sslib.h +include/surgescript/runtime/stack.h +include/surgescript/runtime/tag_system.h +include/surgescript/runtime/variable.h +include/surgescript/runtime/vm.h +include/surgescript/runtime/vm_time.h +include/surgescript/util/fasthash.h +include/surgescript/util/ssarray.h +include/surgescript/util/transform.h +include/surgescript/util/utf8.h +include/surgescript/util/uthash.h +include/surgescript/util/util.h +include/surgescript/util/version.h +include/surgescript/util/xxh3.h +include/surgescript/util/xxhash.h +lib/libsurgescript-static.a +lib/libsurgescript.so +lib/libsurgescript.so.${PKGVERSION} +lib/pkgconfig/surgescript-static.pc +lib/pkgconfig/surgescript.pc +share/metainfo/surgescript.appdata.xml +share/pixmaps/surgescript.png +@pkgdir include/surgescript/misc diff --git a/lang/surgescript/distinfo b/lang/surgescript/distinfo new file mode 100644 index 00000000000..ea5b23174ac --- /dev/null +++ b/lang/surgescript/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2021/02/28 08:06:52 nia Exp $ + +SHA1 (surgescript-0.5.5.tar.gz) = 7dd9100515a4c0722beb664be35bacf8b3ff3d46 +RMD160 (surgescript-0.5.5.tar.gz) = 7d581559bef12df3e9dced8ef4fa1bcd7fa72c74 +SHA512 (surgescript-0.5.5.tar.gz) = b3b79f36463b9ff91f2f8108d6917961d8aabfbd0693a9e9e275f57faa09022570519c553ceff8db93101058964d76df82448b487ed82c5331598df065fae34a +Size (surgescript-0.5.5.tar.gz) = 504167 bytes +SHA1 (patch-src_surgescript_util_utf8.c) = 44775addf7e9430bbf5fe26b0863b5334261417f +SHA1 (patch-src_surgescript_util_utf8.h) = 030bd7168f902466faa897e2de522a71db8616fa diff --git a/lang/surgescript/patches/patch-src_surgescript_util_utf8.c b/lang/surgescript/patches/patch-src_surgescript_util_utf8.c new file mode 100644 index 00000000000..b5e8c7950a9 --- /dev/null +++ b/lang/surgescript/patches/patch-src_surgescript_util_utf8.c @@ -0,0 +1,18 @@ +$NetBSD: patch-src_surgescript_util_utf8.c,v 1.1 2021/02/28 08:06:52 nia Exp $ + +Much more than FreeBSD doesn't have <alloca.h>. + +--- src/surgescript/util/utf8.c.orig 2021-01-22 18:42:07.000000000 +0000 ++++ src/surgescript/util/utf8.c +@@ -24,9 +24,9 @@ + #include <malloc.h> + #define snprintf _snprintf + #else +-#ifndef __FreeBSD__ ++#if defined(__linux__) || defined(__sun) + #include <alloca.h> +-#endif /* __FreeBSD__ */ ++#endif /* defined(__linux__) || defined(__sun) */ + #endif + #include <assert.h> + diff --git a/lang/surgescript/patches/patch-src_surgescript_util_utf8.h b/lang/surgescript/patches/patch-src_surgescript_util_utf8.h new file mode 100644 index 00000000000..cc1302778af --- /dev/null +++ b/lang/surgescript/patches/patch-src_surgescript_util_utf8.h @@ -0,0 +1,17 @@ +$NetBSD: patch-src_surgescript_util_utf8.h,v 1.1 2021/02/28 08:06:52 nia Exp $ + +This header file is included in various places without including the +<stdarg.h> prerequisite beforehand. Fix it the lazy way. + +--- src/surgescript/util/utf8.h.orig 2021-01-22 18:42:07.000000000 +0000 ++++ src/surgescript/util/utf8.h +@@ -6,6 +6,9 @@ + #ifndef UTF8_H + #define UTF8_H + ++#include <stdarg.h> ++#include <stdint.h> ++ + extern int locale_is_utf8; + + /* is c the start of a utf8 sequence? */ |