Resurrect combined qt4/5 package from b7dacb
This commit is contained in:
parent
59198e29f9
commit
db11373351
1 changed files with 41 additions and 36 deletions
|
@ -62,42 +62,47 @@ def patch(self):
|
||||||
filter_file(r'^QMAKE_CXX *=.*$', 'QMAKE_CXX = c++', qmake_conf)
|
filter_file(r'^QMAKE_CXX *=.*$', 'QMAKE_CXX = c++', qmake_conf)
|
||||||
|
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
|
||||||
if self.spec.satisfies('@4'):
|
|
||||||
configure('-v',
|
|
||||||
'-confirm-license',
|
|
||||||
'-opensource',
|
|
||||||
'-prefix', prefix,
|
|
||||||
'-openssl-linked',
|
|
||||||
'-dbus-linked',
|
|
||||||
#'-fast',
|
|
||||||
'-opengl',
|
|
||||||
'-optimized-qmake',
|
|
||||||
'-no-pch',
|
|
||||||
# phonon required for py-pyqt
|
|
||||||
# '-no-phonon',
|
|
||||||
# '-no-phonon-backend',
|
|
||||||
'-no-openvg')
|
|
||||||
elif self.spec.satisfies('@5'):
|
|
||||||
# Apparently this is the only way to
|
|
||||||
# "truly" get rid of webkit compiles now...
|
|
||||||
os.rename("qtwebkit","no-qtwebkit")
|
|
||||||
os.rename("qtwebkit-examples","no-qtwebkit-examples")
|
|
||||||
|
|
||||||
configure('-v',
|
@property
|
||||||
'-confirm-license',
|
def common_config_args(self):
|
||||||
'-opensource',
|
return [
|
||||||
'-prefix', prefix,
|
'-prefix', self.prefix,
|
||||||
'-openssl-linked',
|
'-v',
|
||||||
'-dbus-linked',
|
'-opensource',
|
||||||
#'-fast',
|
'-opengl',
|
||||||
'-opengl',
|
"-release",
|
||||||
'-qt-xcb',
|
'-shared',
|
||||||
'-optimized-qmake',
|
'-confirm-license',
|
||||||
'-no-pch',
|
'-openssl-linked',
|
||||||
# phonon required for py-pyqt
|
'-dbus-linked',
|
||||||
# '-no-phonon',
|
'-optimized-qmake',
|
||||||
# '-no-phonon-backend',
|
'-no-openvg',
|
||||||
'-no-openvg')
|
'-no-pch',
|
||||||
|
# NIS is deprecated in more recent glibc
|
||||||
|
"-no-nis",
|
||||||
|
# For now, disable all the database drivers
|
||||||
|
"-no-sql-db2", "-no-sql-ibase", "-no-sql-mysql", "-no-sql-oci", "-no-sql-odbc",
|
||||||
|
"-no-sql-psql", "-no-sql-sqlite", "-no-sql-sqlite2", "-no-sql-tds"]
|
||||||
|
|
||||||
|
|
||||||
|
@when('@4')
|
||||||
|
def configure(self):
|
||||||
|
configure('-fast',
|
||||||
|
'-no-webkit',
|
||||||
|
*self.common_config_args)
|
||||||
|
|
||||||
|
|
||||||
|
@when('@5')
|
||||||
|
def configure(self):
|
||||||
|
configure('-no-eglfs',
|
||||||
|
'-no-directfb',
|
||||||
|
'-qt-xcb',
|
||||||
|
# If someone wants to get a webkit build working, be my guest!
|
||||||
|
'-skip', 'qtwebkit',
|
||||||
|
*self.common_config_args)
|
||||||
|
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
self.configure()
|
||||||
make()
|
make()
|
||||||
make("install")
|
make("install")
|
||||||
|
|
Loading…
Reference in a new issue