Sun Feb 28 08:06:52 2021 UTC ()
lang: add surgescript.

SurgeScript is a scripting language for games. Use it to unleash your
creativity and build your own amazing interactive content!


(nia)
diff -r0 -r1.1 pkgsrc/lang/surgescript/DESCR
diff -r0 -r1.1 pkgsrc/lang/surgescript/Makefile
diff -r0 -r1.1 pkgsrc/lang/surgescript/PLIST
diff -r0 -r1.1 pkgsrc/lang/surgescript/distinfo
diff -r0 -r1.1 pkgsrc/lang/surgescript/patches/patch-src_surgescript_util_utf8.c
diff -r0 -r1.1 pkgsrc/lang/surgescript/patches/patch-src_surgescript_util_utf8.h

File Added: pkgsrc/lang/surgescript/DESCR
SurgeScript is a scripting language for games. Use it to unleash your
creativity and build your own amazing interactive content!

File Added: pkgsrc/lang/surgescript/Makefile
# $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"

File Added: pkgsrc/lang/surgescript/PLIST
@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

File Added: pkgsrc/lang/surgescript/distinfo
$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

File Added: pkgsrc/lang/surgescript/patches/patch-src_surgescript_util_utf8.c
$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>
 

File Added: pkgsrc/lang/surgescript/patches/patch-src_surgescript_util_utf8.h
$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? */