Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2015 12:56:59 +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: r386930 - in head/games: . 7kaa 7kaa/files
Message-ID:  <201505211256.t4LCuxs9083037@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu May 21 12:56:58 2015
New Revision: 386930
URL: https://svnweb.freebsd.org/changeset/ports/386930

Log:
  This is a GPL release of the Seven Kingdoms: Ancient Adversaries
  thanks to Enlight Software which granted the ability to license the
  game under a free and open source license in 2009. See the file
  "COPYING" for the details of the license. We are indebted to Enlight
  for making the 7kfans project possible and giving a new chance to
  build a community for fans of the game.
  
  WWW: http://7kfans.com/

Added:
  head/games/7kaa/
  head/games/7kaa/Makefile   (contents, props changed)
  head/games/7kaa/distinfo   (contents, props changed)
  head/games/7kaa/files/
  head/games/7kaa/files/patch-src_common_OMISC.cpp   (contents, props changed)
  head/games/7kaa/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile

Added: head/games/7kaa/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/7kaa/Makefile	Thu May 21 12:56:58 2015	(r386930)
@@ -0,0 +1,35 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	7kaa
+PORTVERSION=	2.14.5
+CATEGORIES=	games
+MASTER_SITES=	SF/skfans/7KAA%20${PORTVERSION}
+
+MAINTAINER=	amdmi3@FreeBSD.org
+COMMENT=	Seven Kingdoms: Ancient Adversaries
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libenet.so:${PORTSDIR}/net/enet
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-silent-rules \
+		--disable-nls # no translations ATM
+USES=		gmake openal:al tar:xz
+USE_SDL=	sdl2
+
+LDFLAGS+=	-L${LOCALBASE}/lib
+CPPFLAGS+=	-I${LOCALBASE}/include
+
+PLIST_FILES=	bin/${PORTNAME}
+PORTDOCS=	*
+PORTDATA=	*
+
+OPTIONS_DEFINE=	DOCS
+
+post-install:
+	${RM} -f ${STAGEDIR}${DOCSDIR}/COPYING
+
+.include <bsd.port.mk>

Added: head/games/7kaa/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/7kaa/distinfo	Thu May 21 12:56:58 2015	(r386930)
@@ -0,0 +1,2 @@
+SHA256 (7kaa-2.14.5.tar.xz) = c7f04fa640d324ed8f1523da49945acd0f1ee2a99e3ee82ee29b52d2f735e464
+SIZE (7kaa-2.14.5.tar.xz) = 31223408

Added: head/games/7kaa/files/patch-src_common_OMISC.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/7kaa/files/patch-src_common_OMISC.cpp	Thu May 21 12:56:58 2015	(r386930)
@@ -0,0 +1,25 @@
+--- src/common/OMISC.cpp.orig	2015-05-19 01:00:20 UTC
++++ src/common/OMISC.cpp
+@@ -37,6 +37,7 @@
+ #include <stdlib.h>
+ #include <time.h>
+ #include <ctype.h>
++#include <math.h>
+ 
+ #include <ALL.h>
+ #include <OSTR.h>
+@@ -755,10 +756,13 @@ char* Misc::format(double inNum, int for
+ 
+    static char outBuf[35];
+    char   *outPtr=outBuf;
++   char   floatBuf[35];
+    char   *floatStr;
+    int    i, intDigit, sign;    // intDigit = no. of integer digits
+ 
+-   floatStr = fcvt( inNum, MONEY_DEC_PLACE, &intDigit, &sign );
++   intDigit = snprintf(floatBuf, sizeof(floatBuf), "%.0lf", fabs(inNum) * 100.0);
++   intDigit -= 2;
++   floatStr = floatBuf;
+ 
+    #ifdef DEBUG
+       if( intDigit > 29 )            // integer digits can't exceed 29

Added: head/games/7kaa/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/7kaa/pkg-descr	Thu May 21 12:56:58 2015	(r386930)
@@ -0,0 +1,8 @@
+This is a GPL release of the Seven Kingdoms: Ancient Adversaries
+thanks to Enlight Software which granted the ability to license the
+game under a free and open source license in 2009. See the file
+"COPYING" for the details of the license. We are indebted to Enlight
+for making the 7kfans project possible and giving a new chance to
+build a community for fans of the game.
+
+WWW: http://7kfans.com/

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Thu May 21 12:45:40 2015	(r386929)
+++ head/games/Makefile	Thu May 21 12:56:58 2015	(r386930)
@@ -12,6 +12,7 @@
     SUBDIR += 3omns
     SUBDIR += 4stattack
     SUBDIR += 54321
+    SUBDIR += 7kaa
     SUBDIR += CaribbeanStud
     SUBDIR += HeroesOfMightAndMagic
     SUBDIR += KnightCap



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