From owner-svn-ports-head@FreeBSD.ORG Thu May 21 12:57:01 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 044E016B; Thu, 21 May 2015 12:57:01 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E5F8A1890; Thu, 21 May 2015 12:57:00 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t4LCv09S083055; Thu, 21 May 2015 12:57:00 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t4LCuxs9083037; Thu, 21 May 2015 12:56:59 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201505211256.t4LCuxs9083037@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 21 May 2015 12:56:59 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2015 12:57:01 -0000 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 +# $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 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 + #include + #include ++#include + + #include + #include +@@ -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