summaryrefslogtreecommitdiff
blob: 9a4d401a302c989adde32fe67e0813f7247601bb (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libXaw3d/libXaw3d-1.6-r1.ebuild,v 1.3 2012/01/24 19:12:50 ssuominen Exp $

EAPI=4

inherit flag-o-matic xorg-2

DESCRIPTION="X.Org Xaw3d library"

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

RDEPEND="x11-libs/libX11
	x11-libs/libXext
	x11-libs/libXmu
	x11-libs/libXt"
DEPEND="${RDEPEND}
	sys-devel/flex
	virtual/yacc
	x11-proto/xextproto
	x11-proto/xproto"

pkg_setup() {
	append-flags -Wno-error=pointer-to-int-cast

	XORG_CONFIGURE_OPTIONS=(
		$(use_enable unicode internationalization)
		)

	xorg-2_pkg_setup
}

src_prepare() {
	use unicode && \
		sed -i -e 's/Cflags:/& -DXAW_INTERNATIONALIZATION/' xaw3d.pc.in

	xorg-2_src_prepare
}