Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2013 18:29:59 GMT
From:      Green Dog <fiziologus@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178489: [new port] games/openxcom
Message-ID:  <201305101829.r4AITxAQ012209@oldred.FreeBSD.org>
Resent-Message-ID: <201305101840.r4AIe05Q095401@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178489
>Category:       ports
>Synopsis:       [new port] games/openxcom
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 10 18:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Green Dog
>Release:        
>Organization:
>Environment:
>Description:
New port: games/openxcom.
open-source remake of the popular UFO: Enemy Unknown.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	openxcom
#	openxcom/files
#	openxcom/files/patch-CMakeLists.txt
#	openxcom/files/patch-src__Engine__Zoom.cpp
#	openxcom/files/patch-src__Engine__Options.cpp
#	openxcom/files/pkg-message.in
#	openxcom/Makefile
#	openxcom/distinfo
#	openxcom/pkg-descr
#	openxcom/pkg-plist
#
echo c - openxcom
mkdir -p openxcom > /dev/null 2>&1
echo c - openxcom/files
mkdir -p openxcom/files > /dev/null 2>&1
echo x - openxcom/files/patch-CMakeLists.txt
sed 's/^X//' >openxcom/files/patch-CMakeLists.txt << 'b50a30c043e36623e675312fbe1fcbd9'
X--- CMakeLists.txt.orig	2013-05-07 06:53:43.000000000 +0400
X+++ CMakeLists.txt	2013-05-10 10:12:06.000000000 +0400
X@@ -3,8 +3,8 @@
X cmake_minimum_required ( VERSION 2.8 )
X set ( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
X 
X-option ( DEV_BUILD "Development Build. Disable this for release builds" ON )
X-option ( BUILD_PACKAGE "Prepares build for creation of a package with CPack" ON )
X+option ( DEV_BUILD "Development Build. Disable this for release builds" OFF )
X+option ( BUILD_PACKAGE "Prepares build for creation of a package with CPack" OFF )
X option ( ENABLE_WARNING "Always show warnings (even for release builds)" OFF )
X option ( FATAL_WARNING "Treat warnings as errors" OFF )
X set ( MSVC_WARNING_LEVEL 3 CACHE STRING "Visual Studio warning levels" )
X@@ -91,21 +91,6 @@
X set ( CPACK_PACKAGE_VERSION_MAJOR ${CMAKE_MATCH_1} )
X set ( CPACK_PACKAGE_VERSION_MINOR ${CMAKE_MATCH_2} )
X set ( CPACK_PACKAGE_VERSION_PATCH "" )
X-find_package ( Git )
X-if ( GIT_FOUND )
X-  message("git found: ${GIT_EXECUTABLE}")
X-  execute_process ( COMMAND ${GIT_EXECUTABLE} describe --dirty
X-    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
X-    OUTPUT_VARIABLE git_describe_out
X-    ERROR_VARIABLE git_describe_error
X-    RESULT_VARIABLE git_describe_result
X-    )
X-  string ( REGEX MATCH "([a-z|0-9|.]*)-([0-9]*)-([a-z|0-9]*)([-|a-z]*)" git_commit "${git_describe_out}" )
X-  set ( git_tag ${CMAKE_MATCH_1} )
X-  set ( git_nb_commit ${CMAKE_MATCH_2} )
X-  set ( git_commit ${CMAKE_MATCH_3} )
X-  set ( git_dirty ${CMAKE_MATCH_4} )
X-endif()
X 
X if ( DEV_BUILD )
X   # Append the commit to version number
b50a30c043e36623e675312fbe1fcbd9
echo x - openxcom/files/patch-src__Engine__Zoom.cpp
sed 's/^X//' >openxcom/files/patch-src__Engine__Zoom.cpp << 'dcd2f06025bdd643a6e7988e783b6152'
X--- src/Engine/Zoom.cpp.orig	2013-05-07 06:53:43.000000000 +0400
X+++ src/Engine/Zoom.cpp	2013-05-09 16:24:25.000000000 +0400
X@@ -48,7 +48,18 @@
X #endif
X 
X #ifdef __GNUC__
X-#include <cpuid.h>
X+// From Clang source
X+#if !(__x86_64__ || __i386__)
X+#error this is for x86 only
X+#endif
X+
X+static __inline int __get_cpuid (unsigned int __level, unsigned int *__eax,
X+				unsigned int *__ebx, unsigned int *__ecx,
X+				unsigned int *__edx) {
X+	__asm("cpuid" : "=a"(*__eax), "=b" (*__ebx), "=c"(*__ecx), "=d"(*__edx)
X+			: "0"(__level));
X+	return 1;
X+}
X #endif
X 
X #ifdef __SSE2__
dcd2f06025bdd643a6e7988e783b6152
echo x - openxcom/files/patch-src__Engine__Options.cpp
sed 's/^X//' >openxcom/files/patch-src__Engine__Options.cpp << 'e6d1f71422398fb5281385703b9c242f'
X--- src/Engine/Options.cpp.orig	2013-05-07 06:53:43.000000000 +0400
X+++ src/Engine/Options.cpp	2013-05-09 19:28:30.000000000 +0400
X@@ -485,7 +485,8 @@
X  */
X std::string getDataFolder()
X {
X-	return _dataFolder;
X+// Return only global data folder
X+	return "%%DATADIR%%/data/";
X }
X 
X /**
e6d1f71422398fb5281385703b9c242f
echo x - openxcom/files/pkg-message.in
sed 's/^X//' >openxcom/files/pkg-message.in << '41764a8912bddd38d992390d6e9d7c7f'
X	OpenXcom need data files from original game.
X	Please copy follow directory in
X
X	XDG_DATA_DIR (default $HOME/.local/share/openxcom/data) or
X	DATADIR (default $PREFIX/share/openxcom/data):
X
X	GEODATA, GEOGRAPH, MAPS, ROUTES,
X	SOUND, TERRAIN, UFOGRAPH, UFOINTRO.
41764a8912bddd38d992390d6e9d7c7f
echo x - openxcom/Makefile
sed 's/^X//' >openxcom/Makefile << '5008cb82e563ce505aba3264c3ad0615'
X# Created by: Green Dog <fiziologus@gmail.com>
X# $FreeBSD:$
X
XPORTNAME=	openxcom
XPORTVERSION=	0.9
XCATEGORIES=	games
XMASTER_SITES=	GH
X
XMAINTAINER=	fiziologus@gmail.com
XCOMMENT=	An open-source remake of the original "UFO: Enemy Unknown"
X
X# Force clang (Compile error for gcc < 4.6)
X.if !exists(/usr/bin/clang)
XBUILD_DEPENDS=	${LOCALBASE}/bin/clang:${PORTSDIR}/lang/clang
X.endif
X
XLIB_DEPENDS=	yaml-cpp:${PORTSDIR}/devel/yaml-cpp
X
XCC=		clang
XCXX=		clang++
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	SupSuper
XGH_PROJECT=	OpenXcom
XGH_TAGNAME=	v${PORTVERSION}
XGH_COMMIT=	5c8b540
X
XUSES=		cmake
XUSE_SDL=	sdl mixer gfx image
XUSE_GMAKE=	yes
X
XSUB_FILES=	pkg-message
X
Xpost-patch:
X	${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \
X		${WRKSRC}/src/Engine/CrossPlatform.cpp
X	${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \
X		${WRKSRC}/src/Engine/Options.cpp
X
Xpost-install:
X	@${ECHO_MSG}
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_MSG}
X
X.include <bsd.port.mk>
5008cb82e563ce505aba3264c3ad0615
echo x - openxcom/distinfo
sed 's/^X//' >openxcom/distinfo << '2cc68cef12a933195658888698467fda'
XSHA256 (openxcom-0.9.tar.gz) = 340ff7292baa9a2b7ce4b244cc6dc0200c1d3b807a59087ef9827bba5c135634
XSIZE (openxcom-0.9.tar.gz) = 1540556
2cc68cef12a933195658888698467fda
echo x - openxcom/pkg-descr
sed 's/^X//' >openxcom/pkg-descr << '2482c2fd97d428bb6fc5c4a67ab48ba5'
XOpenXcom is an open-source remake of the popular
XUFO: Enemy Unknown (X-Com: UFO Defense in USA) videogame by
XMicroprose, licensed under the GPL and written in C++ / SDL.
X
XWWW: http://openxcom.org
2482c2fd97d428bb6fc5c4a67ab48ba5
echo x - openxcom/pkg-plist
sed 's/^X//' >openxcom/pkg-plist << 'c33d42734c2ab7690eedaf2b6f85d211'
Xbin/openxcom
X%%DATADIR%%/data/Language/Big.fnt
X%%DATADIR%%/data/Language/Bulgarian.geo
X%%DATADIR%%/data/Language/Bulgarian.lng
X%%DATADIR%%/data/Language/Czech.geo
X%%DATADIR%%/data/Language/Czech.lng
X%%DATADIR%%/data/Language/Danish.geo
X%%DATADIR%%/data/Language/Danish.lng
X%%DATADIR%%/data/Language/English.geo
X%%DATADIR%%/data/Language/English.lng
X%%DATADIR%%/data/Language/EnglishUk.geo
X%%DATADIR%%/data/Language/EnglishUk.lng
X%%DATADIR%%/data/Language/Font.dat
X%%DATADIR%%/data/Language/French.geo
X%%DATADIR%%/data/Language/French.lng
X%%DATADIR%%/data/Language/German.geo
X%%DATADIR%%/data/Language/German.lng
X%%DATADIR%%/data/Language/Hungarian.geo
X%%DATADIR%%/data/Language/Hungarian.lng
X%%DATADIR%%/data/Language/Italian.geo
X%%DATADIR%%/data/Language/Italian.lng
X%%DATADIR%%/data/Language/Polish.geo
X%%DATADIR%%/data/Language/Polish.lng
X%%DATADIR%%/data/Language/Portuguese.geo
X%%DATADIR%%/data/Language/Portuguese.lng
X%%DATADIR%%/data/Language/Romanian.geo
X%%DATADIR%%/data/Language/Romanian.lng
X%%DATADIR%%/data/Language/Russian.geo
X%%DATADIR%%/data/Language/Russian.lng
X%%DATADIR%%/data/Language/Small.fnt
X%%DATADIR%%/data/Language/Spanish.geo
X%%DATADIR%%/data/Language/Spanish.lng
X%%DATADIR%%/data/Language/SpanishAL.geo
X%%DATADIR%%/data/Language/SpanishAL.lng
X%%DATADIR%%/data/Language/Ukrainian.geo
X%%DATADIR%%/data/Language/Ukrainian.lng
X%%DATADIR%%/data/README.txt
X%%DATADIR%%/data/Ruleset/Xcom1Ruleset.rul
X%%DATADIR%%/data/Shaders/CRT-interlaced.OpenGL.shader
X%%DATADIR%%/data/Shaders/CRT-simple.OpenGL.shader
X%%DATADIR%%/data/Shaders/CRT.OpenGL.shader
X%%DATADIR%%/data/Shaders/Curvature.OpenGL.shader
X%%DATADIR%%/data/Shaders/HQ2x.OpenGL.shader
X%%DATADIR%%/data/Shaders/Openxcom.OpenGL.shader
X%%DATADIR%%/data/Shaders/Phosphor-simple.OpenGL.shader
X%%DATADIR%%/data/Shaders/Pixellate.OpenGL.shader
X%%DATADIR%%/data/Shaders/Quilez.OpenGL.shader
X%%DATADIR%%/data/Shaders/SABR.OpenGL.shader
X%%DATADIR%%/data/Shaders/Scale4xHQ.OpenGL.shader
X%%DATADIR%%/data/Shaders/dot_n_bloom.OpenGL.shader
X%%DATADIR%%/data/Shaders/heavybloom.OpenGL.shader
X%%DATADIR%%/data/Shaders/simplebloom.OpenGL.shader
X%%DATADIR%%/data/SoldierName/American.nam
X%%DATADIR%%/data/SoldierName/British.nam
X%%DATADIR%%/data/SoldierName/Czech.nam
X%%DATADIR%%/data/SoldierName/Danish.nam
X%%DATADIR%%/data/SoldierName/Finnish.nam
X%%DATADIR%%/data/SoldierName/French.nam
X%%DATADIR%%/data/SoldierName/German.nam
X%%DATADIR%%/data/SoldierName/Hungarian.nam
X%%DATADIR%%/data/SoldierName/Italian.nam
X%%DATADIR%%/data/SoldierName/Japanese.nam
X%%DATADIR%%/data/SoldierName/Polish.nam
X%%DATADIR%%/data/SoldierName/Portuguese.nam
X%%DATADIR%%/data/SoldierName/Romanian.nam
X%%DATADIR%%/data/SoldierName/Russian.nam
X%%DATADIR%%/data/SoldierName/Spanish.nam
X%%DATADIR%%/data/SoldierName/Swedish.nam
X@dirrm %%DATADIR%%/data/SoldierName
X@dirrm %%DATADIR%%/data/Shaders
X@dirrm %%DATADIR%%/data/Ruleset
X@dirrm %%DATADIR%%/data/Language
X@dirrm %%DATADIR%%/data
X@dirrm %%DATADIR%%
c33d42734c2ab7690eedaf2b6f85d211
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



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