Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Dec 2019 16:19:36 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r519090 - in head/games: . rawgl rawgl/files
Message-ID:  <201912051619.xB5GJata080667@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Dec  5 16:19:36 2019
New Revision: 519090
URL: https://svnweb.freebsd.org/changeset/ports/519090

Log:
  - Add games/rawgl
  
  rawgl is a re-implementation of the engine used in the game Another World.
  
  WWW: https://github.com/cyxx/rawgl
  
  PR:		227299
  Submitted by:	pkubaj@FreeBSD.org

Added:
  head/games/rawgl/
  head/games/rawgl/Makefile   (contents, props changed)
  head/games/rawgl/distinfo   (contents, props changed)
  head/games/rawgl/files/
  head/games/rawgl/files/patch-Makefile   (contents, props changed)
  head/games/rawgl/files/patch-main.cpp   (contents, props changed)
  head/games/rawgl/files/pkg-message.in   (contents, props changed)
  head/games/rawgl/files/rawgl.in   (contents, props changed)
  head/games/rawgl/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Thu Dec  5 16:15:16 2019	(r519089)
+++ head/games/Makefile	Thu Dec  5 16:19:36 2019	(r519090)
@@ -791,6 +791,7 @@
     SUBDIR += qwdtools
     SUBDIR += r1q2
     SUBDIR += railroad-rampage
+    SUBDIR += rawgl
     SUBDIR += redeclipse
     SUBDIR += redeclipse-data
     SUBDIR += redorblack

Added: head/games/rawgl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rawgl/Makefile	Thu Dec  5 16:19:36 2019	(r519090)
@@ -0,0 +1,51 @@
+# Created by: Piotr Kubaj <pkubaj@anongoth.pl>
+# $FreeBSD$
+
+PORTNAME=	rawgl
+PORTVERSION=	g20180321
+CATEGORIES=	games
+
+MAINTAINER=	pkubaj@anongoth.pl
+COMMENT=	Another World engine reimplementation
+
+LICENSE=	NONE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	cyxx
+GH_TAGNAME=	b6dd795
+
+USES=		gl sdl
+USE_GL=		gl
+USE_SDL=	mixer2 sdl2
+ALL_TARGET=	rawgl
+
+SUB_FILES=	pkg-message rawgl
+SUB_LIST=	DATADIR=${DATADIR}
+
+PLIST_FILES=	bin/${PORTNAME} libexec/${PORTNAME} '@dir %%DATADIR%%'
+PORTDOCS=	*
+
+DESKTOP_ENTRIES="raw(gl)" \
+		"" \
+		"" \
+		rawgl \
+		"Game;ActionGame;" \
+		""
+
+OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|MIX_INIT_FLUIDSYNTH|MIX_INIT_MID|' ${WRKSRC}/mixer.cpp
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
+		${STAGEDIR}${PREFIX}/libexec/
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} \
+		${STAGEDIR}${PREFIX}/bin/
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
+
+.include <bsd.port.mk>

Added: head/games/rawgl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rawgl/distinfo	Thu Dec  5 16:19:36 2019	(r519090)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1574268090
+SHA256 (cyxx-rawgl-g20180321-b6dd795_GH0.tar.gz) = 1f3d362450d03a25f3b01f2dfc269fe8f9013bef8f2475bd9d76b747ebc85233
+SIZE (cyxx-rawgl-g20180321-b6dd795_GH0.tar.gz) = 70179

Added: head/games/rawgl/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rawgl/files/patch-Makefile	Thu Dec  5 16:19:36 2019	(r519090)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2018-04-04 14:11:53 UTC
++++ Makefile
+@@ -4,7 +4,7 @@ SDL_LIBS = `sdl2-config --libs` -lSDL2_mixer -lGL
+ 
+ DEFINES = -DBYPASS_PROTECTION
+ 
+-CXXFLAGS := -g -O -MMD -Wall $(SDL_CFLAGS) $(DEFINES)
++CXXFLAGS += -fPIC -MMD -Wall $(SDL_CFLAGS) $(DEFINES)
+ 
+ SRCS = aifcplayer.cpp bitmap.cpp file.cpp engine.cpp graphics_gl.cpp graphics_soft.cpp \
+ 	script.cpp mixer.cpp pak.cpp resource.cpp resource_mac.cpp resource_nth.cpp \

Added: head/games/rawgl/files/patch-main.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rawgl/files/patch-main.cpp	Thu Dec  5 16:19:36 2019	(r519090)
@@ -0,0 +1,11 @@
+--- main.cpp.orig	2018-03-21 01:29:10 UTC
++++ main.cpp
+@@ -83,7 +83,7 @@ static const int DEFAULT_WINDOW_H = 400;
+ int main(int argc, char *argv[]) {
+ 	char *dataPath = 0;
+ 	int part = 16001;
+-	Language lang = LANG_FR;
++	Language lang = LANG_US;
+ 	int graphicsType = GRAPHICS_GL;
+ 	DisplayMode dm;
+ 	dm.mode   = DisplayMode::WINDOWED;

Added: head/games/rawgl/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rawgl/files/pkg-message.in	Thu Dec  5 16:19:36 2019	(r519090)
@@ -0,0 +1,14 @@
+[
+{ type: install
+  message: <<EOM
+To play this game, copy Another World game files to %%DATADIR%%.
+
+Supported versions:
+* Amiga and PC DOS releases (Bank*)
+* 15th anniversary edition (Pak01.pak)
+* 20th anniversary edition (game/*)
+* Windows 3.1 release (Bank)
+* 3DO release (GameData/*)
+EOM
+}
+]

Added: head/games/rawgl/files/rawgl.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rawgl/files/rawgl.in	Thu Dec  5 16:19:36 2019	(r519090)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ -n "$(find %%DATADIR%% -type f 2>/dev/null)" ]; then
+	exec %%PREFIX%%/libexec/rawgl --datapath=%%DATADIR%% "$@"
+else
+	exec %%PREFIX%%/libexec/rawgl "$@"
+fi

Added: head/games/rawgl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rawgl/pkg-descr	Thu Dec  5 16:19:36 2019	(r519090)
@@ -0,0 +1,3 @@
+rawgl is a re-implementation of the engine used in the game Another World.
+
+WWW: https://github.com/cyxx/rawgl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912051619.xB5GJata080667>