~aleteoryx/sexchat

ref: a1d5bb4e9ff16980bbbd8d886b1528f1021fc13f sexchat/flatpak/shared-modules/qt4/qt4-4.8.7-minimal.json -rw-r--r-- 3.2 KiB
a1d5bb4eAleteoryx restrict self-sent CTCP handling 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
    "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"
    ]
}