|
diff --git a/configure b/configure index 7824e36..3b474c6 100755 --- a/ configure+++ b/ configure |
|
@@ -2,13 +2,13 @@ |
2 | # |
2 | # |
3 | # Configures to build the Qtopia Environment |
3 | # Configures to build the Qtopia Environment |
4 | # |
4 | # |
5 | # Copyright 1999-2000 Trolltech AS. All rights reserved. |
5 | # Copyright 1999-2000 Trolltech AS. All rights reserved. |
6 | # |
6 | # |
7 | |
7 | |
8 | PLATFORM=linux-generic-g++ |
8 | PLATFORM=generic |
9 | SHARING=shared |
9 | SHARING=shared |
10 | DEBUG= |
10 | DEBUG= |
11 | QCONFIGARG= |
11 | QCONFIGARG= |
12 | |
12 | |
13 | touch .test.qpe. |
13 | touch .test.qpe. |
14 | if [ '!' -f ${OPIEDIR}/.test.qpe. ]; |
14 | if [ '!' -f ${OPIEDIR}/.test.qpe. ]; |
@@ -26,18 +26,15 @@ then |
26 | echo |
26 | echo |
27 | echo |
27 | echo |
28 | exit 1 |
28 | exit 1 |
29 | fi |
29 | fi |
30 | rm .test.qpe. |
30 | rm .test.qpe. |
31 | |
31 | |
32 | mkdir -p include/qpe |
32 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\.[0-9]*\.[0-9]*.*".*/\1/p' <library/version.h) |
33 | ( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) |
33 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION "[0-9]*\.\([0-9]\)\.[0-9]*.*".*/\1/p' <library/version.h) |
34 | |
34 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION "[0-9]*\.[0-9]*\.\([0-9]*\).*".*/\1/p' <library/version.h) |
35 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\.[0-9]*\.[0-9]*.*".*/\1/p' <include/qpe/version.h) |
| |
36 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION "[0-9]*\.\([0-9]\)\.[0-9]*.*".*/\1/p' <include/qpe/version.h) |
| |
37 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION "[0-9]*\.[0-9]*\.\([0-9]*\).*".*/\1/p' <include/qpe/version.h) |
| |
38 | |
35 | |
39 | TOMAKE= |
36 | TOMAKE= |
40 | |
37 | |
41 | if grep -q 'VERSION_STR.*"3' $QTDIR/include/qglobal.h |
38 | if grep -q 'VERSION_STR.*"3' $QTDIR/include/qglobal.h |
42 | then |
39 | then |
43 | QT3=yes |
40 | QT3=yes |
@@ -114,12 +111,20 @@ each option: |
114 | |
111 | |
115 | -platform target ... The platform you are building on ($PLATFORM) |
112 | -platform target ... The platform you are building on ($PLATFORM) |
116 | EOF |
113 | EOF |
117 | exit 0; |
114 | exit 0; |
118 | fi |
115 | fi |
119 | |
116 | |
| |
117 | if [ -f library/custom-$PLATFORM.h ] |
| |
118 | then |
| |
119 | rm -f library/custom.h |
| |
120 | ln -s custom-$PLATFORM.h library/custom.h |
| |
121 | fi |
| |
122 | |
| |
123 | mkdir -p include/qpe |
| |
124 | ( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) |
120 | |
125 | |
121 | echo Creating makefiles... |
126 | echo Creating makefiles... |
122 | |
127 | |
123 | sed -e 's/^\(VERSION.*= \).*/\1'$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT/ <library/library.pro >library/library.pro-v |
128 | sed -e 's/^\(VERSION.*= \).*/\1'$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT/ <library/library.pro >library/library.pro-v |
124 | mv library/library.pro-v library/library.pro |
129 | mv library/library.pro-v library/library.pro |
125 | |
130 | |
|