summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libcaca/libcaca-0.9-r1.ebuild')
-rw-r--r--media-libs/libcaca/libcaca-0.9-r1.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/media-libs/libcaca/libcaca-0.9-r1.ebuild b/media-libs/libcaca/libcaca-0.9-r1.ebuild
index d4a2e9a1c93c..c0c442015133 100644
--- a/media-libs/libcaca/libcaca-0.9-r1.ebuild
+++ b/media-libs/libcaca/libcaca-0.9-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/libcaca-0.9-r1.ebuild,v 1.6 2005/01/03 21:43:22 chriswhite Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/libcaca-0.9-r1.ebuild,v 1.7 2005/01/07 02:38:01 chriswhite Exp $
inherit eutils
@@ -38,7 +38,12 @@ src_compile() {
local myconf=""
if use X ; then
- myconf="${myconf} --enable-x11 --with-x --x-libraries=/usr/$(get_libdir)"
+ if [ -e /usr/lib/libX11.so ] || [ -e /usr/lib/libX11.a ]
+ then
+ myconf="${myconf} --enable-x11 --with-x --x-libraries=/usr/$(get_libdir)"
+ else
+ myconf="${myconf} --enable-x11 --with-x --x-libraries=/usr/X11R6/$(get_libdir)"
+ fi
else
myconf="${myconf} --disable-x11"
fi