diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2005-08-22 17:46:03 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2005-08-22 17:46:03 +0000 |
commit | a7a6ed85d28aa7d24bf40e9b2340f41c0f0af749 (patch) | |
tree | 4a0540864a1e246c5cb7f6a94aa1d3edd234c185 /eclass/x-modular.eclass | |
parent | Stable on sparc (diff) | |
download | historical-a7a6ed85d28aa7d24bf40e9b2340f41c0f0af749.tar.gz historical-a7a6ed85d28aa7d24bf40e9b2340f41c0f0af749.tar.bz2 historical-a7a6ed85d28aa7d24bf40e9b2340f41c0f0af749.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/x-modular.eclass')
-rw-r--r-- | eclass/x-modular.eclass | 15 |
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() { |