| # Copyright 1999-2011 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Header: /var/cvsroot/gentoo-x86/x11-libs/libSM/libSM-1.2.0.ebuild,v 1.12 2011/06/22 18:29:20 grobian Exp $ |
| |
| EAPI=3 |
| inherit xorg-2 |
| |
| DESCRIPTION="X.Org SM library" |
| |
| KEYWORDS="*" |
| IUSE="doc ipv6 +uuid" |
| |
| RDEPEND=">=x11-libs/libICE-1.0.5 |
| x11-libs/xtrans |
| x11-proto/xproto |
| !elibc_FreeBSD? ( !elibc_IRIX? ( !elibc_SunOS? ( |
| uuid? ( >=sys-apps/util-linux-2.16 ) |
| ) ) )" |
| DEPEND="${RDEPEND} |
| doc? ( app-text/xmlto )" |
| |
| pkg_setup() { |
| xorg-2_pkg_setup |
| |
| CONFIGURE_OPTIONS="$(use_enable ipv6) |
| $(use_enable doc docs) |
| $(use_with doc xmlto) |
| $(use_with uuid libuuid) |
| --without-fop" |
| # do not use uuid even if available in libc (like on FreeBSD) |
| use uuid || export ac_cv_func_uuid_create=no |
| # solaris hack |
| if use uuid && |
| [[ ${CHOST} == *-solaris* ]] && |
| [[ ! -d ${EROOT}/usr/include/uuid ]] && |
| [[ -d ${ROOT}/usr/include/uuid ]] |
| then |
| # ${ROOT} is proper here |
| export LIBUUID_CFLAGS="-I${ROOT}/usr/include/uuid" |
| export LIBUUID_LIBS="-luuid" |
| fi |
| } |