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

Contents of /games-rpg/arx-libertatis/arx-libertatis-1.0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Mar 14 00:56:08 2013 UTC (5 years, 6 months ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +12 -14 lines
remove cdinstall and demo useflag in preparation for arx-fatalis-data revbump

(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.3.ebuild,v 1.5 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="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
35 DOCS=( README.md AUTHORS CHANGELOG )
36
37 src_prepare() {
38 epatch "${FILESDIR}"/${P}-{gentoo,cmake2.8}.patch
39 }
40
41 src_configure() {
42 use debug && CMAKE_BUILD_TYPE=Debug
43
44 # editor does not build
45 local mycmakeargs=(
46 $(cmake-utils_use unity-build UNITY_BUILD)
47 $(cmake-utils_use_build tools TOOLS)
48 $(cmake-utils_use_build crash-reporter CRASHREPORTER)
49 -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
50 -DGAMESBINDIR="${GAMES_BINDIR}"
51 -DCMAKE_INSTALL_DATAROOTDIR="${GAMES_DATADIR_BASE}"
52 -DICONDIR=/usr/share/icons/hicolor/128x128/apps
53 )
54
55 cmake-utils_src_configure
56 }
57
58 src_compile() {
59 cmake-utils_src_compile
60 }
61
62 src_install() {
63 cmake-utils_src_install
64 dogamesbin "${FILESDIR}"/arx-data-copy
65 prepgamesdirs
66 }
67
68 pkg_preinst() {
69 games_pkg_preinst
70 gnome2_icon_savelist
71 }
72
73 pkg_postinst() {
74 elog "optional dependencies:"
75 elog " games-rpg/arx-fatalis-data (from CD or GOG)"
76 elog " games-rpg/arx-fatalis-demo (free demo)"
77 elog
78 elog "This package only installs the game binary."
79 elog "You need the demo or full game data. Also see:"
80 elog "http://wiki.arx-libertatis.org/Getting_the_game_data"
81 elog
82 elog "If you have already installed the game or use the STEAM version,"
83 elog "run \"${GAMES_BINDIR}/arx-data-copy /path/to/installed-arx /usr/local/share/games/arx\"."
84
85 games_pkg_postinst
86 gnome2_icon_cache_update
87 }
88
89 pkg_postrm() {
90 gnome2_icon_cache_update
91 }

  ViewVC Help
Powered by ViewVC 1.1.20