summaryrefslogtreecommitdiff
blob: ef561b4c1f3ab2b2748b61b68ae454c2c57ce335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xsimpsons/xsimpsons-0.1-r1.ebuild,v 1.2 2008/12/07 21:15:57 ssuominen Exp $

inherit toolchain-funcs

DESCRIPTION="The Simpsons walking along the tops of your windows."
HOMEPAGE="http://www.gentoo.org"
SRC_URI="mirror://gentoo/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

RDEPEND="x11-libs/libX11
	x11-libs/libXext
	x11-libs/libXt
	x11-libs/libXpm"
DEPEND="${RDEPEND}
	x11-proto/xproto
	x11-proto/xextproto"

src_unpack() {
	unpack ${A}
	cd "${S}"

	# Replace Makefile, easier than patching it out!
	cat - > Makefile <<EOF
${PN}: xsimpsons.o toon.o
	\$(CC) \$(LDFLAGS) -o \$@ \$^ -lX11 -lXpm -lXext
EOF
}

src_compile() {
	emake CC="$(tc-getCC)" || die "emake failed"
}

src_install() {
	dobin xsimpsons || die "dobin failed"
	dodoc AUTHORS README
}