summaryrefslogtreecommitdiff
blob: ca63fb3af2b4592a843a70b735f4078c77c9eaf8 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/liblbxutil/liblbxutil-1.0.1.ebuild,v 1.9 2009/01/10 03:52:53 miknix Exp $

# Must be before x-modular eclass is inherited
#SNAPSHOT="yes"

inherit x-modular toolchain-funcs

DESCRIPTION="X.Org lbxutil library"

KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"

RDEPEND=""
DEPEND="${RDEPEND}
	x11-proto/xextproto"
IUSE=""

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

	if tc-is-cross-compiler; then
		echo 'mkg3states_LINK = '"$(tc-getBUILD_CC)"' -o mkg3states' \
		     '$(srcdir)/image/mkg3states.c \#' >> \
		     src/Makefile.am || die "Cannot hack Makefile.am to x-compile."
	fi

	eautoreconf
}