From owner-svn-ports-all@freebsd.org Sun Jul 1 17:00:13 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22D13FFAF21; Sun, 1 Jul 2018 17:00:13 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C2AC375B62; Sun, 1 Jul 2018 17:00:12 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A4D4A216D8; Sun, 1 Jul 2018 17:00:12 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w61H0Cw5090631; Sun, 1 Jul 2018 17:00:12 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w61H0BCx090622; Sun, 1 Jul 2018 17:00:11 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201807011700.w61H0BCx090622@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Sun, 1 Jul 2018 17:00:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473675 - in head/games: . freeorion freeorion/files X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: in head/games: . freeorion freeorion/files X-SVN-Commit-Revision: 473675 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jul 2018 17:00:13 -0000 Author: amdmi3 Date: Sun Jul 1 17:00:10 2018 New Revision: 473675 URL: https://svnweb.freebsd.org/changeset/ports/473675 Log: FreeOrion is a free, open source, turn-based space empire and galactic conquest (4X) computer game being designed and built by the FreeOrion project. FreeOrion is inspired by the tradition of the Master of Orion games, but is not a clone or remake of that series or any other game. WWW: http://www.freeorion.org/ Added: head/games/freeorion/ head/games/freeorion/Makefile (contents, props changed) head/games/freeorion/distinfo (contents, props changed) head/games/freeorion/files/ head/games/freeorion/files/patch-boost167 (contents, props changed) head/games/freeorion/files/patch-cmake_make__versioncpp.py (contents, props changed) head/games/freeorion/pkg-descr (contents, props changed) head/games/freeorion/pkg-plist (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Sun Jul 1 16:36:53 2018 (r473674) +++ head/games/Makefile Sun Jul 1 17:00:10 2018 (r473675) @@ -310,6 +310,7 @@ SUBDIR += freedroidrpg SUBDIR += freeminer SUBDIR += freeminer-default + SUBDIR += freeorion SUBDIR += freera SUBDIR += freesweep SUBDIR += freesynd Added: head/games/freeorion/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/freeorion/Makefile Sun Jul 1 17:00:10 2018 (r473675) @@ -0,0 +1,48 @@ +# Created by: Dmitry Marakasov +# $FreeBSD$ + +PORTNAME= freeorion +DISTVERSIONPREFIX= v +DISTVERSION= 0.4.8-rc1 +CATEGORIES= games + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Turn-based space empire and galactic conquest game + +LICENSE= GPLv2 CC-BY-SA-3.0 +LICENSE_COMB= multi + +LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ + libboost_python27.so:devel/boost-python-libs@${PY_FLAVOR} + +USE_GITHUB= yes + +USES= cmake compiler:c++14-lang python:2.7 + +PORTDOCS= ChangeLog.md README.md +PORTDATA= * + +OPTIONS_DEFINE= DOCS TEST HEADLESS +OPTIONS_SUB= yes + +TEST_CMAKE_BOOL= BUILD_TESTING +TEST_TEST_TARGET= unittest +TEST_USES= localbase + +HEADLESS_DESC= Build only headless components: server and AI +HEADLESS_CMAKE_BOOL= BUILD_HEADLESS +HEADLESS_USES_OFF= openal +HEADLESS_USE_OFF= SDL=sdl2 GL=gl,glu,glew +HEADLESS_LIB_DEPENDS_OFF= \ + libfreetype.so:print/freetype2 \ + libogg.so:audio/libogg \ + libvorbis.so:audio/libvorbis \ + libpng.so:graphics/png + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ +.endfor + +.include Added: head/games/freeorion/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/freeorion/distinfo Sun Jul 1 17:00:10 2018 (r473675) @@ -0,0 +1,3 @@ +TIMESTAMP = 1530197828 +SHA256 (freeorion-freeorion-v0.4.8-rc1_GH0.tar.gz) = 0963ec3573b8ab71278687a9ad143fda083171b651adab6b3cf6705fe93741c9 +SIZE (freeorion-freeorion-v0.4.8-rc1_GH0.tar.gz) = 106224914 Added: head/games/freeorion/files/patch-boost167 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/freeorion/files/patch-boost167 Sun Jul 1 17:00:10 2018 (r473675) @@ -0,0 +1,29 @@ +commit 618568705a0ca37ffd9e88d08cda3d3601d01d98 +Author: Dmitry Marakasov +Date: Fri Jun 29 19:42:52 2018 +0300 + + Fix compatibility with boost 1.67.0 + +diff --git CMakeLists.txt CMakeLists.txt +index 5b2fe63a7..4d26e06a2 100644 +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -204,11 +204,17 @@ find_package(Boost ${MINIMUM_BOOST_VERSION} + log_setup + regex + serialization +- python + signals + system + thread + REQUIRED) ++if(${Boost_VERSION} GREATER 106699) # boost >= 1.67 ++ find_package(Boost COMPONENTS python27 REQUIRED) ++ set(Boost_PYTHON_LIBRARY ${Boost_PYTHON27_LIBRARY}) ++else() ++ find_package(Boost COMPONENTS python REQUIRED) ++endif() ++ + find_package(ZLIB REQUIRED) + if(NOT BUILD_HEADLESS) + find_package(Freetype REQUIRED) Added: head/games/freeorion/files/patch-cmake_make__versioncpp.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/freeorion/files/patch-cmake_make__versioncpp.py Sun Jul 1 17:00:10 2018 (r473675) @@ -0,0 +1,23 @@ +--- cmake/make_versioncpp.py.orig 2017-09-03 13:21:52 UTC ++++ cmake/make_versioncpp.py +@@ -115,19 +115,7 @@ if system() == 'Darwin': + + version = "0.4.7.1" + branch = "" +-build_no = INVALID_BUILD_NO +- +-try: +- branch = check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).strip() +- if (branch == "master") or (branch[:7] == "release"): +- branch = "" +- else: +- branch += " " +- commit = check_output(["git", "show", "-s", "--format=%h", "--abbrev=7", "HEAD"]).strip() +- timestamp = float(check_output(["git", "show", "-s", "--format=%ct", "HEAD"]).strip()) +- build_no = ".".join([datetime.utcfromtimestamp(timestamp).strftime("%Y-%m-%d"), commit]) +-except: +- print "WARNING: git not installed or not setup correctly" ++build_no = "portbld" + + for generator in generators: + generator.execute(version, branch, build_no, build_sys) Added: head/games/freeorion/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/freeorion/pkg-descr Sun Jul 1 17:00:10 2018 (r473675) @@ -0,0 +1,7 @@ +FreeOrion is a free, open source, turn-based space empire and +galactic conquest (4X) computer game being designed and built by +the FreeOrion project. FreeOrion is inspired by the tradition of +the Master of Orion games, but is not a clone or remake of that +series or any other game. + +WWW: http://www.freeorion.org/ Added: head/games/freeorion/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/freeorion/pkg-plist Sun Jul 1 17:00:10 2018 (r473675) @@ -0,0 +1,14 @@ +%%NO_HEADLESS%%bin/freeorion +bin/freeorionca +bin/freeoriond +%%NO_HEADLESS%%lib/freeorion/libGiGi.so +%%NO_HEADLESS%%lib/freeorion/libGiGiSDL.so +lib/freeorion/libfreeorioncommon.so +lib/freeorion/libfreeorionparse.so +%%NO_HEADLESS%%share/applications/freeorion.desktop +share/icons/hicolor/128x128/apps/freeorion.png +share/icons/hicolor/16x16/apps/freeorion.png +share/icons/hicolor/24x24/apps/freeorion.png +share/icons/hicolor/256x256/apps/freeorion.png +share/icons/hicolor/32x32/apps/freeorion.png +share/icons/hicolor/64x64/apps/freeorion.png