# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-libs/pixman/pixman-0.11.8.ebuild,v 1.5 2008/07/21 14:50:00 cardoe Exp $ # Must be before x-modular eclass is inherited #SNAPSHOT="yes" inherit x-modular toolchain-funcs versionator DESCRIPTION="Low-level pixel manipulation routines" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="altivec mmx sse sse2" CONFIGURE_OPTIONS="$(use_enable altivec vmx) $(use_enable mmx) \ $(use_enable sse2) --disable-gtk" pkg_setup() { if use sse2 && ! use sse; then eerror "You enabled SSE2 but have SSE disabled. This is an invalid" eerror "configuration. Either do USE='sse' or USE='-sse2'" die "SSE2 selected without SSE" fi if use sse2 && ! $(version_is_at_least "4.2" "$(gcc-version)"); then eerror "SSE2 instructions require GCC 4.2 or higher. Either use" eerror "GCC 4.2 or higher or USE='-sse2'" die "SSE2 instructions require GCC 4.2 or higher" fi } src_unpack() { x-modular_src_unpack cd "${S}" use sse && epatch "${FILESDIR}"/${P}-sse.patch epatch "${FILESDIR}"/${P}-sse2-intrinsics-check.patch eautoreconf elibtoolize }