/[gentoo-x86]/x11-misc/xmountains/xmountains-2.9.ebuild
Gentoo

Contents of /x11-misc/xmountains/xmountains-2.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Nov 17 10:23:59 2012 UTC (22 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Specify LICENSE more precisely, see copyright.h in tarball, bug 441710.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xmountains/xmountains-2.9.ebuild,v 1.4 2012/03/09 11:11:09 phajdan.jr Exp $
4
5 EAPI=4
6 inherit toolchain-funcs
7
8 MY_P=${P/-/_}
9
10 DESCRIPTION="Fractal terrains of snow-capped mountains near water"
11 HOMEPAGE="http://www.epcc.ed.ac.uk/~spb/xmountains/"
12 SRC_URI="http://www.epcc.ed.ac.uk/~spb/${PN}/${MY_P}.tar.gz"
13
14 LICENSE="HPND"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
17 IUSE=""
18
19 RDEPEND="x11-misc/xbitmaps
20 x11-libs/libX11"
21 DEPEND="${RDEPEND}
22 x11-proto/xproto"
23
24 S=${WORKDIR}
25
26 src_prepare() {
27 # add missing include for strcmp
28 sed -i xmountains.c -e '1a#include <string.h> /* strcmp() */' || die
29 # remove obsolete references to global.*
30 sed -i Makefile.alt README -e 's|global\..||g' || die
31 }
32
33 src_compile() {
34 emake \
35 -f Makefile.alt \
36 CC="$(tc-getCC)" \
37 CFLAGS="${CFLAGS}" \
38 LDFLAGS="${LDFLAGS}" \
39 ${PN}
40 }
41
42 src_install() {
43 dobin ${PN}
44 dodoc README
45 newman ${PN}.man ${PN}.1
46 }

  ViewVC Help
Powered by ViewVC 1.1.20