瀏覽代碼

openmw-0.44.0

master
Alarig Le Lay 11 月之前
父節點
當前提交
2d83cc27cc
共有 2 個檔案被更改,包括 128 行新增0 行删除
  1. 2
    0
      games-engines/openmw/Manifest
  2. 126
    0
      games-engines/openmw/openmw-0.44.0.ebuild

+ 2
- 0
games-engines/openmw/Manifest 查看文件

@@ -0,0 +1,2 @@
1
+DIST openmw-openmw-0.44.0.tar.gz 4976422 BLAKE2B 9dec8412aa68ac35ba51926c7e5c5a64ce717ea6677162e0b35439a59c482375b7729bd462fa6e8da2e9b463c1121cdca0a5b42f553095da82a83cefb11986ce SHA512 1b178891274361b7821ac1d3d66976ed5d443545531499d98f7ed30823f3891172cc5dcb3f7382ba0f561774a92b9ad8805e0c9582b78d2f010e4ed661219017
2
+EBUILD openmw-0.44.0.ebuild 3221 BLAKE2B 3ce8bd65a9eb23821ba34d2e20381512f5dbf75d475bb5128f75f4564dc6f36ede45ac6c5081ca777cef9bb28c5a98a74d527253669861bf8f68d22fdc4dfcb8 SHA512 821f365304bfd1a6f32814e1f5094b276acdc43d39d7f1a0c099c3610e7e1ad3a2f1cccc429a14bb75346f2d2faa9c2a1714b03325feaee78267e3437b3027da

+ 126
- 0
games-engines/openmw/openmw-0.44.0.ebuild 查看文件

@@ -0,0 +1,126 @@
1
+# Copyright 1999-2018 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+
4
+EAPI=6
5
+
6
+inherit cmake-utils gnome2-utils readme.gentoo-r1
7
+
8
+DESCRIPTION="Open source reimplementation of TES III: Morrowind"
9
+HOMEPAGE="https://openmw.org/"
10
+SRC_URI="https://gitlab.com/OpenMW/${PN}/-/archive/openmw-${PV}/openmw-${PN}-${PV}.tar.gz"
11
+LICENSE="GPL-3 MIT BitstreamVera ZLIB"
12
+SLOT="0"
13
+KEYWORDS="~amd64 ~x86"
14
+IUSE="doc devtools +qt5"
15
+
16
+RDEPEND="
17
+	dev-games/mygui
18
+	>=dev-games/openscenegraph-3.5.5[ffmpeg,jpeg,png,sdl,svg,truetype,zlib]
19
+	dev-games/openscenegraph-qt
20
+	dev-libs/boost:=[threads]
21
+	dev-libs/tinyxml[stl]
22
+	media-libs/libsdl2[joystick,opengl,video,X]
23
+	media-libs/openal
24
+	media-video/ffmpeg:=
25
+	>=sci-physics/bullet-2.86
26
+	virtual/opengl
27
+	qt5? (
28
+		app-arch/unshield
29
+		dev-qt/qtcore:5
30
+		dev-qt/qtnetwork:5
31
+		dev-qt/qtopengl:5
32
+		dev-qt/qtwidgets:5
33
+	)
34
+"
35
+DEPEND="${RDEPEND}
36
+	virtual/pkgconfig
37
+	doc? ( app-doc/doxygen[doc] dev-python/sphinx )"
38
+
39
+S="${WORKDIR}/${PN}-${P}"
40
+
41
+#PATCHES=( "${FILESDIR}/${P}-qt-5.11b3.patch" )
42
+
43
+src_prepare() {
44
+	cmake-utils_src_prepare
45
+
46
+	# We don't install license files
47
+	sed -e '/LICDIR/d' \
48
+		-i CMakeLists.txt || die
49
+	# Use the system tinyxml headers
50
+	sed -e 's/"tinyxml.h"/<tinyxml.h>/g' \
51
+		-e 's/"tinystr.h"/<tinystr.h>/g' \
52
+		-i extern/oics/ICSPrerequisites.h || die
53
+}
54
+
55
+src_configure() {
56
+	use devtools && ! use qt5 && \
57
+		elog "'qt5' USE flag is disabled, 'openmw-cs' will not be installed"
58
+
59
+	local mycmakeargs=(
60
+		-DBUILD_BSATOOL=$(usex devtools)
61
+		-DBUILD_DOCS=$(usex doc)
62
+		-DBUILD_ESMTOOL=$(usex devtools)
63
+		-DBUILD_LAUNCHER=$(usex qt5)
64
+		-DBUILD_NIFTEST=$(usex devtools)
65
+		-DBUILD_OPENCS=$(usex devtools $(usex qt5))
66
+		-DBUILD_WIZARD=$(usex qt5)
67
+		-DBUILD_UNITTESTS=OFF
68
+		-DGLOBAL_DATA_PATH=/usr/share
69
+		-DICONDIR="/usr/share/icons/hicolor/256x256/apps"
70
+		-DMORROWIND_DATA_FILES="/usr/share/morrowind-data"
71
+		-DUSE_SYSTEM_TINYXML=ON
72
+		-DDESIRED_QT_VERSION=5
73
+	)
74
+
75
+	cmake-utils_src_configure
76
+}
77
+
78
+src_compile() {
79
+	cmake-utils_src_compile
80
+
81
+	if use doc ; then
82
+		cmake-utils_src_compile doc
83
+		find "${CMAKE_BUILD_DIR}"/docs/Doxygen/html \
84
+			-name '*.md5' -type f -delete || die
85
+		HTML_DOCS=( "${CMAKE_BUILD_DIR}"/docs/Doxygen/html/. )
86
+	fi
87
+}
88
+
89
+src_install() {
90
+	cmake-utils_src_install
91
+
92
+	local DOC_CONTENTS="
93
+	You need the original Morrowind data files. If you haven't
94
+	installed them yet, you can install them straight via the
95
+	installation wizard which is the officially supported method
96
+	(either by using the launcher or by calling 'openmw-wizard'
97
+	directly).\n"
98
+
99
+	if ! use qt5; then
100
+		local DOC_CONTENTS+="\n\n
101
+		USE flag 'qt5' is disabled, 'openmw-launcher' and
102
+		'openmw-wizard' are not available. You are on your own for
103
+		making the Morrowind data files available and pointing
104
+		openmw at them.\n\n
105
+		Additionally; you must import the Morrowind.ini file before
106
+		running openmw with the Morrowind data files for the first
107
+		time. Typically this can be done like so:\n\n
108
+		\t mkdir -p ~/.config/openmw\n
109
+		\t openmw-iniimporter /path/to/Morrowind.ini ~/.config/openmw/openmw.cfg"
110
+	fi
111
+
112
+	readme.gentoo_create_doc
113
+}
114
+
115
+pkg_preinst() {
116
+	gnome2_icon_savelist
117
+}
118
+
119
+pkg_postinst() {
120
+	gnome2_icon_cache_update
121
+	readme.gentoo_print_elog
122
+}
123
+
124
+pkg_postrm() {
125
+	gnome2_icon_cache_update
126
+}

Loading…
取消
儲存