pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

angelscript: import wip/angelscript as angelscript-2.30.2



Module Name:	pkgsrc-wip
Committed By:	Christian Koch <cfkoch%edgebsd.org@localhost>
Pushed By:	cfkoch
Date:		Sat Oct 17 17:42:48 2015 -0700
Changeset:	1893853fab330867e80b81af5ffbc12aea800e99

Added Files:
	angelscript/DESCR
	angelscript/Makefile
	angelscript/PLIST
	angelscript/distinfo
	angelscript/patches/patch-angelscript_projects_gnuc_Makefile

Log Message:
angelscript: import wip/angelscript as angelscript-2.30.2

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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1893853fab330867e80b81af5ffbc12aea800e99

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 angelscript/DESCR                                  | 12 +++++++
 angelscript/Makefile                               | 29 ++++++++++++++++
 angelscript/PLIST                                  |  6 ++++
 angelscript/distinfo                               |  6 ++++
 .../patch-angelscript_projects_gnuc_Makefile       | 40 ++++++++++++++++++++++
 5 files changed, 93 insertions(+)

diffs:
diff --git a/angelscript/DESCR b/angelscript/DESCR
new file mode 100644
index 0000000..21cc235
--- /dev/null
+++ b/angelscript/DESCR
@@ -0,0 +1,12 @@
+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.
diff --git a/angelscript/Makefile b/angelscript/Makefile
new file mode 100644
index 0000000..b733036
--- /dev/null
+++ b/angelscript/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+PKGNAME=	angelscript-${VERSION}
+DISTNAME=	angelscript_${VERSION}
+VERSION=	2.30.2
+CATEGORIES=	lang
+MASTER_SITES=	http://angelcode.com/angelscript/sdk/files/
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	cfkoch%edgebsd.org@localhost
+HOMEPAGE=	http://angelcode.com/angelscript/
+COMMENT=	The AngelScript programming language
+LICENSE=	zlib
+
+WRKSRC=		${WRKDIR}/sdk
+USE_LANGUAGES=	c++
+USE_TOOLS+=	gmake
+NO_CONFIGURE=	yes
+AUTO_MKDIRS=	yes
+
+REAL_SOURCE_DIR=	${WRKSRC}/angelscript/projects/gnuc
+BUILD_DIRS+=	${REAL_SOURCE_DIR}
+INSTALL_DIRS+=	${REAL_SOURCE_DIR}
+
+INSTALL_MAKE_FLAGS+=	PREFIX=${LOCALBASE}
+INSTALL_MAKE_FLAGS+=	DESTDIR=${DESTDIR}
+INSTALL_TARGET=	install install_shared
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/angelscript/PLIST b/angelscript/PLIST
new file mode 100644
index 0000000..459640d
--- /dev/null
+++ b/angelscript/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+lib/libangelscript.a
+lib/libangelscript_s-2.30.2.so
+lib/libangelscript_s.so
+lib/libangelscript_s.so.2.30.2
+include/angelscript.h
diff --git a/angelscript/distinfo b/angelscript/distinfo
new file mode 100644
index 0000000..886947d
--- /dev/null
+++ b/angelscript/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (angelscript_2.30.2.zip) = 9fc0aa3dd06341122fe821fe39f0cbfb5fa04129
+RMD160 (angelscript_2.30.2.zip) = 93547a4a29acb1a22d0866b4d616bd2d369ababa
+Size (angelscript_2.30.2.zip) = 1640151 bytes
+SHA1 (patch-angelscript_projects_gnuc_Makefile) = 363272c5ef5e64ec14dc03843a81cb678031d50c
diff --git a/angelscript/patches/patch-angelscript_projects_gnuc_Makefile b/angelscript/patches/patch-angelscript_projects_gnuc_Makefile
new file mode 100644
index 0000000..33cb766
--- /dev/null
+++ b/angelscript/patches/patch-angelscript_projects_gnuc_Makefile
@@ -0,0 +1,40 @@
+# $NetBSD$
+--- angelscript/projects/gnuc/Makefile.orig	2014-11-17 19:20:42.000000000 -0800
++++ angelscript/projects/gnuc/Makefile	2015-10-17 17:12:16.000000000 -0700
+@@ -25,8 +25,8 @@
+ ifeq ($(PREFIX),)
+ PREFIX=/usr/local
+ endif
+-INCLUDEDEST=$(PREFIX)/include/
+-LIBRARYDEST=$(PREFIX)/lib/
++INCLUDEDEST=$(DESTDIR)$(PREFIX)/include/
++LIBRARYDEST=$(DESTDIR)$(PREFIX)/lib/
+ 
+ HEADER = angelscript.h
+ SRCDIR = ../../source
+@@ -142,11 +142,11 @@
+ 	$(CXX) $(CXXFLAGS) -o $@ -c $<
+ 
+ install_shared:
+-	@ver=`awk -F\" '/#define ANGELSCRIPT_VERSION_STRING/{print $$2}' ../../include/angelscript.h | cut -d" " -f1`; \
++	@ver=`awk -F\" '/#define ANGELSCRIPT_VERSION_STRING/{print $$2}' $(INCDIR)/angelscript.h | cut -d" " -f1`; \
+ 	if [ "$$ver" = "" ]; then \
+ 		echo "Skipping creation of symbolic links..."; \
+ 	else \
+-		( install -Dm 755 $(LIBDIR)/$(SHLIB) $(LIBRARYDEST)$(LIBNAME)_s-$$ver.so && \
++		( install -m 755 $(LIBDIR)/$(SHLIB) $(LIBRARYDEST)$(LIBNAME)_s-$$ver.so && \
+ 		ln -fs $(LIBRARYDEST)$(LIBNAME)_s-$$ver.so $(LIBRARYDEST)$(SHLIB) && \
+ 		ln -fs $(LIBRARYDEST)$(LIBNAME)_s-$$ver.so $(LIBRARYDEST)$(SHLIB).$$ver ) \
+ 	fi ;
+@@ -158,9 +158,8 @@
+ install: $(LIBDIR)/$(ARLIB) $(LIBDIR)/$(SHLIB)
+ 	@echo Installing to: $(LIBRARYDEST) and $(INCLUDEDEST)...
+ 	@echo -------------------------------------------------------------------
+-	install -Dm 644 $(LIBDIR)/$(ARLIB) $(LIBRARYDEST)$(ARLIB)
+-	install -Dm 644 $(INCDIR)/$(HEADER) $(INCLUDEDEST)$(HEADER)
+-	$(MAKE) install_shared
++	install -m 644 $(LIBDIR)/$(ARLIB) $(LIBRARYDEST)$(ARLIB)
++	install -m 644 $(INCDIR)/$(HEADER) $(INCLUDEDEST)$(HEADER)
+ 	@echo -------------------------------------------------------------------
+ 	@echo Angelscript library installed. Enjoy!
+ 


Home | Main Index | Thread Index | Old Index