/[gentoo-x86]/games-action/openclonk/openclonk-5.2.2.ebuild
Gentoo

Contents of /games-action/openclonk/openclonk-5.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Mar 18 18:49:33 2014 UTC (3 months, 3 weeks ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/openclonk/openclonk-5.2.2.ebuild,v 1.7 2012/07/29 12:00:46 hasufell Exp $
4
5 EAPI=4
6
7 WANT_AUTOMAKE="1.11"
8
9 inherit autotools eutils flag-o-matic python games
10
11 MY_P=${PN}-release-${PV}-src
12
13 DESCRIPTION="A free multiplayer action game where you control clonks"
14 HOMEPAGE="http://openclonk.org/"
15 SRC_URI="http://hg.${PN}.org/${PN}/archive/${MY_P}.tar.gz
16 http://${PN}.org/homepage/icon.png -> ${PN}.png"
17
18 LICENSE="BSD ISC CLONK-trademark LGPL-2.1 POSTGRESQL"
19 SLOT="0"
20 KEYWORDS="amd64 x86"
21 IUSE="dedicated doc mp3 sound"
22
23 RDEPEND="
24 media-libs/libpng:0
25 sys-libs/zlib
26 virtual/jpeg
27 !dedicated? (
28 media-libs/freetype:2
29 media-libs/glew
30 media-libs/libsdl[X,opengl,video]
31 virtual/opengl
32 virtual/glu
33 x11-libs/cairo
34 x11-libs/gdk-pixbuf
35 x11-libs/gtk+:3
36 x11-libs/libXpm
37 x11-libs/libXrandr
38 x11-libs/libXxf86vm
39 x11-libs/libX11
40 sound? ( media-libs/libsdl[audio]
41 media-libs/sdl-mixer[mp3?,vorbis,wav] )
42 )
43 dedicated? ( sys-libs/readline:0 )"
44 DEPEND="${RDEPEND}
45 >=dev-libs/boost-1.40
46 virtual/pkgconfig
47 doc? (
48 =dev-lang/python-2*
49 dev-libs/libxml2[python]
50 sys-devel/gettext
51 )
52 "
53
54 S=${WORKDIR}/${MY_P}
55
56 pkg_setup() {
57 games_pkg_setup
58
59 python_set_active_version 2
60 python_pkg_setup
61 }
62
63 src_prepare() {
64 # remove license files
65 sed \
66 -e '/dist_doc_DATA/s#planet/COPYING ##' \
67 -e '/dist_doc_DATA/s#licenses/LGPL.txt ##' \
68 -i Makefile.am || die
69
70 # verbose
71 sed \
72 -e "/AM_SILENT_RULES/d" \
73 -i configure.ac || die
74
75 # wrt #428496
76 epatch "${FILESDIR}"/${P}-zlib-1.2.6.patch
77
78 eautoreconf
79 }
80
81 src_configure() {
82 # QA
83 append-flags -fno-strict-aliasing
84
85 egamesconf \
86 --docdir=/usr/share/doc/${PF} \
87 $(use_enable dedicated console) \
88 $(use_enable sound) \
89 $(use_enable mp3) \
90 $(usex dedicated "--with-gtk=no" "--with-gtk=3.0") \
91 --without-openal \
92 --with-automatic-update=no
93 }
94
95 src_compile() {
96 emake
97
98 if use doc ; then
99 emake -C docs
100 fi
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install
105
106 if ! use dedicated; then
107 newgamesbin "${FILESDIR}"/${PN}-wrapper-script.sh ${PN}
108 doicon "${DISTDIR}"/${PN}.png
109 make_desktop_entry ${PN}
110 fi
111 use doc && dohtml -r docs/online/*
112
113 prepgamesdirs
114 }

  ViewVC Help
Powered by ViewVC 1.1.20