/[gentoo-x86]/games-rpg/arx-libertatis/arx-libertatis-1.1-r1.ebuild
Gentoo

Contents of /games-rpg/arx-libertatis/arx-libertatis-1.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jul 19 19:47:28 2013 UTC (4 years, 10 months ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove old

(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-libertatis/arx-libertatis-1.1-r1.ebuild,v 1.1 2013/07/17 00:31:11 hasufell Exp $
4
5 EAPI=5
6
7 CMAKE_WARN_UNUSED_CLI=yes
8 inherit eutils cmake-utils gnome2-utils games
9
10 DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game"
11 HOMEPAGE="http://arx-libertatis.org/"
12 SRC_URI="mirror://sourceforge/arx/${P}/${P}.tar.xz"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="c++0x debug +unity-build crash-reporter static tools"
18
19 COMMON_DEPEND="
20 media-libs/freetype
21 media-libs/libsdl[X,video,opengl]
22 media-libs/openal
23 sys-libs/zlib
24 virtual/opengl
25 crash-reporter? (
26 dev-qt/qtcore:4[ssl]
27 dev-qt/qtgui:4
28 )
29 !static? ( media-libs/glew )"
30 RDEPEND="${COMMON_DEPEND}
31 crash-reporter? ( sys-devel/gdb )"
32 DEPEND="${COMMON_DEPEND}
33 dev-libs/boost
34 virtual/pkgconfig
35 static? ( media-libs/glew[static-libs] )"
36
37 DOCS=( README.md AUTHORS CHANGELOG )
38
39 PATCHES=( "${FILESDIR}"/${P}-map-marker.patch )
40
41 src_configure() {
42 # editor does not build
43 local mycmakeargs=(
44 $(cmake-utils_use_build crash-reporter CRASHREPORTER)
45 -DBUILD_EDITOR=OFF
46 $(cmake-utils_use_build tools TOOLS)
47 -DCMAKE_INSTALL_DATAROOTDIR="${GAMES_DATADIR_BASE}"
48 -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
49 $(cmake-utils_use debug DEBUG)
50 -DGAMESBINDIR="${GAMES_BINDIR}"
51 -DICONDIR=/usr/share/icons/hicolor/128x128/apps
52 -DINSTALL_SCRIPTS=ON
53 -DSET_OPTIMIZATION_FLAGS=OFF
54 -DSTRICT_USE=ON
55 $(cmake-utils_use unity-build UNITY_BUILD)
56 $(cmake-utils_use_use c++0x CXX11)
57 -DUSE_NATIVE_FS=ON
58 -DUSE_OPENAL=ON
59 -DUSE_OPENGL=ON
60 -DUSE_SDL=ON
61 $(usex crash-reporter "-DUSE_QT5=OFF" "")
62 $(cmake-utils_use_use static STATIC_LIBS)
63 )
64
65 cmake-utils_src_configure
66 }
67
68 src_compile() {
69 cmake-utils_src_compile
70 }
71
72 src_install() {
73 cmake-utils_src_install
74 prepgamesdirs
75 }
76
77 pkg_preinst() {
78 games_pkg_preinst
79 gnome2_icon_savelist
80 }
81
82 pkg_postinst() {
83 elog "optional dependencies:"
84 elog " games-rpg/arx-fatalis-data (from CD or GOG)"
85 elog " games-rpg/arx-fatalis-demo (free demo)"
86 elog
87 elog "This package only installs the game binary."
88 elog "You need the demo or full game data. Also see:"
89 elog "http://wiki.arx-libertatis.org/Getting_the_game_data"
90 elog
91 elog "If you have already installed the game or use the STEAM version,"
92 elog "run \"${GAMES_BINDIR}/arx-install-data\""
93
94 games_pkg_postinst
95 gnome2_icon_cache_update
96 }
97
98 pkg_postrm() {
99 gnome2_icon_cache_update
100 }

  ViewVC Help
Powered by ViewVC 1.1.20