summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2005-08-22 17:46:03 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2005-08-22 17:46:03 +0000
commitdcc450aabd2ae5a2b431f7841056b72e605ccb50 (patch)
tree0239a12333164720717dd2489c6d13ad7e016c6b /eclass
parentStable on sparc (diff)
downloadgentoo-2-dcc450aabd2ae5a2b431f7841056b72e605ccb50.tar.gz
gentoo-2-dcc450aabd2ae5a2b431f7841056b72e605ccb50.tar.bz2
gentoo-2-dcc450aabd2ae5a2b431f7841056b72e605ccb50.zip
Don't build .a files for drivers; Don't install libtool archives for server modules in /usr/lib/xorg/modules.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/x-modular.eclass15
1 files changed, 14 insertions, 1 deletions
diff --git a/eclass/x-modular.eclass b/eclass/x-modular.eclass
index 9c6885d356c1..a03b99a363fc 100644
--- a/eclass/x-modular.eclass
+++ b/eclass/x-modular.eclass
@@ -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/eclass/x-modular.eclass,v 1.6 2005/08/21 04:56:53 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.7 2005/08/22 17:46:03 spyderous Exp $
#
# Author: Donnie Berkholz <spyderous@gentoo.org>
#
@@ -44,6 +44,12 @@ if [[ "${PN/#font}" != "${PN}" ]] && [[ "${PN}" != "font-alias" ]]; then
media-fonts/font-alias"
fi
+# If we're a driver package
+if [[ "${PN/#xf86-video}" != "${PN}" ]] | [[ "${PN}" != "xf86-input" ]]; then
+ # Don't build static driver modules
+ DRIVER_OPTIONS="--disable-static"
+fi
+
DEPEND="${DEPEND}
dev-util/pkgconfig
x11-misc/util-macros"
@@ -107,6 +113,7 @@ x-modular_src_configure() {
if [ -x ./configure ]; then
econf --prefix=${XDIR} \
--datadir=${XDIR}/share \
+ ${DRIVER_OPTIONS} \
${CONFIGURE_OPTIONS}
fi
}
@@ -129,6 +136,12 @@ x-modular_src_install() {
# einstall forces datadir, so we need to re-force it
# datadir=${XDIR}/share \
# mandir=${XDIR}/share/man \
+
+ # Don't install libtool archives for server modules
+ if [[ -e ${D}/usr/lib/xorg/modules ]]; then
+ find ${D}/usr/lib/xorg/modules -name '*.la' \
+ | xargs rm -f
+ fi
}
x-modular_pkg_preinst() {