summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhasufell <julian.ospald@googlemail.com>2012-04-09 17:33:41 +0200
committerhasufell <julian.ospald@googlemail.com>2012-04-09 17:33:41 +0200
commit79e393eb2433cd1f80883155301b10a7c72676f1 (patch)
tree4a4a64a72c2feb9f8a6f0cdca296bfebc77ee50f /games-engines
parentgames-action/openclonk: add missing dies (diff)
downloadsunrise-reviewed-79e393eb2433cd1f80883155301b10a7c72676f1.tar.gz
sunrise-reviewed-79e393eb2433cd1f80883155301b10a7c72676f1.tar.bz2
sunrise-reviewed-79e393eb2433cd1f80883155301b10a7c72676f1.zip
games-engines/openmw: New ebuild for bug 411295 thanks to mgorny
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/openmw/ChangeLog10
-rw-r--r--games-engines/openmw/Manifest5
-rw-r--r--games-engines/openmw/files/openmw-0.13.0-cmake.patch57
-rw-r--r--games-engines/openmw/metadata.xml7
-rw-r--r--games-engines/openmw/openmw-0.13.0.ebuild68
5 files changed, 147 insertions, 0 deletions
diff --git a/games-engines/openmw/ChangeLog b/games-engines/openmw/ChangeLog
new file mode 100644
index 000000000..97c541100
--- /dev/null
+++ b/games-engines/openmw/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-engines/openmw
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*openmw-0.13.0 (09 Apr 2012)
+
+ 09 Apr 2012; hasufell <julian.ospald@googlemail.com> +openmw-0.13.0.ebuild,
+ +files/openmw-0.13.0-cmake.patch, +metadata.xml:
+ New ebuild for bug 411295 thanks to mgorny
+
diff --git a/games-engines/openmw/Manifest b/games-engines/openmw/Manifest
new file mode 100644
index 000000000..31dcb830a
--- /dev/null
+++ b/games-engines/openmw/Manifest
@@ -0,0 +1,5 @@
+AUX openmw-0.13.0-cmake.patch 2536 RMD160 35a6dd0fa0f4a0589069a48e3f085a54bfc25b61 SHA1 ce1f73d56cf6fa56a887a6bfb7aa744f9052ce21 SHA256 9f071a7b4c46068cffd1a409c1e5a77bd78c72830d6bdd3616d28bb409bf5d33
+DIST openmw-0.13.0-source.tar.bz2 1423739 RMD160 b0a2cabfd55633aad176e7b9b5a997e974435145 SHA1 c4d9b4da1d9a15e69cef676bfc9c7670e24db95e SHA256 16006571faf64585220bbc862bad8df48aaf097ac9ef6778b32a09a6376f8f4e
+EBUILD openmw-0.13.0.ebuild 1408 RMD160 cea164bbaa198b48599a096da4abfa06904fbaac SHA1 52b2ee113d29bfdd883532fe6305f02220373835 SHA256 a625d6e10840d8fa180dc1dc1d0e368499e4b3de2b613897e24d09a9a843a919
+MISC ChangeLog 326 RMD160 e8e535b755d18a00f5fe29d0c5454798ede5d54b SHA1 1057e46ac831dce474eed94bb2ec9a0d19f7ce30 SHA256 8df42f756ac6549dd693c2027199c80befcbf1730a54ea479adff7265efb65dc
+MISC metadata.xml 214 RMD160 efd8175069efb91061298ff4584218b633e44678 SHA1 d372fdbfcb7fd07a4082961d3f3527be4fca1d60 SHA256 c1f09dc7d5313cd2da7b82259c7846ed23144d62b15e59680ada90e2b6b4d154
diff --git a/games-engines/openmw/files/openmw-0.13.0-cmake.patch b/games-engines/openmw/files/openmw-0.13.0-cmake.patch
new file mode 100644
index 000000000..dce0b4b54
--- /dev/null
+++ b/games-engines/openmw/files/openmw-0.13.0-cmake.patch
@@ -0,0 +1,57 @@
+From: hasufell <julian.ospald@googlemail.com>
+Date: Sun Apr 8 18:48:34 UTC 2012
+
+add proper install rules
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -32,6 +32,14 @@
+ option(USE_MPG123 "use mpg123 + libsndfile for sound" ON)
+
+ find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
++
++# paths
++set(BINDIR "bin" CACHE PATH "Where to install binaries")
++set(DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "Sets the root of data directories to a non-default location")
++set(DATADIR "${CMAKE_INSTALL_PREFIX}/share/openmw" CACHE PATH "Sets the openmw data directories to a non-default location")
++set(DOCDIR "${DATAROOTDIR}/doc/openmw" CACHE PATH "Sets the doc directory to a non-default location.")
++set(MANDIR "${DATAROOTDIR}/man" CACHE PATH "Where to install manpages")
++set(SYSCONFDIR "" CACHE PATH "Set config dir")
+
+ # Location of morrowind data files
+ if(DPKG_PROGRAM)
+@@ -42,8 +50,8 @@
+ set(MORROWIND_DATA_FILES "./data" CACHE PATH "location of Morrowind data files")
+ set(MORROWIND_RESOURCE_FILES "./resources" CACHE PATH "location of OpenMW resources files")
+ else()
+- set(MORROWIND_DATA_FILES "data" CACHE PATH "location of Morrowind data files")
+- set(MORROWIND_RESOURCE_FILES "resources" CACHE PATH "location of OpenMW resources files")
++ set(MORROWIND_DATA_FILES "/usr/share/games/openmw/data/" CACHE PATH "location of Morrowind data files")
++ set(MORROWIND_RESOURCE_FILES "${DATADIR}/resources" CACHE PATH "location of OpenMW resources files")
+ endif(APPLE)
+ endif(DPKG_PROGRAM)
+
+@@ -574,3 +582,23 @@
+ set(CMAKE_CXX_FLAGS "-arch i386")
+
+ endif (APPLE)
++
++
++## Linux building
++
++# Install binaries
++INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/openmw" DESTINATION ${BINDIR} )
++INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/omwlauncher" DESTINATION ${BINDIR} )
++INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/esmtool" DESTINATION ${BINDIR} )
++
++# Install icon
++INSTALL(FILES "${OpenMW_SOURCE_DIR}/apps/launcher/resources/images/openmw.png" DESTINATION "share/pixmaps/")
++
++# Install global configuration files
++INSTALL(FILES "${OpenMW_BINARY_DIR}/openmw.cfg.install" DESTINATION ${SYSCONFDIR} RENAME "openmw.cfg" )
++INSTALL(FILES "${OpenMW_BINARY_DIR}/plugins.cfg" DESTINATION ${SYSCONFDIR} )
++INSTALL(FILES "${OpenMW_SOURCE_DIR}/files/launcher.cfg" DESTINATION ${SYSCONFDIR} )
++
++# Install resources
++INSTALL(DIRECTORY "${OpenMW_BINARY_DIR}/resources" DESTINATION ${DATADIR} )
++INSTALL(FILES "${OpenMW_BINARY_DIR}/launcher.qss" DESTINATION "${DATADIR}/resources" )
diff --git a/games-engines/openmw/metadata.xml b/games-engines/openmw/metadata.xml
new file mode 100644
index 000000000..cc3fe2494
--- /dev/null
+++ b/games-engines/openmw/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-engines/openmw/openmw-0.13.0.ebuild b/games-engines/openmw/openmw-0.13.0.ebuild
new file mode 100644
index 000000000..19611c8a4
--- /dev/null
+++ b/games-engines/openmw/openmw-0.13.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit eutils cmake-utils flag-o-matic games
+
+DESCRIPTION="An open source reimplementation of TES III: Morrowind"
+HOMEPAGE="http://openmw.org/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}-source.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="mp3 ffmpeg"
+
+RDEPEND=">=dev-games/ogre-1.7.0[cg,ois]
+ dev-games/ois
+ >=dev-libs/boost-1.46.0
+ media-gfx/nvidia-cg-toolkit
+ media-libs/freetype:2
+ media-libs/openal
+ sci-physics/bullet
+ >=x11-libs/qt-gui-4.7.0:4
+ mp3? (
+ ffmpeg? ( media-video/ffmpeg[mp3] )
+ !ffmpeg? ( media-libs/libsndfile
+ media-sound/mpg123 )
+ )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${P}-source
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cmake.patch
+
+ sed \
+ -e "s#globalPath(\"/etc/\")#globalPath(\"${GAMES_SYSCONFDIR}\")#" \
+ -i components/files/linuxpath.cpp || die
+}
+
+src_configure() {
+ # QA
+ append-flags -fno-strict-aliasing
+
+ local mycmakeargs
+ if use mp3 ; then
+ use ffmpeg && mycmakeargs="-DUSE_FFMPEG=ON" || \
+ mycmakeargs="-DUSE_MPG123=ON"
+ fi
+
+ mycmakeargs+=(
+ -DBINDIR="${GAMES_BINDIR}"
+ -DDATADIR="${GAMES_DATADIR}"/${PN}
+ -DSYSCONFDIR="${GAMES_SYSCONFDIR}"/${PN}
+ -DUSE_AUDIERE=OFF
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc readme.txt || die
+ prepgamesdirs
+}