diff options
Diffstat (limited to 'x11-misc/xmountains/xmountains-2.9.ebuild')
-rw-r--r-- | x11-misc/xmountains/xmountains-2.9.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/x11-misc/xmountains/xmountains-2.9.ebuild b/x11-misc/xmountains/xmountains-2.9.ebuild new file mode 100644 index 000000000000..8297a95ee44a --- /dev/null +++ b/x11-misc/xmountains/xmountains-2.9.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit toolchain-funcs + +MY_P=${P/-/_} + +DESCRIPTION="Fractal terrains of snow-capped mountains near water" +HOMEPAGE="http://www.epcc.ed.ac.uk/~spb/xmountains/" +SRC_URI="http://www.epcc.ed.ac.uk/~spb/${PN}/${MY_P}.tar.gz" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="x11-misc/xbitmaps + x11-libs/libX11" +DEPEND="${RDEPEND} + x11-proto/xproto" + +S=${WORKDIR} + +src_prepare() { + # add missing include for strcmp + sed -i xmountains.c -e '1a#include <string.h> /* strcmp() */' || die + # remove obsolete references to global.* + sed -i Makefile.alt README -e 's|global\..||g' || die +} + +src_compile() { + emake \ + -f Makefile.alt \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + ${PN} +} + +src_install() { + dobin ${PN} + dodoc README + newman ${PN}.man ${PN}.1 +} |