qt: create a dbus variant
This commit is contained in:
parent
4b471ecc6e
commit
5ba1144515
@ -47,6 +47,7 @@ class Qt(Package):
|
||||
variant('krellpatch', default=False, description="Build with openspeedshop based patch.")
|
||||
variant('mesa', default=False, description="Depend on mesa.")
|
||||
variant('gtk', default=False, description="Build with gtkplus.")
|
||||
variant('dbus', default=False, description="Build with D-Bus support.")
|
||||
|
||||
patch('qt3krell.patch', when='@3.3.8b+krellpatch')
|
||||
|
||||
@ -61,7 +62,7 @@ class Qt(Package):
|
||||
depends_on("gtkplus", when='+gtk')
|
||||
depends_on("libxml2")
|
||||
depends_on("zlib")
|
||||
depends_on("dbus", when='@4:')
|
||||
depends_on("dbus", when='@4:+dbus')
|
||||
depends_on("libtiff")
|
||||
depends_on("libpng@1.2.56", when='@3')
|
||||
depends_on("libpng", when='@4:')
|
||||
@ -145,7 +146,7 @@ def patch(self):
|
||||
|
||||
@property
|
||||
def common_config_args(self):
|
||||
return [
|
||||
config_args = [
|
||||
'-prefix', self.prefix,
|
||||
'-v',
|
||||
'-opensource',
|
||||
@ -154,7 +155,6 @@ def common_config_args(self):
|
||||
'-shared',
|
||||
'-confirm-license',
|
||||
'-openssl-linked',
|
||||
'-dbus-linked',
|
||||
'-optimized-qmake',
|
||||
'-no-openvg',
|
||||
'-no-pch',
|
||||
@ -162,6 +162,13 @@ def common_config_args(self):
|
||||
'-no-nis'
|
||||
]
|
||||
|
||||
if '+dbus' in self.spec:
|
||||
config_args.append('-dbus-linked')
|
||||
else:
|
||||
config_args.append('-no-dbus')
|
||||
|
||||
return config_args
|
||||
|
||||
# Don't disable all the database drivers, but should
|
||||
# really get them into spack at some point.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user