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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Mar 14 01:02:50 2013 UTC (5 years, 7 months ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
remove old

(Portage version: 2.2.0_alpha166/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.0.2-r1.ebuild,v 1.7 2013/03/02 21:20:49 hwoarang Exp $
4
5 EAPI=4
6
7 inherit eutils cmake-utils gnome2-utils games
8
9 DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game"
10 HOMEPAGE="http://arx-libertatis.org/"
11 SRC_URI="mirror://sourceforge/arx/${P}/${P}.tar.xz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="amd64 ~x86"
16 IUSE="cdinstall demo debug unity-build crash-reporter tools"
17
18 COMMON_DEPEND=">=dev-libs/boost-1.39
19 media-libs/devil[jpeg]
20 media-libs/freetype
21 media-libs/glew
22 media-libs/libsdl[opengl]
23 media-libs/openal
24 sys-libs/zlib
25 virtual/opengl
26 x11-libs/libX11
27 crash-reporter? (
28 dev-qt/qtcore:4[ssl]
29 dev-qt/qtgui:4
30 )"
31 RDEPEND="${COMMON_DEPEND}
32 crash-reporter? ( sys-devel/gdb )"
33 DEPEND="${COMMON_DEPEND}"
34 PDEPEND="cdinstall? ( >=games-rpg/arx-fatalis-data-1.21 )
35 demo? ( games-rpg/arx-fatalis-demo )"
36
37 DOCS=( README.md AUTHORS CHANGELOG )
38
39 src_prepare() {
40 epatch "${FILESDIR}"/${P}-{gentoo,cmake2.8}.patch
41 }
42
43 src_configure() {
44 use debug && CMAKE_BUILD_TYPE=Debug
45
46 # editor does not build
47 local mycmakeargs=(
48 $(cmake-utils_use unity-build UNITY_BUILD)
49 $(cmake-utils_use_build tools TOOLS)
50 $(cmake-utils_use_build crash-reporter CRASHREPORTER)
51 -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
52 -DGAMESBINDIR="${GAMES_BINDIR}"
53 -DCMAKE_INSTALL_DATAROOTDIR="${GAMES_DATADIR_BASE}"
54 -DICONDIR=/usr/share/icons/hicolor/128x128/apps
55 )
56
57 cmake-utils_src_configure
58 }
59
60 src_compile() {
61 cmake-utils_src_compile
62 }
63
64 src_install() {
65 cmake-utils_src_install
66 dogamesbin "${FILESDIR}"/arx-data-copy
67 prepgamesdirs
68 }
69
70 pkg_preinst() {
71 games_pkg_preinst
72 gnome2_icon_savelist
73 }
74
75 pkg_postinst() {
76 einfo "This package only installs the game binary."
77 if ! use cdinstall || ! use demo ; then
78 elog "You need the demo or full game data."
79 elog "See http://wiki.arx-libertatis.org/Getting_the_game_data for more information"
80 elog
81 elog "You might want to enable cdinstall or demo useflag."
82 elog
83 elog "If you have already installed the game or use the STEAM version,"
84 elog "run \"${GAMES_BINDIR}/arx-data-copy /path/to/installed-arx /usr/local/share/games/arx\"."
85 fi
86
87 games_pkg_postinst
88 gnome2_icon_cache_update
89 }
90
91 pkg_postrm() {
92 gnome2_icon_cache_update
93 }

  ViewVC Help
Powered by ViewVC 1.1.20