pkgsrc-WIP-changes archive

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

anura: Import the Anura game engine as wip/anura.



Module Name:	pkgsrc-wip
Committed By:	Christian Koch <cfkoch%edgebsd.org@localhost>
Pushed By:	cfkoch
Date:		Tue Jan 26 16:30:17 2016 -0800
Changeset:	73fe50ccefb36723c834c00c94d767895401f684

Modified Files:
	Makefile
Added Files:
	anura/DESCR
	anura/Makefile
	anura/PLIST
	anura/distinfo
	anura/patches/patch-Makefile
	anura/patches/patch-src_tbs_matchmaking_server.cpp

Log Message:
anura: Import the Anura game engine as wip/anura.

Anura is the tech behind the spectacular "Frogatto & Friends." It is a
fully-featured game engine, free for commercial and non-commercial use.

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

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

diffstat:
 Makefile                                           |  1 +
 anura/DESCR                                        |  2 ++
 anura/Makefile                                     | 36 ++++++++++++++++++++++
 anura/PLIST                                        |  2 ++
 anura/distinfo                                     |  7 +++++
 anura/patches/patch-Makefile                       | 12 ++++++++
 anura/patches/patch-src_tbs_matchmaking_server.cpp | 21 +++++++++++++
 7 files changed, 81 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 537fde5..4ad3e3f 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,7 @@ SUBDIR+=	ann
 SUBDIR+=	ansible
 SUBDIR+=	anthy-dic-jis34
 SUBDIR+=	antlr3-c
+SUBDIR+=	anura
 SUBDIR+=	aoeui
 SUBDIR+=	aoi
 SUBDIR+=	aokell
diff --git a/anura/DESCR b/anura/DESCR
new file mode 100644
index 0000000..77e3eb4
--- /dev/null
+++ b/anura/DESCR
@@ -0,0 +1,2 @@
+Anura is the tech behind the spectacular "Frogatto & Friends." It is a
+fully-featured game engine, free for commercial and non-commercial use.
diff --git a/anura/Makefile b/anura/Makefile
new file mode 100644
index 0000000..5651f81
--- /dev/null
+++ b/anura/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD$
+
+DISTNAME=	anura
+PKGNAME=	anura-0
+CATEGORIES=	games
+GITHUB_TAG=	6185d6d5f0774610375f4277d0e39d4f6f239202
+MASTER_SITES=	${MASTER_SITE_GITHUB:=anura-engine/}
+LICENSE=	modified-bsd AND mit
+
+MAINTAINER=	cfkoch%edgebsd.org@localhost
+COMMENT=	Fully-featured game engine
+
+USE_LANGUAGES=	c c++
+GCC_REQD=	4.8
+EXTRACT_USING=	gtar
+USE_TOOLS+=	pkg-config gmake
+WRKSRC=		${WRKDIR}/anura-${GITHUB_TAG}
+AUTO_MKDIRS=	yes
+
+CFLAGS+=	-Wno-sign-compare
+LDFLAGS+=	-lexecinfo
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/anura ${DESTDIR}${PREFIX}/bin/anura
+
+.include "../../devel/boost-headers/buildlink3.mk"
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/glew/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/anura/PLIST b/anura/PLIST
new file mode 100644
index 0000000..89faca5
--- /dev/null
+++ b/anura/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/anura
diff --git a/anura/distinfo b/anura/distinfo
new file mode 100644
index 0000000..874e022
--- /dev/null
+++ b/anura/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (anura-6185d6d5f0774610375f4277d0e39d4f6f239202.tar.gz) = 30b2b9fa1483e8408f8299d483affd5109e4f1de
+RMD160 (anura-6185d6d5f0774610375f4277d0e39d4f6f239202.tar.gz) = eb10eabd1275decd4e61d491fb8903908b1ea82e
+Size (anura-6185d6d5f0774610375f4277d0e39d4f6f239202.tar.gz) = 77911584 bytes
+SHA1 (patch-Makefile) = 7d7abccec1be5728e1fb1ddd914ebd52c768c494
+SHA1 (patch-src_tbs_matchmaking_server.cpp) = 1acf1234ed7f213c00f480edc399d0d7c923a078
diff --git a/anura/patches/patch-Makefile b/anura/patches/patch-Makefile
new file mode 100644
index 0000000..6a6155e
--- /dev/null
+++ b/anura/patches/patch-Makefile
@@ -0,0 +1,12 @@
+$NetBSD$
+--- ./Makefile.orig	2016-01-25 15:02:26.000000000 -0800
++++ ./Makefile	2016-01-25 23:03:50.000000000 -0800
+@@ -145,7 +145,7 @@
+ 	@$(CXX) $(BASE_CXXFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(INC) $(INCLUDES) -MM $$< > $$@.d
+ 	@mv -f $$@.d $$@.d.tmp
+ 	@sed -e 's|.*:|$$@:|' < $$@.d.tmp > $$@.d
+-	@sed -e 's/.*://' -e 's/\\$$$$//' < $$@.d.tmp | fmt -1 | \
++	@sed -e 's/.*://' -e 's/\\$$$$//' < $$@.d.tmp | \
+ 		sed -e 's/^ *//' -e 's/$$$$/:/' >> $$@.d
+ 	@rm -f $$@.d.tmp
+ endef
diff --git a/anura/patches/patch-src_tbs_matchmaking_server.cpp b/anura/patches/patch-src_tbs_matchmaking_server.cpp
new file mode 100644
index 0000000..f9140e3
--- /dev/null
+++ b/anura/patches/patch-src_tbs_matchmaking_server.cpp
@@ -0,0 +1,21 @@
+$NetBSD$
+--- ./src/tbs_matchmaking_server.cpp.orig	2016-01-26 00:52:11.000000000 -0800
++++ ./src/tbs_matchmaking_server.cpp	2016-01-26 00:52:47.000000000 -0800
+@@ -31,7 +31,7 @@
+ #include <iostream>
+ 
+ #include <sys/types.h>
+-#ifdef __linux__
++#if defined(__linux__) || defined(__NetBSD__)
+ #include <sys/wait.h>
+ #include <unistd.h>
+ #endif
+@@ -85,7 +85,7 @@
+ 
+ void sendEmail(std::string email_addr, std::string subject, std::string message)
+ {
+-#ifdef __linux__
++#if defined(__linux__) || defined(__NetBSD__)
+ 
+ 	std::ostringstream s;
+ 	s << "/usr/sbin/sendmail " << email_addr;


Home | Main Index | Thread Index | Old Index