blob: 01ee4e1eb0e2365feb31101842d1f3a9683d860b (
plain)
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
|
Remove automagic Qt3 detection
https://bugs.gentoo.org/301744
--- create_config.sh
+++ create_config.sh
@@ -60,45 +60,6 @@
output "ECHO=/bin/echo -e"
fi
-# Checking for QT
-info "--- Checking for QT..."
-if which pkg-config > /dev/null 2>&1; then
- if pkg-config qt; then
- info "yes (pkg-config qt)\n"
- output "QT_LIBPATH=$(pkg-config qt --libs-only-L)"
- output "QT_LIBS=$(pkg-config qt --libs-only-l)"
- output "QT_INCPATH=$(pkg-config qt --cflags-only-I)"
- output "QT_CFLAGS=$(pkg-config qt --cflags-only-other)"
- QT_PREFIX=$(pkg-config qt --variable=prefix)
- elif pkg-config qt-mt; then
- info "yes (pkg-config qt-mt)\n"
- output "QT_LIBPATH=$(pkg-config qt-mt --libs-only-L)"
- output "QT_LIBS=$(pkg-config qt-mt --libs-only-l)"
- output "QT_INCPATH=$(pkg-config qt-mt --cflags-only-I)"
- output "QT_CFLAGS=$(pkg-config qt-mt --cflags-only-other)"
- QT_PREFIX=$(pkg-config qt-mt --variable=prefix)
- fi
-fi
-if [ -z "$QT_PREFIX" -a -n "$QTDIR" ]; then
- info "yes (QTDIR)\n"
- output "QT_LIBPATH=-L${QTDIR}/lib"
- if [ -n "$(ls ${QTDIR}/lib/libqt-mt* 2> /dev/null)" ]; then
- output "QT_LIBS=-lqt-mt"
- else
- output "QT_LIBS=-lqt"
- fi
- output "QT_INCPATH=-I${QTDIR}/include"
- output "QT_CFLAGS="
- QT_PREFIX=${QTDIR}
-fi
-if [ -n "$QT_PREFIX" ]; then
- QT_BIN="${QT_PREFIX}/bin"
- output "QT_BIN=${QT_BIN}"
- output "QT_MOC=${QT_BIN}/moc"
- output "QT_UIC=${QT_BIN}/uic"
-else
- info "no (optional)\n"
-fi
# Checking for libsigc++
sigc_version=1.2
|