118 lines
3.2 KiB
JSON
118 lines
3.2 KiB
JSON
{
|
|
"name": "qt4",
|
|
"config-opts": [
|
|
"-verbose",
|
|
"-confirm-license",
|
|
"-opensource",
|
|
"-release",
|
|
"-shared",
|
|
"-no-static",
|
|
"-fast",
|
|
"-datadir", "/app/lib/qt4",
|
|
"-importdir", "/app/lib/qt4/imports",
|
|
"-plugindir", "/app/lib/qt4/plugins",
|
|
"-translationdir", "/app/share/qt4/translations",
|
|
"-accessibility",
|
|
"-exceptions",
|
|
"-fontconfig",
|
|
"-glib",
|
|
"-dbus-linked",
|
|
"-openssl-linked",
|
|
"-optimized-qmake",
|
|
"-system-libjpeg",
|
|
"-system-libpng",
|
|
"-system-libtiff",
|
|
"-system-proxies",
|
|
"-system-zlib",
|
|
"-no-cups",
|
|
"-no-declarative",
|
|
"-no-gtkstyle",
|
|
"-no-javascript-jit",
|
|
"-no-libmng",
|
|
"-no-multimedia",
|
|
"-no-nis",
|
|
"-no-opengl",
|
|
"-no-phonon",
|
|
"-no-phonon-backend",
|
|
"-no-qt3support",
|
|
"-no-rpath",
|
|
"-no-script",
|
|
"-no-scripttools",
|
|
"-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-sqlite_symbian",
|
|
"-no-sql-symsql",
|
|
"-no-sql-tds",
|
|
"-no-svg",
|
|
"-no-webkit",
|
|
"-no-xmlpatterns",
|
|
"-nomake", "demos",
|
|
"-nomake", "docs",
|
|
"-nomake", "examples"
|
|
],
|
|
"build-options": {
|
|
"env": {
|
|
"CXXFLAGS": "-std=gnu++98 -O2",
|
|
"LD_LIBRARY_PATH": "/run/build/qt4/lib/"
|
|
}
|
|
},
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz",
|
|
"sha256": "e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0"
|
|
},
|
|
{
|
|
"type": "patch",
|
|
"path": "qt4-aarch64.patch"
|
|
},
|
|
{
|
|
"type": "patch",
|
|
"path": "disable-sslv3.patch"
|
|
},
|
|
{
|
|
"type": "patch",
|
|
"path": "fixgcc9.patch"
|
|
},
|
|
{
|
|
"type": "patch",
|
|
"path": "fixgcc11.patch"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"commands": [
|
|
"sed -i \"s|-O2|${CXXFLAGS}|\" mkspecs/common/{g++,gcc}-base.conf",
|
|
"sed -i \"/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g\" mkspecs/common/gcc-base-unix.conf",
|
|
"sed -i \"/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g\" mkspecs/common/gcc-base.conf"
|
|
]
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "qt4-openssl-1.1.patch"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"commands": [
|
|
"echo -e '#include<openssl/opensslv.h>\nint main(){return OPENSSL_VERSION_NUMBER>=0x010100000L?0:1;}' >has_openssl_1_1.c",
|
|
"gcc ${CFLAGS} has_openssl_1_1.c -o has_openssl_1_1",
|
|
"if ./has_openssl_1_1; then patch -p1 -i qt4-openssl-1.1.patch; fi"
|
|
]
|
|
}
|
|
],
|
|
"cleanup": [
|
|
"/bin",
|
|
"/include",
|
|
"/lib/*.a",
|
|
"/lib/*.la",
|
|
"/lib/*.prl",
|
|
"/lib/pkgconfig",
|
|
"/lib/qt4/mkspecs",
|
|
"/lib/qt4/q3porting.xml"
|
|
]
|
|
}
|