summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-11-06 20:15:00 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-11-06 20:15:00 +0000
commitb1f66f93bb677c3d92ef8822c47268ffcb74850a (patch)
treeaa027fba074649c175840cd40639d25c5f16abc4 /games-engines
parentunmask dev-games/ogre-1.9.0 (diff)
downloadgentoo-2-b1f66f93bb677c3d92ef8822c47268ffcb74850a.tar.gz
gentoo-2-b1f66f93bb677c3d92ef8822c47268ffcb74850a.tar.bz2
gentoo-2-b1f66f93bb677c3d92ef8822c47268ffcb74850a.zip
initial import wrt #411295
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/openmw/ChangeLog11
-rw-r--r--games-engines/openmw/Manifest7
-rw-r--r--games-engines/openmw/files/openmw-0.33.0-build.patch18
-rw-r--r--games-engines/openmw/files/openmw-0.33.0-cfg.patch11
-rw-r--r--games-engines/openmw/files/openmw-0.33.0-opencs.patch13
-rw-r--r--games-engines/openmw/metadata.xml30
-rw-r--r--games-engines/openmw/openmw-0.33.0.ebuild103
7 files changed, 193 insertions, 0 deletions
diff --git a/games-engines/openmw/ChangeLog b/games-engines/openmw/ChangeLog
new file mode 100644
index 000000000000..b2fe51d18ad8
--- /dev/null
+++ b/games-engines/openmw/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-engines/openmw
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-engines/openmw/ChangeLog,v 1.1 2014/11/06 20:15:00 hasufell Exp $
+
+*openmw-0.33.0 (06 Nov 2014)
+
+ 06 Nov 2014; Julian Ospald <hasufell@gentoo.org> +openmw-0.33.0.ebuild,
+ +files/openmw-0.33.0-build.patch, +files/openmw-0.33.0-cfg.patch,
+ +files/openmw-0.33.0-opencs.patch, +metadata.xml:
+ initial import wrt #411295
+
diff --git a/games-engines/openmw/Manifest b/games-engines/openmw/Manifest
new file mode 100644
index 000000000000..f766cbe18fac
--- /dev/null
+++ b/games-engines/openmw/Manifest
@@ -0,0 +1,7 @@
+AUX openmw-0.33.0-build.patch 394 SHA256 5d579bfc39ae912ab8b43bee9130537a8461b41f41b02c86661ae9ac39ef8cd1 SHA512 3279314be809f2f5a8bdc195fdd1da081acbeb7f25785e045086e24bfbb8da18dc618f5ede192e6d93ca4610274ca548145066bd4ae53750db419db3be66bdf6 WHIRLPOOL eb4a3e17e852d3d36be7996697e23979e599179383ebc954ba542cdb7364ca89dc359807374af364dc2d58656275aba25eaee55eb9c040190f83be43ec35d0c3
+AUX openmw-0.33.0-cfg.patch 266 SHA256 306b952dc2a93bf448dc5e9905a0bd3c5dc5a275d5e5423f2e8f1391d2cb2efe SHA512 8a87005b26e5a32812a286d0b36480a505c3a38aec792e6d7caae108ac6bd9cfcb8b7ab9df8f9b39f347540f241c7ae63e64ad92f4951397d1230f8772973350 WHIRLPOOL c5bdb1ec934a3e5b6cb76a39f73cb73d9ffc5794e9506b788073e69b6a606648c291246706ffdadbdc22f32f1f2f56f7060d0dc8da3b59d4d5faa560f6313b7a
+AUX openmw-0.33.0-opencs.patch 324 SHA256 82793593651f0eee8486ea518e9170f348c49ef0aa7756c5e7d3a883f0af07b0 SHA512 788d66fce118e889947e7a9a4a5a749e405d39c273045703fa5f270e1b4566a09175e48bd9b065d84b9b8eb60ef76ad1186e2685d2a0ad2f5bbaca07e2396363 WHIRLPOOL 48bf6f917f081a40eb2ca9f4ff2b16e9e255b65703ee2b06ed9487575d0f3aa12756162942ab5fc4980a3f9cb7e0a73f38280f6f98e5a2c4055a4107277461f5
+DIST openmw-0.33.0.tar.gz 3524287 SHA256 62baa03eb206bea760c6b2b0260ae1a942eac34e7439a114398d2101154f4a83 SHA512 96525ee794277284f39a18bbbd01361422273ef073917b5e51ec7951bb15e59e0d0dd39ba70311588d4b18adccffac5c4fed4d9bf9e37ca0e865869277e795f9 WHIRLPOOL ab9df256ff107fcd361a6308c6bcb49aeb5a40289a224173d6d9f883042491c09a1f90af982be257c2e425d8dd1ec44a04025622d41c21c23c9683db182dfd30
+EBUILD openmw-0.33.0.ebuild 2387 SHA256 bc6b9bbdc3f07591a9f32a35e4b3b2969b0a8ce8d5d7029d55f34f1c80adf48e SHA512 b9036c0687d6b63ed264f3d2c14b0f6ae2554ace6d42d56208156b92c6396df34a7775c5fde5ed4e17b8691c511cf8ac4127932cfc0d9173bb41f29ba8170a27 WHIRLPOOL 06c80bf94eae6ac4ddda8cd3e22f796f24fcfc201356e33c6fda98d5e6c5b3c27f9a78972bb53b4015ad54271ce3c0392c8367396c53a02405f3bd9bd9764c4f
+MISC ChangeLog 375 SHA256 4f816487e02f6e68c382ec2a95356f7bdea18ecb1a671d8691768221c6a9be6e SHA512 dfc7fec8270ebe1e3d65a55aa9c5ee74b516b19ddaa70d7587dcea1318535b2256bb70733660800baf20af72a6b9c6ad23e77a72cd9ed2f75289088dce3e5241 WHIRLPOOL 4a12fea60ff1b5f53d66890c4205a9e99597f0d5d5d5c7b7805c1ae0ae4683b4108d51c8c95ca2f6b3be1316e300557c90b911dc48496f1b7bd8e891832cd322
+MISC metadata.xml 1125 SHA256 7cec4fa3a9e257ea00a5776de3ee5230927804ff96bc3d9a05f75bc4d794d629 SHA512 14da78b996386d420be0aa27ae302ca0bc54e2074d03e0bd4e04f6380105a9e1ac91e6ba565de8c04da8dacbcba88f2b706487c3036ff60aa141cd75d9241730 WHIRLPOOL 808d4881548fea60d99529e4970ac49c711741c47795719c6606b1cc32c08c5d044c546109ae0587b65d17b04162d7015fb4404dca973224ae340460dfccf661
diff --git a/games-engines/openmw/files/openmw-0.33.0-build.patch b/games-engines/openmw/files/openmw-0.33.0-build.patch
new file mode 100644
index 000000000000..acf58a24e46c
--- /dev/null
+++ b/games-engines/openmw/files/openmw-0.33.0-build.patch
@@ -0,0 +1,18 @@
+fix build
+
+--- extern/sdl4ogre/sdlcursormanager.cpp
++++ extern/sdl4ogre/sdlcursormanager.cpp
+@@ -1,3 +1,5 @@
++#include <stdexcept>
++
+ #include "sdlcursormanager.hpp"
+
+ #include <OgreHardwarePixelBuffer.h>
+--- extern/sdl4ogre/sdlwindowhelper.cpp
++++ extern/sdl4ogre/sdlwindowhelper.cpp
+@@ -1,3 +1,5 @@
++#include <stdexcept>
++
+ #include "sdlwindowhelper.hpp"
+
+ #include <OgreStringConverter.h>
diff --git a/games-engines/openmw/files/openmw-0.33.0-cfg.patch b/games-engines/openmw/files/openmw-0.33.0-cfg.patch
new file mode 100644
index 000000000000..18ca7320be03
--- /dev/null
+++ b/games-engines/openmw/files/openmw-0.33.0-cfg.patch
@@ -0,0 +1,11 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sat Jun 16 00:27:52 UTC 2012
+
+use cmake variable for data location
+
+--- files/openmw.cfg
++++ files/openmw.cfg
+@@ -1,2 +1,2 @@
+-data="?mw?Data Files"
++data=${MORROWIND_DATA_FILES}
+ resources=${MORROWIND_RESOURCE_FILES}
diff --git a/games-engines/openmw/files/openmw-0.33.0-opencs.patch b/games-engines/openmw/files/openmw-0.33.0-opencs.patch
new file mode 100644
index 000000000000..5abd7da9030a
--- /dev/null
+++ b/games-engines/openmw/files/openmw-0.33.0-opencs.patch
@@ -0,0 +1,13 @@
+https://bugs.openmw.org/issues/2108
+
+diff --git a/apps/opencs/view/render/cell.hpp b/apps/opencs/view/render/cell.hpp
+index e63e095..67117bf 100644
+--- a/apps/opencs/view/render/cell.hpp
++++ b/apps/opencs/view/render/cell.hpp
+@@ -3,6 +3,7 @@
+
+ #include <string>
+ #include <map>
++#include <memory>
+
+ #include <OgreVector3.h>
diff --git a/games-engines/openmw/metadata.xml b/games-engines/openmw/metadata.xml
new file mode 100644
index 000000000000..bd371bf23c84
--- /dev/null
+++ b/games-engines/openmw/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <herd>games</herd>
+ <use>
+ <flag name="devtools">Install development tools like
+ bsatool, esmtool and opencs.</flag>
+ <flag name="launcher">Install the launcher for configuring
+ OpenMW.</flag>
+ </use>
+ <upstream>
+ <changelog>https://github.com/OpenMW/openmw/releases</changelog>
+ <doc lang="en">https://wiki.openmw.org</doc>
+ <bugs-to>https://bugs.openmw.org/</bugs-to>
+ <remote-id type="github">OpenMW/openmw</remote-id>
+ </upstream>
+ <longdescription lang="en">
+ OpenMW is a new and modern engine based on the one that runs the 2002
+ open-world RPG Morrowind. The engine (OpenMW) will come with its own
+ editor (OpenCS) which will allow the user to edit or create their own
+ games. Both OpenCS and OpenMW are written from scratch and aren’t
+ made to support any third party programs the original Morrowind
+ engine uses to improve its functionality.
+ </longdescription>
+</pkgmetadata>
+
diff --git a/games-engines/openmw/openmw-0.33.0.ebuild b/games-engines/openmw/openmw-0.33.0.ebuild
new file mode 100644
index 000000000000..0cc09adf2922
--- /dev/null
+++ b/games-engines/openmw/openmw-0.33.0.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-engines/openmw/openmw-0.33.0.ebuild,v 1.1 2014/11/06 20:15:00 hasufell Exp $
+
+EAPI=5
+
+inherit eutils gnome2-utils cmake-utils games
+
+DESCRIPTION="An open source reimplementation of TES III: Morrowind"
+HOMEPAGE="http://openmw.org/"
+SRC_URI="https://github.com/OpenMW/openmw/archive/${P}.tar.gz"
+
+LICENSE="GPL-3 MIT BitstreamVera OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc cdinstall devtools +launcher"
+
+# XXX static build
+RDEPEND=">=dev-games/mygui-3.2.1
+ >=dev-games/ogre-1.9.0[cg,freeimage,ois,opengl,zip]
+ >=dev-libs/boost-1.46.0
+ dev-libs/tinyxml
+ >=dev-qt/qtcore-4.7.0:4
+ >=dev-qt/qtgui-4.7.0:4
+ media-libs/freetype:2
+ media-libs/libsdl2
+ media-libs/openal
+ >=sci-physics/bullet-2.80
+ virtual/ffmpeg
+ devtools? ( dev-qt/qtxmlpatterns:4 )
+ launcher? ( app-arch/unshield )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen media-gfx/graphviz )"
+PDEPEND="cdinstall? ( games-rpg/morrowind-data )"
+
+S=${WORKDIR}/${PN}-${P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cfg.patch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-opencs.patch
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBINDIR="${GAMES_BINDIR}"
+ $(cmake-utils_use_build devtools BSATOOL)
+ $(cmake-utils_use_build devtools ESMTOOL)
+ $(cmake-utils_use_build launcher LAUNCHER)
+ -DMWINIIMPORTER=ON
+ -DBUILD_MYGUI_PLUGIN=ON
+ $(cmake-utils_use_build devtools OPENCS)
+ -DUNITTESTS=OFF
+ -DDATADIR="${GAMES_DATADIR}"/${PN}
+ -DICONDIR=/usr/share/icons/hicolor/256x256/apps
+ -DLIBDIR="$(games_get_libdir)"
+ -DMORROWIND_DATA_FILES="${GAMES_DATADIR}"/morrowind-data
+ -DOPENMW_RESOURCE_FILES="${GAMES_DATADIR}"/${PN}/resources
+ -DSYSCONFDIR="${GAMES_SYSCONFDIR}"/${PN}
+ -DUSE_SYSTEM_TINYXML=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ emake -C "${CMAKE_BUILD_DIR}" doc
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc readme.txt
+
+ # about 46835 files, dodoc seems to have trouble
+ if use doc ; then
+ dodir "/usr/share/doc/${PF}"
+ find "${CMAKE_BUILD_DIR}"/docs/Doxygen/html \
+ -name '*.md5' -type f -delete
+ mv "${CMAKE_BUILD_DIR}"/docs/Doxygen/html \
+ "${D}/usr/share/doc/${PF}/" || die
+ fi
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}