summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2010-01-07 23:05:41 +0100
committerTomas Chvatal <scarabeus@gentoo.org>2010-01-07 23:06:24 +0100
commitee975110515c729308cc9fa0b00d2965a051972a (patch)
tree5ac9360dabd67bbb3aefef6604f98eaed3c57351 /eclass
parentx11-drivers/xf86-video-intel: version bump (diff)
downloadx11-ee975110515c729308cc9fa0b00d2965a051972a.tar.gz
x11-ee975110515c729308cc9fa0b00d2965a051972a.tar.bz2
x11-ee975110515c729308cc9fa0b00d2965a051972a.zip
[x-modular-r2] Add static-libs useflag allowing us to disable static libs building.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/x-modular-r2.eclass13
1 files changed, 9 insertions, 4 deletions
diff --git a/eclass/x-modular-r2.eclass b/eclass/x-modular-r2.eclass
index a154e5c4..55cf7e7c 100644
--- a/eclass/x-modular-r2.eclass
+++ b/eclass/x-modular-r2.eclass
@@ -153,7 +153,7 @@ if [[ -z ${FONT} \
&& ${PN} != xorg-cf-files \
&& ${PN/xcursor} = ${PN} ]]; then
DEBUGGABLE="yes"
- IUSE+=" debug"
+ IUSE+=" debug static-libs"
fi
DEPEND+=" >=dev-util/pkgconfig-0.23"
@@ -287,19 +287,24 @@ x-modular-r2_flags_setup() {
# @DESCRIPTION:
# Perform any necessary pre-configuration steps, then run configure
x-modular-r2_src_configure() {
+ local myopts=""
+
x-modular-r2_flags_setup
[[ -n "${FONT}" ]] && x-modular-r2_font_configure
# @VARIABLE: CONFIGURE_OPTIONS
# @DESCRIPTION:
# Any options to pass to configure
-CONFIGURE_OPTIONS=${CONFIGURE_OPTIONS:=""}
+ CONFIGURE_OPTIONS=${CONFIGURE_OPTIONS:=""}
if [[ -x ${ECONF_SOURCE:-.}/configure ]]; then
+ if has static-libs ${IUSE//+}; then
+ myopts+=" $(use_enable static-libs static)"
+ fi
econf --prefix=${XDIR} \
--datadir=${XDIR}/share \
${FONT_OPTIONS} \
- ${DRIVER_OPTIONS} \
- ${CONFIGURE_OPTIONS}
+ ${CONFIGURE_OPTIONS} \
+ ${myopts}
fi
}