/[gentoo-x86]/games-puzzle/shaaft/shaaft-0.5.0.ebuild
Gentoo

Contents of /games-puzzle/shaaft/shaaft-0.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Wed Feb 18 22:57:46 2015 UTC (3 years, 5 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +7 -10 lines
EAPI=5

(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/shaaft/shaaft-0.5.0.ebuild,v 1.17 2014/05/15 16:53:42 ulm Exp $
4
5 EAPI=5
6 inherit autotools eutils games
7
8 DESCRIPTION="A falling block game similar to Blockout"
9 HOMEPAGE="http://packages.gentoo.org/package/games-puzzle/shaaft"
10 SRC_URI="mirror://sourceforge/criticalmass/${P/s/S}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~ppc x86"
15 IUSE=""
16
17 DEPEND="virtual/opengl
18 sys-libs/zlib
19 media-libs/libpng:0
20 media-libs/libsdl[sound,opengl,video]
21 media-libs/sdl-mixer[mod]
22 media-libs/sdl-image[png]"
23 RDEPEND=${DEPEND}
24
25 S=${WORKDIR}/${P/s/S}
26
27 src_prepare() {
28 sed -i \
29 -e 's:DATA_DIR:"'${GAMES_DATADIR}'\/'${PN/s/S}\/'":g' \
30 game/main.cpp || die
31
32 sed -i \
33 -e 's:png12:png:g' \
34 -e '/^CFLAGS=""/d' \
35 -e '/^CXXFLAGS=""/d' \
36 configure.in || die
37
38 epatch \
39 "${FILESDIR}"/${P}-gcc34.patch \
40 "${FILESDIR}"/${P}-gcc41.patch \
41 "${FILESDIR}"/${P}-gcc43.patch \
42 "${FILESDIR}"/${P}-libpng15.patch
43 mv configure.in configure.ac || die
44 eautoreconf
45 }
46
47 src_configure() {
48 egamesconf --disable-optimize
49 }
50
51 src_install() {
52 DOCS="TODO.txt" default
53 rm -f "${D}/${GAMES_BINDIR}"/Packer
54 prepgamesdirs
55 }

  ViewVC Help
Powered by ViewVC 1.1.20