Date: Tue, 23 Apr 2013 10:43:05 GMT From: Veniamin Gvozdikov <g.veniamin@googlemail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/178078: [new port]: lang/angelscript AngelCode Scripting Library Message-ID: <201304231043.r3NAh5dv031572@red.freebsd.org> Resent-Message-ID: <201304231050.r3NAo0OA081790@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 178078 >Category: ports >Synopsis: [new port]: lang/angelscript AngelCode Scripting Library >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Apr 23 10:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Veniamin Gvozdikov >Release: FreeBSD 9.1-RELEASE >Organization: >Environment: FreeBSD ololo 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: 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. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # angelscript # angelscript/pkg-descr # angelscript/files # angelscript/files/patch-angelscript_source_as_memory.cpp # angelscript/files/patch-makefile # angelscript/distinfo # angelscript/Makefile # echo c - angelscript mkdir -p angelscript > /dev/null 2>&1 echo x - angelscript/pkg-descr sed 's/^X//' >angelscript/pkg-descr << '7d07e27b39b7b96b2d484dd6952cdf1f' XThe AngelCode Scripting Library, or AngelScript as it is also known, is an Xextremely flexible cross-platform scripting library designed to allow Xapplications to extend their functionality through external scripts. It has Xbeen designed from the beginning to be an easy to use component, both for Xthe application programmer and the script writer. X XEfforts have been made to let it call standard C functions and C++ methods Xwith little to no need for proxy functions. The application simply registers Xthe functions, objects, and methods that the scripts should be able to work Xwith and nothing more has to be done with your code. The same functions used Xby the application internally can also be used by the scripting engine, which Xeliminates the need to duplicate functionality. X XFor the script writer the scripting language follows the widely known syntax Xof C/C++, but without the need to worry about pointers and memory leaks. XContrary to most scripting languages, AngelScript uses the common C/C++ Xdatatypes for more efficient communication with the host application. X X XWWW: http://www.angelcode.com/angelscript/ 7d07e27b39b7b96b2d484dd6952cdf1f echo c - angelscript/files mkdir -p angelscript/files > /dev/null 2>&1 echo x - angelscript/files/patch-angelscript_source_as_memory.cpp sed 's/^X//' >angelscript/files/patch-angelscript_source_as_memory.cpp << '57bc50cdc67ec8e909f63b8abe9199b5' X--- ../../source/as_memory.cpp.orig 2013-04-23 09:12:04.795967912 +0000 X+++ ../../source/as_memory.cpp 2013-04-23 09:12:22.031967631 +0000 X@@ -38,7 +38,7 @@ X X #include <stdlib.h> X X-#if !defined(__APPLE__) && !defined( __SNC__ ) && !defined( __ghs__ ) X+#if !defined(__APPLE__) && !defined( __SNC__ ) && !defined( __ghs__ ) && !defined(__FreeBSD__) X #include <malloc.h> X #endif X 57bc50cdc67ec8e909f63b8abe9199b5 echo x - angelscript/files/patch-makefile sed 's/^X//' >angelscript/files/patch-makefile << '51dcef59fa440720ae5a9aa4ca6ed5d0' X--- makefile.orig 2013-04-23 13:58:03.261966893 +0400 X+++ makefile 2013-04-23 14:14:40.498967731 +0400 X@@ -138,8 +138,9 @@ install: $(BIN) X @echo Installing to: $(LOCAL)/$(INSTALL_LIBDIR) and $(LOCAL)/include... X @echo ------------------------------------------------------------------- X ifdef SHARED X- $(COPIER) $(LIBDIR)/$(DEVLIB) $(LOCAL)/$(INSTALL_LIBDIR) X- ( cd $(LIBDIR); ln -s $(LIB) $(DEVLIB) ) X+ $(COPIER) $(LIBDIR)/$(LIB) $(LOCAL)/$(INSTALL_LIBDIR) X+ ln -s $(LOCAL)/$(INSTALL_LIBDIR)/$(LIB) $(LOCAL)/$(INSTALL_LIBDIR)/$(DEVLIB) X+ ln -s $(LOCAL)/$(INSTALL_LIBDIR)/$(LIB) $(LOCAL)/$(INSTALL_LIBDIR)/$(DEVLIB).$(VERSION) X endif X $(COPIER) $(BIN) $(LOCAL)/$(INSTALL_LIBDIR) X $(COPIER) $(INCDIR)/$(INC) $(LOCAL)/include 51dcef59fa440720ae5a9aa4ca6ed5d0 echo x - angelscript/distinfo sed 's/^X//' >angelscript/distinfo << '06afe45fae10a15bda562a59c555d4db' XSHA256 (angelscript_2.26.2.zip) = 53b8c71118a3a317d71ecbcc89be3e623b98e5c7cf5bc3c884859d4ca143cf0f XSIZE (angelscript_2.26.2.zip) = 1390172 06afe45fae10a15bda562a59c555d4db echo x - angelscript/Makefile sed 's/^X//' >angelscript/Makefile << 'f2fd04c6e60c6ac98d7be5850fd9e45c' X# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com> X# $FreeBSD$ X XPORTNAME= angelscript XPORTVERSION= 2.26.2 XCATEGORIES= lang XMASTER_SITES= http://www.angelcode.com/angelscript/sdk/files/ XDISTNAME= ${PORTNAME}_${PORTVERSION} X XMAINTAINER= g.veniamin@googlemail.com XCOMMENT= AngelCode Scripting Library X XLICENSE= ZLIB X XMAKEFILE= makefile XMAKE_ARGS= LOCAL=${PREFIX} XUSE_GMAKE= yes XUSE_LDCONFIG= yes XUSE_ZIP= yes X XWRKSRC= ${WRKDIR}/sdk/angelscript/projects/gnuc/ X XPLIST_FILES= include/angelscript.h X XOPTIONS_SINGLE= TYPE XOPTIONS_SINGLE_TYPE= STATIC SHARED XSTATIC_DESC= Build static library XSHARED_DESC= Build shared library XOPTIONS_DEFAULT= STATIC X X.include <bsd.port.options.mk> X X.if ${PORT_OPTIONS:MSHARED} XLIB_VERSION= 2 XMAKE_ARGS+= SHARED=1 VERSION=${LIB_VERSION} XPLIST_FILES+= lib/libangelscript.so.${LIB_VERSION} \ X lib/libangelscript-${LIB_VERSION}.so \ X lib/libangelscript.so X X.else XPLIST_FILES+= lib/libangelscript.a X.endif X X.include <bsd.port.mk> f2fd04c6e60c6ac98d7be5850fd9e45c exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304231043.r3NAh5dv031572>