summaryrefslogtreecommitdiff
authorar <ar>2005-01-22 21:53:54 (UTC)
committer ar <ar>2005-01-22 21:53:54 (UTC)
commit687b18f07228aac2b168ea5e3204c1c3518929a7 (patch) (unidiff)
tree485b49ef6150e7aad4bde0a942c0b17d863b240c
parent6d08fa658ab487426eebe934fdd92cd3bbb925b3 (diff)
downloadopie-687b18f07228aac2b168ea5e3204c1c3518929a7.zip
opie-687b18f07228aac2b168ea5e3204c1c3518929a7.tar.gz
opie-687b18f07228aac2b168ea5e3204c1c3518929a7.tar.bz2
- build opie-freetype against freetype2
you must specified <prefix>/include/freetype2 in dependencies menu (make menuconfig)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make3
-rw-r--r--dependencies.in8
-rw-r--r--freetype/config.in2
-rw-r--r--freetype/fontfactoryttf_qws.cpp4
-rw-r--r--freetype/fontfactoryttf_qws.h4
-rw-r--r--freetype/freetype.pro6
-rw-r--r--mkspecs/qws/linux-oe-g++/qmake.conf2
7 files changed, 26 insertions, 3 deletions
diff --git a/Rules.make b/Rules.make
index bdfe6d4..3fbce76 100644
--- a/Rules.make
+++ b/Rules.make
@@ -1,316 +1,319 @@
1.phony: force 1.phony: force
2force: 2force:
3 3
4$(configs) : 4$(configs) :
5 $(call makecfg,$@) 5 $(call makecfg,$@)
6 6
7$(TOPDIR)/gen.pro : $(TOPDIR)/.config 7$(TOPDIR)/gen.pro : $(TOPDIR)/.config
8 echo > $@ 8 echo > $@
9# added for threaded version 9# added for threaded version
10ifneq ($(CONFIG_THREADED),) 10ifneq ($(CONFIG_THREADED),)
11 echo CONFIG += thread >> $@ 11 echo CONFIG += thread >> $@
12else 12else
13 echo CONFIG -= thread >> $@ 13 echo CONFIG -= thread >> $@
14endif 14endif
15# added for auto stripped build 15# added for auto stripped build
16ifneq ($(CONFIG_STRIP),) 16ifneq ($(CONFIG_STRIP),)
17 echo CONFIG += strip >> $@ 17 echo CONFIG += strip >> $@
18endif 18endif
19ifneq ($(CONFIG_DEBUG),) 19ifneq ($(CONFIG_DEBUG),)
20 echo CONFIG += debug >> $@ 20 echo CONFIG += debug >> $@
21 echo CONFIG -= release >> $@ 21 echo CONFIG -= release >> $@
22 echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@ 22 echo DEFINES += "QT_COMPONENT_DEBUG=2" >> $@
23 echo DEFINES += QT_DEBUG >> $@ 23 echo DEFINES += QT_DEBUG >> $@
24else 24else
25 echo CONFIG -= debug >> $@ 25 echo CONFIG -= debug >> $@
26 echo CONFIG += release >> $@ 26 echo CONFIG += release >> $@
27 echo DEFINES += "OPIE_NO_DEBUG" >> $@ 27 echo DEFINES += "OPIE_NO_DEBUG" >> $@
28endif 28endif
29ifeq ($(CONFIG_STATIC),y) 29ifeq ($(CONFIG_STATIC),y)
30 echo !contains\( TARGET,qpe \) \{ >> $@ 30 echo !contains\( TARGET,qpe \) \{ >> $@
31 echo CONFIG += staticlib >> $@ 31 echo CONFIG += staticlib >> $@
32 echo \} >> $@ 32 echo \} >> $@
33endif 33endif
34ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 34ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3
35 echo CONFIG -= qt3 >> $@ 35 echo CONFIG -= qt3 >> $@
36else 36else
37 echo CONFIG += qt3 >> $@ 37 echo CONFIG += qt3 >> $@
38endif 38endif
39ifneq ($(CONFIG_QUICK_LAUNCH),) 39ifneq ($(CONFIG_QUICK_LAUNCH),)
40 echo contains\( CONFIG, quick-app \) \{ >> $@ 40 echo contains\( CONFIG, quick-app \) \{ >> $@
41 echo CONFIG -= staticlib >> $@ 41 echo CONFIG -= staticlib >> $@
42 echo CONFIG -= quick-app >> $@ 42 echo CONFIG -= quick-app >> $@
43 echo CONFIG += quick-app-lib >> $@ 43 echo CONFIG += quick-app-lib >> $@
44 echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@ 44 echo QUICKLAUNCH_PATH = $(CONFIG_QUICKLAUNCH_PATH) >> $@
45 echo \} >> $@ 45 echo \} >> $@
46else 46else
47 echo contains\( CONFIG, quick-app \) \{ >> $@ 47 echo contains\( CONFIG, quick-app \) \{ >> $@
48 echo CONFIG -= quick-app >> $@ 48 echo CONFIG -= quick-app >> $@
49 echo CONFIG += quick-app-bin >> $@ 49 echo CONFIG += quick-app-bin >> $@
50 echo \} >> $@ 50 echo \} >> $@
51endif 51endif
52ifeq ($(CONFIG_SQL_PIM_BACKEND),y) 52ifeq ($(CONFIG_SQL_PIM_BACKEND),y)
53 echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ 53 echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@
54else 54else
55 echo ENABLE_SQL_PIM_BACKEND=n >> $@ 55 echo ENABLE_SQL_PIM_BACKEND=n >> $@
56endif 56endif
57ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) 57ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y)
58 echo CONFIG += no-override >> $@ 58 echo CONFIG += no-override >> $@
59endif 59endif
60ifeq ($(CONFIG_OPIELOGIN_USEPAM),y) 60ifeq ($(CONFIG_OPIELOGIN_USEPAM),y)
61 echo CONFIG += OPIELOGIN_USEPAM >> $@ 61 echo CONFIG += OPIELOGIN_USEPAM >> $@
62endif 62endif
63ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y) 63ifeq ($(CONFIG_LIBQPE_WITHROHFEEDBACK),y)
64 echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@ 64 echo CONFIG += LIBQPE_WITHROHFEEDBACK >> $@
65endif 65endif
66ifeq ($(CONFIG_OPIE_NO_ERASERECT_FIX),y) 66ifeq ($(CONFIG_OPIE_NO_ERASERECT_FIX),y)
67 echo DEFINES += OPIE_NO_ERASE_RECT_HACKFIX >> $@ 67 echo DEFINES += OPIE_NO_ERASE_RECT_HACKFIX >> $@
68endif 68endif
69ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) 69ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y)
70 echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ 70 echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@
71endif 71endif
72ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y) 72ifeq ($(CONFIG_OPIE_NO_BUILTIN_CALIBRATE),y)
73 echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@ 73 echo DEFINES += OPIE_NO_BUILTIN_CALIBRATE >> $@
74endif 74endif
75ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y) 75ifeq ($(CONFIG_USE_REALTIME_AUDIO_THREAD),y)
76 echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@ 76 echo DEFINES += USE_REALTIME_AUDIO_THREAD >> $@
77endif 77endif
78ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y) 78ifeq ($(CONFIG_USE_FILE_NOTIFICATION),y)
79 echo DEFINES += USE_FILE_NOTIFICATION >> $@ 79 echo DEFINES += USE_FILE_NOTIFICATION >> $@
80endif 80endif
81ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y) 81ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y)
82 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ 82 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@
83endif 83endif
84ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) 84ifeq ($(CONFIG_OPIE_NEW_ALLOC),y)
85 echo DEFINES += OPIE_NEW_MALLOC >> $@ 85 echo DEFINES += OPIE_NEW_MALLOC >> $@
86endif 86endif
87ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) 87ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y)
88 echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ 88 echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@
89endif 89endif
90 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ 90 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@
91ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) 91ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y)
92 echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ 92 echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@
93endif 93endif
94ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) 94ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y)
95 echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ 95 echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@
96 endif 96 endif
97# Write LIB dirs and INC dirs... 97# Write LIB dirs and INC dirs...
98ifeq ($(CONFIG_LIBETPAN_DEP),y) 98ifeq ($(CONFIG_LIBETPAN_DEP),y)
99 echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ 99 echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@
100 echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ 100 echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@
101endif 101endif
102ifeq ($(CONFIG_LIBPCAP_DEP),y) 102ifeq ($(CONFIG_LIBPCAP_DEP),y)
103 echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ 103 echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@
104 echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ 104 echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@
105endif 105endif
106ifeq ($(CONFIG_LIBSQLITE_DEP),y) 106ifeq ($(CONFIG_LIBSQLITE_DEP),y)
107 echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ 107 echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@
108 echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ 108 echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@
109endif 109endif
110ifeq ($(CONFIG_LIBXINE_DEP),y) 110ifeq ($(CONFIG_LIBXINE_DEP),y)
111 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ 111 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@
112 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ 112 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@
113endif 113endif
114ifeq ($(CONFIG_LIBBLUEZ_DEP),y) 114ifeq ($(CONFIG_LIBBLUEZ_DEP),y)
115 echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ 115 echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@
116 echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ 116 echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@
117endif 117endif
118ifeq ($(CONFIG_LIBIPK_DEP),y) 118ifeq ($(CONFIG_LIBIPK_DEP),y)
119 echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ 119 echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@
120 echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ 120 echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@
121endif 121endif
122ifeq ($(CONFIG_LIBSDK_DEP),y) 122ifeq ($(CONFIG_LIBSDK_DEP),y)
123 echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ 123 echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@
124 echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ 124 echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@
125endif 125endif
126ifeq ($(CONFIG_LIBSWORD_DEP),y) 126ifeq ($(CONFIG_LIBSWORD_DEP),y)
127 echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ 127 echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@
128 echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ 128 echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@
129endif 129endif
130ifeq ($(CONFIG_LIBFREETYPE2_DEP),y)
131 echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@
132endif
130$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages 133$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
131 @echo Generating dependency information... 134 @echo Generating dependency information...
132# add to subdir-y, and add descend rules 135# add to subdir-y, and add descend rules
133 @cat $(TOPDIR)/packages | grep -v '^#' | \ 136 @cat $(TOPDIR)/packages | grep -v '^#' | \
134 awk '{print \ 137 awk '{print \
135 ".PHONY : " $$2 "\n" \ 138 ".PHONY : " $$2 "\n" \
136 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ 139 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \
137 print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends 140 print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends
138 cat $(TOPDIR)/packages | grep -v '^#' | \ 141 cat $(TOPDIR)/packages | grep -v '^#' | \
139 perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ 142 perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \
140 >> $(TOPDIR)/.depends 143 >> $(TOPDIR)/.depends
141# interpackage dependency generation 144# interpackage dependency generation
142 @cat $(TOPDIR)/packages | \ 145 @cat $(TOPDIR)/packages | \
143 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends 146 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends
144 147
145$(TOPDIR)/.depends.cfgs: 148$(TOPDIR)/.depends.cfgs:
146# config.in interdependencies 149# config.in interdependencies
147 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs 150 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs
148 @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@ 151 @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@
149 @-rm -f dirs 152 @-rm -f dirs
150 153
151$(QTDIR)/stamp-headers : 154$(QTDIR)/stamp-headers :
152 @-rm -f $(QTDIR)/stamp-headers* 155 @-rm -f $(QTDIR)/stamp-headers*
153 ( cd $(QTDIR)/include; \ 156 ( cd $(QTDIR)/include; \
154 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ 157 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \
155 qcopchannel_qws.h qwindowsystem_qws.h \ 158 qcopchannel_qws.h qwindowsystem_qws.h \
156 qfontmanager_qws.h qwsdefaultdecoration_qws.h)) 159 qfontmanager_qws.h qwsdefaultdecoration_qws.h))
157 touch $@ 160 touch $@
158 161
159$(QTDIR)/stamp-headers-x11 : 162$(QTDIR)/stamp-headers-x11 :
160 @-rm -f $(QTDIR)/stamp-headers* 163 @-rm -f $(QTDIR)/stamp-headers*
161 cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) 164 cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h)
162 touch $@ 165 touch $@
163 166
164$(OPIEDIR)/stamp-headers : 167$(OPIEDIR)/stamp-headers :
165 @-rm -f $(OPIEDIR)/stamp-headers* 168 @-rm -f $(OPIEDIR)/stamp-headers*
166 mkdir -p $(TOPDIR)/include/qpe \ 169 mkdir -p $(TOPDIR)/include/qpe \
167 $(TOPDIR)/include/qtopia \ 170 $(TOPDIR)/include/qtopia \
168 $(TOPDIR)/include/opie \ 171 $(TOPDIR)/include/opie \
169 $(TOPDIR)/include/opie2 \ 172 $(TOPDIR)/include/opie2 \
170 $(TOPDIR)/include/opie2/private \ 173 $(TOPDIR)/include/opie2/private \
171 $(TOPDIR)/include/qtopia/private \ 174 $(TOPDIR)/include/qtopia/private \
172 $(TOPDIR)/include/sl 175 $(TOPDIR)/include/sl
173 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 176 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
174 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 177 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
175 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 178 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
176 # libopie2 179 # libopie2
177 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) 180 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; )
178 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) 181 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; )
179 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) 182 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; )
180 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) 183 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; )
181 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) 184 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; )
182 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) 185 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; )
183 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) 186 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; )
184 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) 187 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; )
185 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) 188 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; )
186 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) 189 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; )
187 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) 190 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; )
188 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) 191 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; )
189 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) 192 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; )
190 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) 193 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; )
191 # auxilliary libraries 194 # auxilliary libraries
192 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) 195 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; )
193 ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) 196 ( cd include/sl && ln -sf ../../libslcompat/*.h .; )
194 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) 197 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; )
195 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) 198 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; )
196 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) 199 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; )
197 # all 200 # all
198 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 201 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
199 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) 202 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done )
200 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 203 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
201 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) 204 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done )
202 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 205 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
203 touch $@ 206 touch $@
204 207
205$(OPIEDIR)/stamp-headers-x11 : 208$(OPIEDIR)/stamp-headers-x11 :
206 @-rm -f $(OPIEDIR)/stamp-headers* 209 @-rm -f $(OPIEDIR)/stamp-headers*
207 mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ 210 mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \
208 $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private 211 $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private
209 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 212 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
210 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 213 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
211 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 214 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
212 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) 215 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; )
213 ( cd include/opie && ln -sf ../../libsql/*.h .; ) 216 ( cd include/opie && ln -sf ../../libsql/*.h .; )
214 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) 217 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; )
215 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 218 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
216 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) 219 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done )
217 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 220 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
218 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) 221 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; )
219 touch $@ 222 touch $@
220 223
221$(TOPDIR)/library/custom.h : $(TOPDIR)/.config 224$(TOPDIR)/library/custom.h : $(TOPDIR)/.config
222 @-rm -f $@ 225 @-rm -f $@
223 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ 226 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\
224 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) 227 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@)
225 @touch $@ 228 @touch $@
226 229
227$(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: 230$(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake:
228 +$(call descend,$(shell dirname $@),$(shell basename $@)) 231 +$(call descend,$(shell dirname $@),$(shell basename $@))
229 232
230menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in 233menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in
231 $(TOPDIR)/scripts/kconfig/mconf ./config.in 234 $(TOPDIR)/scripts/kconfig/mconf ./config.in
232 @touch ./.config.stamp 235 @touch ./.config.stamp
233 236
234xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 237xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
235 $(TOPDIR)/scripts/kconfig/qconf ./config.in 238 $(TOPDIR)/scripts/kconfig/qconf ./config.in
236 @touch .config.stamp 239 @touch .config.stamp
237 240
238gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 241gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
239 $(TOPDIR)/scripts/kconfig/gconf ./config.in 242 $(TOPDIR)/scripts/kconfig/gconf ./config.in
240 @touch .config.stamp 243 @touch .config.stamp
241 244
242config: $(TOPDIR)/scripts/kconfig/conf ./config.in 245config: $(TOPDIR)/scripts/kconfig/conf ./config.in
243 $(TOPDIR)/scripts/kconfig/conf ./config.in 246 $(TOPDIR)/scripts/kconfig/conf ./config.in
244 @touch .config.stamp 247 @touch .config.stamp
245 248
246oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 249oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
247 $(TOPDIR)/scripts/kconfig/conf -o ./config.in 250 $(TOPDIR)/scripts/kconfig/conf -o ./config.in
248 @touch .config.stamp 251 @touch .config.stamp
249 252
250randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 253randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
251 $(TOPDIR)/scripts/kconfig/conf -r ./config.in 254 $(TOPDIR)/scripts/kconfig/conf -r ./config.in
252 @touch .config.stamp 255 @touch .config.stamp
253 256
254allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 257allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
255 $(TOPDIR)/scripts/kconfig/conf -y ./config.in 258 $(TOPDIR)/scripts/kconfig/conf -y ./config.in
256 @touch .config.stamp 259 @touch .config.stamp
257 260
258allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 261allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
259 $(TOPDIR)/scripts/kconfig/conf -n ./config.in 262 $(TOPDIR)/scripts/kconfig/conf -n ./config.in
260 @touch .config.stamp 263 @touch .config.stamp
261 264
262defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 265defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
263 $(TOPDIR)/scripts/kconfig/conf -d ./config.in 266 $(TOPDIR)/scripts/kconfig/conf -d ./config.in
264 @touch .config.stamp 267 @touch .config.stamp
265 268
266$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default 269$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default
267 270
268$(TOPDIR)/mkspecs/default : 271$(TOPDIR)/mkspecs/default :
269 ln -sf linux-g++ $@ 272 ln -sf linux-g++ $@
270 273
271$(TOPDIR)/scripts/subst : force 274$(TOPDIR)/scripts/subst : force
272 @( \ 275 @( \
273 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ 276 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \
274 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ 277 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \
275 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ 278 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \
276 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ 279 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \
277 echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ 280 echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \
278 echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ 281 echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \
279 echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ 282 echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \
280 ) > $@ || ( rm -f $@; exit 1 ) 283 ) > $@ || ( rm -f $@; exit 1 )
281 284
282$(TOPDIR)/scripts/filesubst : force 285$(TOPDIR)/scripts/filesubst : force
283 @( \ 286 @( \
284 echo 's,\$$OPIEDIR/root/,/,g'; \ 287 echo 's,\$$OPIEDIR/root/,/,g'; \
285 echo 's,$(OPIEDIR)/root/,/,g'; \ 288 echo 's,$(OPIEDIR)/root/,/,g'; \
286 echo 's,\$$OPIEDIR,$(prefix),g'; \ 289 echo 's,\$$OPIEDIR,$(prefix),g'; \
287 echo 's,$(OPIEDIR),$(prefix),g'; \ 290 echo 's,$(OPIEDIR),$(prefix),g'; \
288 echo 's,\$$QTDIR,$(prefix),g'; \ 291 echo 's,\$$QTDIR,$(prefix),g'; \
289 echo 's,$(QTDIR),$(prefix),g'; \ 292 echo 's,$(QTDIR),$(prefix),g'; \
290 echo 's,^\(\./\)*root/,/,g'; \ 293 echo 's,^\(\./\)*root/,/,g'; \
291 echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ 294 echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \
292 echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ 295 echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \
293 echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ 296 echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \
294 echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ 297 echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \
295 echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ 298 echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \
296 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ 299 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \
297 echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ 300 echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \
298 echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ 301 echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \
299 echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ 302 echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \
300 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ 303 echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \
301 echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ 304 echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \
302 ) > $@ || ( rm -f $@; exit 1 ) 305 ) > $@ || ( rm -f $@; exit 1 )
303 306
304## general rules ## 307## general rules ##
305 308
306define descend 309define descend
307 $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) 310 $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2)
308endef 311endef
309 312
310define makefilegen 313define makefilegen
311 cd $(if $(1),$(dir $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(notdir $(1))) $(word 3,$(shell grep "[[:space:]]$(patsubst %/Makefile,%,$(1))[[:space:]]" $(OPIEDIR)/packages)) 314 cd $(if $(1),$(dir $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(notdir $(1))) $(word 3,$(shell grep "[[:space:]]$(patsubst %/Makefile,%,$(1))[[:space:]]" $(OPIEDIR)/packages))
312endef 315endef
313 316
314define makecfg 317define makecfg
315 $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) 318 $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR)
316endef 319endef
diff --git a/dependencies.in b/dependencies.in
index 357d994..4c758d3 100644
--- a/dependencies.in
+++ b/dependencies.in
@@ -1,96 +1,104 @@
1 config LIBETPAN_DEP 1 config LIBETPAN_DEP
2 boolean "Have Libetpan >= 0.33pre" 2 boolean "Have Libetpan >= 0.33pre"
3 default "n" 3 default "n"
4 4
5 config LIBETPAN_LIB_DIR 5 config LIBETPAN_LIB_DIR
6 string "LIBETPAN library dir" 6 string "LIBETPAN library dir"
7 depends LIBETPAN_DEP 7 depends LIBETPAN_DEP
8 8
9 config LIBETPAN_INC_DIR 9 config LIBETPAN_INC_DIR
10 string "LIBETPAN include dir" 10 string "LIBETPAN include dir"
11 depends LIBETPAN_DEP 11 depends LIBETPAN_DEP
12 12
13 config LIBPCAP_DEP 13 config LIBPCAP_DEP
14 boolean "Have libpcap >= 0.7.2" 14 boolean "Have libpcap >= 0.7.2"
15 default "n" 15 default "n"
16 16
17 config LIBPCAP_LIB_DIR 17 config LIBPCAP_LIB_DIR
18 string "LIBPCAP library dir" 18 string "LIBPCAP library dir"
19 depends LIBPCAP_DEP 19 depends LIBPCAP_DEP
20 20
21 config LIBPCAP_INC_DIR 21 config LIBPCAP_INC_DIR
22 string "LIBPCAP include dir" 22 string "LIBPCAP include dir"
23 depends LIBPCAP_DEP 23 depends LIBPCAP_DEP
24 24
25 config LIBSQLITE_DEP 25 config LIBSQLITE_DEP
26 boolean "Have sqlite >= 3.0.7" 26 boolean "Have sqlite >= 3.0.7"
27 default n 27 default n
28 28
29 config LIBSQLITE_LIB_DIR 29 config LIBSQLITE_LIB_DIR
30 string "LIBSQLITE library dir" 30 string "LIBSQLITE library dir"
31 depends LIBSQLITE_DEP 31 depends LIBSQLITE_DEP
32 32
33 config LIBSQLITE_INC_DIR 33 config LIBSQLITE_INC_DIR
34 string "LIBSQLITE include dir" 34 string "LIBSQLITE include dir"
35 depends LIBSQLITE_DEP 35 depends LIBSQLITE_DEP
36 36
37 config LIBXINE_DEP 37 config LIBXINE_DEP
38 boolean "Have libxine >= 1.0rc6" 38 boolean "Have libxine >= 1.0rc6"
39 default "n" 39 default "n"
40 40
41 config LIBXINE_LIB_DIR 41 config LIBXINE_LIB_DIR
42 string "LIBXINE library dir" 42 string "LIBXINE library dir"
43 depends LIBXINE_DEP 43 depends LIBXINE_DEP
44 44
45 config LIBXINE_INC_DIR 45 config LIBXINE_INC_DIR
46 string "LIBXINE include dir" 46 string "LIBXINE include dir"
47 depends LIBXINE_DEP 47 depends LIBXINE_DEP
48 48
49 config LIBIPK_DEP 49 config LIBIPK_DEP
50 boolean "Have libipkg >= 0.99.120" 50 boolean "Have libipkg >= 0.99.120"
51 default "n" 51 default "n"
52 52
53 config LIBIPK_LIB_DIR 53 config LIBIPK_LIB_DIR
54 string "libipkg library dir" 54 string "libipkg library dir"
55 depends LIBIPK_DEP 55 depends LIBIPK_DEP
56 56
57 config LIBIPK_INC_DIR 57 config LIBIPK_INC_DIR
58 string "libipkg include dir" 58 string "libipkg include dir"
59 depends LIBIPK_DEP 59 depends LIBIPK_DEP
60 60
61 config LIBSDL_DEP 61 config LIBSDL_DEP
62 boolean "Have libsdl12 and sdlimage" 62 boolean "Have libsdl12 and sdlimage"
63 default "n" 63 default "n"
64 64
65 config LIBSDL_LIB_DIR 65 config LIBSDL_LIB_DIR
66 string "LIBSDL library dir" 66 string "LIBSDL library dir"
67 depends LIBSDL_DEP 67 depends LIBSDL_DEP
68 68
69 config LIBSDL_INC_DIR 69 config LIBSDL_INC_DIR
70 string "LIBSDL include dir" 70 string "LIBSDL include dir"
71 depends LIBSDL_DEP 71 depends LIBSDL_DEP
72 72
73 config LIBSWORD_DEP 73 config LIBSWORD_DEP
74 boolean "Have libsword > = 1.5.0" 74 boolean "Have libsword > = 1.5.0"
75 default "n" 75 default "n"
76 76
77 config LIBSWORD_LIB_DIR 77 config LIBSWORD_LIB_DIR
78 string "libsword library dir" 78 string "libsword library dir"
79 depends LIBSWORD_DEP 79 depends LIBSWORD_DEP
80 80
81 config LIBSWORD_INC_DIR 81 config LIBSWORD_INC_DIR
82 string "libsword include dir" 82 string "libsword include dir"
83 depends LIBSWORD_DEP 83 depends LIBSWORD_DEP
84 84
85 config LIBBLUEZ_DEP 85 config LIBBLUEZ_DEP
86 boolean "Have bluez library" 86 boolean "Have bluez library"
87 default "n" 87 default "n"
88 88
89 config LIBBLUEZ_LIB_DIR 89 config LIBBLUEZ_LIB_DIR
90 string "libbluez library dir" 90 string "libbluez library dir"
91 depends LIBBLUEZ_DEP 91 depends LIBBLUEZ_DEP
92 92
93 config LIBBLUEZ_INC_DIR 93 config LIBBLUEZ_INC_DIR
94 string "libbluez include dir" 94 string "libbluez include dir"
95 depends LIBBLUEZ_DEP 95 depends LIBBLUEZ_DEP
96 96
97 config LIBFREETYPE2_DEP
98 boolean "Have freetype2"
99 default "n"
100
101 config LIBFREETYPE2_INC_DIR
102 string "freetype2 include dir"
103 depends LIBFREETYPE2_DEP
104
diff --git a/freetype/config.in b/freetype/config.in
index 68b659a..16d00eb 100644
--- a/freetype/config.in
+++ b/freetype/config.in
@@ -1,4 +1,4 @@
1 config FREETYPE 1 config FREETYPE
2 boolean "opie-freetype (support for fonts used via the freetype library)" 2 boolean "opie-freetype (support for fonts used via the freetype library)"
3 default "y" 3 default "y"
4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE 4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBFREETYPE2_DEP
diff --git a/freetype/fontfactoryttf_qws.cpp b/freetype/fontfactoryttf_qws.cpp
index 1ed0d2c..6d41c33 100644
--- a/freetype/fontfactoryttf_qws.cpp
+++ b/freetype/fontfactoryttf_qws.cpp
@@ -1,247 +1,251 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#include "fontfactoryttf_qws.h" 21#include "fontfactoryttf_qws.h"
22 22
23#include <opie2/odebug.h> 23#include <opie2/odebug.h>
24using namespace Opie::Core; 24using namespace Opie::Core;
25 25
26#ifdef QT_NO_FREETYPE 26#ifdef QT_NO_FREETYPE
27 27
28#include "qfontdata_p.h" 28#include "qfontdata_p.h"
29#include <string.h> 29#include <string.h>
30#include <stdio.h> 30#include <stdio.h>
31 31
32#define FLOOR(x) ((x) & -64) 32#define FLOOR(x) ((x) & -64)
33#define CEIL(x) (((x)+63) & -64) 33#define CEIL(x) (((x)+63) & -64)
34#define TRUNC(x) ((x) >> 6) 34#define TRUNC(x) ((x) >> 6)
35 35
36 36
37extern "C" { 37extern "C" {
38
39#include <ft2build.h>
40#include FT_FREETYPE_H
41
38#include <freetype/freetype.h> 42#include <freetype/freetype.h>
39#include <freetype/ftglyph.h> 43#include <freetype/ftglyph.h>
40#include <freetype/ftoutln.h> 44#include <freetype/ftoutln.h>
41#include <freetype/ftbbox.h> 45#include <freetype/ftbbox.h>
42} 46}
43 47
44class QDiskFontFT : public QDiskFontPrivate { 48class QDiskFontFT : public QDiskFontPrivate {
45public: 49public:
46 FT_Face face; 50 FT_Face face;
47}; 51};
48 52
49class QRenderedFontFT : public QRenderedFont { 53class QRenderedFontFT : public QRenderedFont {
50public: 54public:
51 QRenderedFontFT(QDiskFont* f, const QFontDef &d) : 55 QRenderedFontFT(QDiskFont* f, const QFontDef &d) :
52 QRenderedFont(f,d) 56 QRenderedFont(f,d)
53 { 57 {
54 QDiskFontFT *df = (QDiskFontFT*)(f->p); 58 QDiskFontFT *df = (QDiskFontFT*)(f->p);
55 myface=df->face; 59 myface=df->face;
56 selectThisSize(); 60 selectThisSize();
57 // A 1-pixel baseline is excluded in Qt/Windows/X11 fontmetrics 61 // A 1-pixel baseline is excluded in Qt/Windows/X11 fontmetrics
58 // (see QFontMetrics::height()) 62 // (see QFontMetrics::height())
59 // 63 //
60 fascent=CEIL(myface->size->metrics.ascender)/64; 64 fascent=CEIL(myface->size->metrics.ascender)/64;
61 fdescent=-FLOOR(myface->size->metrics.descender)/64-1; 65 fdescent=-FLOOR(myface->size->metrics.descender)/64-1;
62 fmaxwidth=CEIL(myface->size->metrics.max_advance)/64; 66 fmaxwidth=CEIL(myface->size->metrics.max_advance)/64;
63 fleading=CEIL(myface->size->metrics.height)/64 67 fleading=CEIL(myface->size->metrics.height)/64
64 - fascent - fdescent + 1; 68 - fascent - fdescent + 1;
65 69
66 // FT has these in font units 70 // FT has these in font units
67 funderlinepos = ptsize/200+1; 71 funderlinepos = ptsize/200+1;
68 funderlinewidth = ptsize/200+1; 72 funderlinewidth = ptsize/200+1;
69 } 73 }
70 74
71 ~QRenderedFontFT() 75 ~QRenderedFontFT()
72 { 76 {
73 // When inter-process glyph sharing is implemented, the glyph data 77 // When inter-process glyph sharing is implemented, the glyph data
74 // for this font can be dereferenced here. 78 // for this font can be dereferenced here.
75 } 79 }
76 80
77 bool unicode(int & i) const 81 bool unicode(int & i) const
78 { 82 {
79 int ret; 83 int ret;
80 84
81 FT_Face theface=myface; 85 FT_Face theface=myface;
82 86
83 ret=FT_Get_Char_Index(theface,i); 87 ret=FT_Get_Char_Index(theface,i);
84 88
85 if (ret==0) { 89 if (ret==0) {
86 return FALSE; 90 return FALSE;
87 } else { 91 } else {
88 i=ret; 92 i=ret;
89 return TRUE; 93 return TRUE;
90 } 94 }
91 } 95 }
92 96
93 bool inFont(QChar ch) const 97 bool inFont(QChar ch) const
94 { 98 {
95 int index = ch.unicode(); 99 int index = ch.unicode();
96 return unicode(index); 100 return unicode(index);
97 } 101 }
98 102
99 QGlyph render(QChar ch) 103 QGlyph render(QChar ch)
100 { 104 {
101 selectThisSize(); 105 selectThisSize();
102 106
103 int index = ch.unicode(); 107 int index = ch.unicode();
104 if ( !unicode(index) ) 108 if ( !unicode(index) )
105 index = 0; 109 index = 0;
106 QGlyph result; 110 QGlyph result;
107 111
108 FT_Error err; 112 FT_Error err;
109 113
110 err=FT_Load_Glyph(myface,index,FT_LOAD_DEFAULT); 114 err=FT_Load_Glyph(myface,index,FT_LOAD_DEFAULT);
111 if(err) 115 if(err)
112 ofatal << "Load glyph error " << err << "" << oendl; 116 ofatal << "Load glyph error " << err << "" << oendl;
113 117
114 int width=0,height=0,pitch=0,size=0; 118 int width=0,height=0,pitch=0,size=0;
115 FT_Glyph glyph; 119 FT_Glyph glyph;
116 err=FT_Get_Glyph( myface->glyph, &glyph ); 120 err=FT_Get_Glyph( myface->glyph, &glyph );
117 if(err) 121 if(err)
118 ofatal << "Get glyph error " << err << "" << oendl; 122 ofatal << "Get glyph error " << err << "" << oendl;
119 123
120 FT_BBox bbox; 124 FT_BBox bbox;
121 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_gridfit, &bbox); 125 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_gridfit, &bbox);
122 126
123 FT_Vector origin; 127 FT_Vector origin;
124 origin.x = -bbox.xMin; 128 origin.x = -bbox.xMin;
125 origin.y = -bbox.yMin; 129 origin.y = -bbox.yMin;
126 130
127 if ( FT_IS_SCALABLE(myface) ) { 131 if ( FT_IS_SCALABLE(myface) ) {
128 err=FT_Glyph_To_Bitmap(&glyph, 132 err=FT_Glyph_To_Bitmap(&glyph,
129 smooth ? ft_render_mode_normal : ft_render_mode_mono, 133 smooth ? ft_render_mode_normal : ft_render_mode_mono,
130 &origin, 1); // destroy original glyph 134 &origin, 1); // destroy original glyph
131 if(err) 135 if(err)
132 owarn << "Get bitmap error " << err << "" << oendl; 136 owarn << "Get bitmap error " << err << "" << oendl;
133 } 137 }
134 138
135 if ( !err ) { 139 if ( !err ) {
136 FT_Bitmap bm = ((FT_BitmapGlyph)glyph)->bitmap; 140 FT_Bitmap bm = ((FT_BitmapGlyph)glyph)->bitmap;
137 pitch = bm.pitch; 141 pitch = bm.pitch;
138 size=pitch*bm.rows; 142 size=pitch*bm.rows;
139 result.data = new uchar[size]; // XXX memory manage me 143 result.data = new uchar[size]; // XXX memory manage me
140 width=bm.width; 144 width=bm.width;
141 height=bm.rows; 145 height=bm.rows;
142 if ( size ) { 146 if ( size ) {
143 memcpy( result.data, bm.buffer, size ); 147 memcpy( result.data, bm.buffer, size );
144 } else { 148 } else {
145 result.data = new uchar[0]; // XXX memory manage me 149 result.data = new uchar[0]; // XXX memory manage me
146 } 150 }
147 } else { 151 } else {
148 result.data = new uchar[0]; // XXX memory manage me 152 result.data = new uchar[0]; // XXX memory manage me
149 } 153 }
150 154
151 result.metrics = new QGlyphMetrics; 155 result.metrics = new QGlyphMetrics;
152 memset((char*)result.metrics, 0, sizeof(QGlyphMetrics)); 156 memset((char*)result.metrics, 0, sizeof(QGlyphMetrics));
153 result.metrics->bearingx=myface->glyph->metrics.horiBearingX/64; 157 result.metrics->bearingx=myface->glyph->metrics.horiBearingX/64;
154 result.metrics->advance=myface->glyph->metrics.horiAdvance/64; 158 result.metrics->advance=myface->glyph->metrics.horiAdvance/64;
155 result.metrics->bearingy=myface->glyph->metrics.horiBearingY/64; 159 result.metrics->bearingy=myface->glyph->metrics.horiBearingY/64;
156 160
157 result.metrics->linestep=pitch; 161 result.metrics->linestep=pitch;
158 result.metrics->width=width; 162 result.metrics->width=width;
159 result.metrics->height=height; 163 result.metrics->height=height;
160 164
161 // XXX memory manage me 165 // XXX memory manage me
162 // At some point inter-process glyph data sharing must be implemented 166 // At some point inter-process glyph data sharing must be implemented
163 // and the flag below can be set to prevent Qt from deleting the glyph 167 // and the flag below can be set to prevent Qt from deleting the glyph
164 // data. 168 // data.
165 // result.metrics->flags = QGlyphMetrics::RendererOwnsData; 169 // result.metrics->flags = QGlyphMetrics::RendererOwnsData;
166 170
167 FT_Done_Glyph( glyph ); 171 FT_Done_Glyph( glyph );
168 172
169 return result; 173 return result;
170 } 174 }
171 175
172 FT_Face myface; 176 FT_Face myface;
173 177
174private: 178private:
175 void selectThisSize() 179 void selectThisSize()
176 { 180 {
177 int psize=(ptsize<<6)/10; 181 int psize=(ptsize<<6)/10;
178 182
179 // Assume 72 dpi for now 183 // Assume 72 dpi for now
180 const int dpi=72; 184 const int dpi=72;
181 FT_Error err; 185 FT_Error err;
182 err=FT_Set_Char_Size(myface, psize,psize,dpi,dpi); 186 err=FT_Set_Char_Size(myface, psize,psize,dpi,dpi);
183 if (err) { 187 if (err) {
184 if (FT_IS_SCALABLE(myface) ) { 188 if (FT_IS_SCALABLE(myface) ) {
185 owarn << "Set char size error " << err << " for size " << ptsize << "" << oendl; 189 owarn << "Set char size error " << err << " for size " << ptsize << "" << oendl;
186 } else { 190 } else {
187 int best=-1; 191 int best=-1;
188 int bdh=99; 192 int bdh=99;
189 for (int i=0; i<myface->num_fixed_sizes; i++) { 193 for (int i=0; i<myface->num_fixed_sizes; i++) {
190 FT_Bitmap_Size& sz=myface->available_sizes[i]; 194 FT_Bitmap_Size& sz=myface->available_sizes[i];
191 int dh = sz.height - ptsize*dpi/72/10; 195 int dh = sz.height - ptsize*dpi/72/10;
192 dh = QABS(dh); 196 dh = QABS(dh);
193 if ( dh < bdh ) { 197 if ( dh < bdh ) {
194 bdh=dh; 198 bdh=dh;
195 best=i; 199 best=i;
196 } 200 }
197 } 201 }
198 if ( best >= 0 ) 202 if ( best >= 0 )
199 err=FT_Set_Pixel_Sizes(myface, 203 err=FT_Set_Pixel_Sizes(myface,
200 myface->available_sizes[best].width, 204 myface->available_sizes[best].width,
201 myface->available_sizes[best].height); 205 myface->available_sizes[best].height);
202 if ( err ) 206 if ( err )
203 owarn << "Set char size error " << err << " for size " << ptsize << "" << oendl; 207 owarn << "Set char size error " << err << " for size " << ptsize << "" << oendl;
204 } 208 }
205 } 209 }
206 } 210 }
207}; 211};
208 212
209QFontFactoryFT::QFontFactoryFT() 213QFontFactoryFT::QFontFactoryFT()
210{ 214{
211 FT_Error err; 215 FT_Error err;
212 err=FT_Init_FreeType(&library); 216 err=FT_Init_FreeType(&library);
213 if(err) { 217 if(err) {
214 ofatal << "Couldn't initialise Freetype library" << oendl; 218 ofatal << "Couldn't initialise Freetype library" << oendl;
215 } 219 }
216} 220}
217 221
218QFontFactoryFT::~QFontFactoryFT() 222QFontFactoryFT::~QFontFactoryFT()
219{ 223{
220} 224}
221 225
222QString QFontFactoryFT::name() 226QString QFontFactoryFT::name()
223{ 227{
224 return "FT"; 228 return "FT";
225} 229}
226 230
227QRenderedFont * QFontFactoryFT::get(const QFontDef & f,QDiskFont * f2) 231QRenderedFont * QFontFactoryFT::get(const QFontDef & f,QDiskFont * f2)
228{ 232{
229 return new QRenderedFontFT(f2, f); 233 return new QRenderedFontFT(f2, f);
230} 234}
231 235
232void QFontFactoryFT::load(QDiskFont * qdf) const 236void QFontFactoryFT::load(QDiskFont * qdf) const
233{ 237{
234 if(qdf->loaded) 238 if(qdf->loaded)
235 return; 239 return;
236 QDiskFontFT *f = new QDiskFontFT; 240 QDiskFontFT *f = new QDiskFontFT;
237 qdf->p=f; 241 qdf->p=f;
238 FT_Error err; 242 FT_Error err;
239 err=FT_New_Face(library,qdf->file.ascii(),0,&(f->face)); 243 err=FT_New_Face(library,qdf->file.ascii(),0,&(f->face));
240 if(err) { 244 if(err) {
241 ofatal << "Error " << err << " opening face" << oendl; 245 ofatal << "Error " << err << " opening face" << oendl;
242 } 246 }
243 qdf->loaded=true; 247 qdf->loaded=true;
244} 248}
245 249
246 250
247#endif // QT_NO_FREETYPE 251#endif // QT_NO_FREETYPE
diff --git a/freetype/fontfactoryttf_qws.h b/freetype/fontfactoryttf_qws.h
index ff0fcfc..ddf5b57 100644
--- a/freetype/fontfactoryttf_qws.h
+++ b/freetype/fontfactoryttf_qws.h
@@ -1,63 +1,67 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21 21
22#ifndef FONTFACTORY_FT_H 22#ifndef FONTFACTORY_FT_H
23#define FONTFACTORY_FT_H 23#define FONTFACTORY_FT_H
24 24
25#include <qfontmanager_qws.h> 25#include <qfontmanager_qws.h>
26#if QT_VERSION >= 0x030000 26#if QT_VERSION >= 0x030000
27# include <private/qfontdata_p.h> 27# include <private/qfontdata_p.h>
28#else 28#else
29# include "qfontdata_p.h" 29# include "qfontdata_p.h"
30#endif 30#endif
31 31
32 32
33#ifdef QT_NO_FREETYPE 33#ifdef QT_NO_FREETYPE
34 34
35extern "C" { 35extern "C" {
36
37#include <ft2build.h>
38#include FT_FREETYPE_H
39
36#include <freetype/freetype.h> 40#include <freetype/freetype.h>
37} 41}
38 42
39// ascent, descent, width(ch), width(string), maxwidth? 43// ascent, descent, width(ch), width(string), maxwidth?
40// leftbearing, rightbearing, minleftbearing,minrightbearing 44// leftbearing, rightbearing, minleftbearing,minrightbearing
41// leading 45// leading
42 46
43class QFontFactoryFT : public QFontFactory { 47class QFontFactoryFT : public QFontFactory {
44 48
45public: 49public:
46 50
47 QFontFactoryFT(); 51 QFontFactoryFT();
48 virtual ~QFontFactoryFT(); 52 virtual ~QFontFactoryFT();
49 53
50 QRenderedFont * get(const QFontDef &,QDiskFont *); 54 QRenderedFont * get(const QFontDef &,QDiskFont *);
51 virtual void load(QDiskFont *) const; 55 virtual void load(QDiskFont *) const;
52 virtual QString name(); 56 virtual QString name();
53 57
54private: 58private:
55 59
56 friend class QRenderedFontFT; 60 friend class QRenderedFontFT;
57 FT_Library library; 61 FT_Library library;
58}; 62};
59 63
60#endif // QT_NO_FREETYPE 64#endif // QT_NO_FREETYPE
61 65
62#endif // QFONTFACTORY_FT_H 66#endif // QFONTFACTORY_FT_H
63 67
diff --git a/freetype/freetype.pro b/freetype/freetype.pro
index c409577..87aaf9e 100644
--- a/freetype/freetype.pro
+++ b/freetype/freetype.pro
@@ -1,13 +1,17 @@
1 TEMPLATE= lib 1 TEMPLATE= lib
2 CONFIG += qt warn_on 2 CONFIG += qt warn_on
3 HEADERS = fontfactoryttf_qws.h freetypefactoryimpl.h 3 HEADERS = fontfactoryttf_qws.h freetypefactoryimpl.h
4 SOURCES = fontfactoryttf_qws.cpp freetypefactoryimpl.cpp 4 SOURCES = fontfactoryttf_qws.cpp freetypefactoryimpl.cpp
5 qt2:HEADERS+= qfontdata_p.h 5 qt2:HEADERS+= qfontdata_p.h
6 TARGET = freetypefactory 6 TARGET = freetypefactory
7 DESTDIR = $(OPIEDIR)/plugins/fontfactories 7 DESTDIR = $(OPIEDIR)/plugins/fontfactories
8 INCLUDEPATH+= $(QTDIR)/src/3rdparty/freetype/include $(QTDIR)/src/3rdparty/freetype/include/freetype/config $(OPIEDIR)/include 8 INCLUDEPATH+= $(OPIEDIR)/include
9DEPENDPATH += $(OPIEDIR)/include 9DEPENDPATH += $(OPIEDIR)/include
10LIBS += -lqpe -lfreetype -lopiecore2 10LIBS += -lqpe -lfreetype -lopiecore2
11 VERSION = 1.0.1 11 VERSION = 1.0.1
12 12
13include( $(OPIEDIR)/include.pro ) 13include( $(OPIEDIR)/include.pro )
14
15!isEmpty( LIBFREETYPE2_INC_DIR ) {
16 INCLUDEPATH = $$LIBFREETYPE2_INC_DIR $$INCLUDEPATH
17}
diff --git a/mkspecs/qws/linux-oe-g++/qmake.conf b/mkspecs/qws/linux-oe-g++/qmake.conf
index 90166b0..72bb489 100644
--- a/mkspecs/qws/linux-oe-g++/qmake.conf
+++ b/mkspecs/qws/linux-oe-g++/qmake.conf
@@ -1,86 +1,86 @@
1# 1#
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler 4# qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler
5# 5#
6 6
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt link_prl 9 CONFIG += qt link_prl
10 10
11STAGING_BINDIR = $(OEDIR)/tmp/staging/$(OEHOSTSYS)/bin 11STAGING_BINDIR = $(OEDIR)/tmp/staging/$(OEHOSTSYS)/bin
12STAGING_CROSSDIR = $(OEDIR)/tmp/cross/bin 12STAGING_CROSSDIR = $(OEDIR)/tmp/cross/bin
13STAGING_INCDIR = $(OEDIR)/tmp/staging/arm-linux/include 13STAGING_INCDIR = $(OEDIR)/tmp/staging/arm-linux/include $(OEDIR)/tmp/staging/arm-linux/include/freetype2/include
14STAGING_LIBDIR = $(OEDIR)/tmp/staging/arm-linux/lib 14STAGING_LIBDIR = $(OEDIR)/tmp/staging/arm-linux/lib
15 15
16 QMAKE_CC = $(CCACHE) $(DISTCC) $$STAGING_CROSSDIR/arm-linux-gcc 16 QMAKE_CC = $(CCACHE) $(DISTCC) $$STAGING_CROSSDIR/arm-linux-gcc
17 QMAKE_LEX = flex 17 QMAKE_LEX = flex
18 QMAKE_LEXFLAGS = 18 QMAKE_LEXFLAGS =
19 QMAKE_YACC = yacc 19 QMAKE_YACC = yacc
20 QMAKE_YACCFLAGS = -d 20 QMAKE_YACCFLAGS = -d
21 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) 21 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA)
22 QMAKE_CFLAGS_WARN_ON= -Wall -W 22 QMAKE_CFLAGS_WARN_ON= -Wall -W
23 QMAKE_CFLAGS_WARN_OFF= 23 QMAKE_CFLAGS_WARN_OFF=
24 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) 24 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)
25 QMAKE_CFLAGS_DEBUG= -g 25 QMAKE_CFLAGS_DEBUG= -g
26 QMAKE_CFLAGS_SHLIB= -fPIC 26 QMAKE_CFLAGS_SHLIB= -fPIC
27 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses 27 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses
28 QMAKE_CFLAGS_THREAD= -D_REENTRANT 28 QMAKE_CFLAGS_THREAD= -D_REENTRANT
29 29
30 QMAKE_CXX = $(CCACHE) $(DISTCC) $$STAGING_CROSSDIR/arm-linux-g++ -DQT_QWS_SL5XX -DQT_QWS_SHARP -DQT_QWS_EBX -DQT_QWS_CUSTOM 30 QMAKE_CXX = $(CCACHE) $(DISTCC) $$STAGING_CROSSDIR/arm-linux-g++ -DQT_QWS_SL5XX -DQT_QWS_SHARP -DQT_QWS_EBX -DQT_QWS_CUSTOM
31 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) 31 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA)
32 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 32 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
33 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF 33 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
34 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE 34 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
35 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG 35 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
36 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB 36 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
37 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 37 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
38 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD 38 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
39 39
40 QMAKE_INCDIR = $$STAGING_INCDIR 40 QMAKE_INCDIR = $$STAGING_INCDIR
41 QMAKE_LIBDIR = $$STAGING_LIBDIR 41 QMAKE_LIBDIR = $$STAGING_LIBDIR
42 QMAKE_INCDIR_X11= 42 QMAKE_INCDIR_X11=
43 QMAKE_LIBDIR_X11= 43 QMAKE_LIBDIR_X11=
44 QMAKE_INCDIR_QT = $(QTDIR)/include 44 QMAKE_INCDIR_QT = $(QTDIR)/include
45 QMAKE_LIBDIR_QT = $(QTDIR)/lib 45 QMAKE_LIBDIR_QT = $(QTDIR)/lib
46 QMAKE_INCDIR_OPENGL= 46 QMAKE_INCDIR_OPENGL=
47 QMAKE_LIBDIR_OPENGL= 47 QMAKE_LIBDIR_OPENGL=
48 QMAKE_INCDIR_QTOPIA= 48 QMAKE_INCDIR_QTOPIA=
49 QMAKE_LIBDIR_QTOPIA= 49 QMAKE_LIBDIR_QTOPIA=
50 50
51 QMAKE_LINK = $$STAGING_CROSSDIR/arm-linux-g++ 51 QMAKE_LINK = $$STAGING_CROSSDIR/arm-linux-g++
52 QMAKE_LINK_SHLIB= $$STAGING_CROSSDIR/arm-linux-g++ 52 QMAKE_LINK_SHLIB= $$STAGING_CROSSDIR/arm-linux-g++
53 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 53 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
54 QMAKE_LFLAGS_RELEASE= 54 QMAKE_LFLAGS_RELEASE=
55 QMAKE_LFLAGS_DEBUG= 55 QMAKE_LFLAGS_DEBUG=
56QMAKE_LFLAGS_SHLIB = -shared 56QMAKE_LFLAGS_SHLIB = -shared
57QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB 57QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
58QMAKE_LFLAGS_SONAME = -Wl,-soname, 58QMAKE_LFLAGS_SONAME = -Wl,-soname,
59QMAKE_LFLAGS_THREAD = 59QMAKE_LFLAGS_THREAD =
60QMAKE_RPATH = -Wl,-rpath-link, 60QMAKE_RPATH = -Wl,-rpath-link,
61 61
62 QMAKE_LIBS = $(LIBS_EXTRA) 62 QMAKE_LIBS = $(LIBS_EXTRA)
63QMAKE_LIBS_DYNLOAD = -ldl 63QMAKE_LIBS_DYNLOAD = -ldl
64 QMAKE_LIBS_X11 = 64 QMAKE_LIBS_X11 =
65 QMAKE_LIBS_X11SM= 65 QMAKE_LIBS_X11SM=
66 QMAKE_LIBS_QT = -lqte 66 QMAKE_LIBS_QT = -lqte
67QMAKE_LIBS_QT_THREAD = -lqte-mt 67QMAKE_LIBS_QT_THREAD = -lqte-mt
68 QMAKE_LIBS_QT_OPENGL= -lqgl 68 QMAKE_LIBS_QT_OPENGL= -lqgl
69 QMAKE_LIBS_QTOPIA= -lqpe 69 QMAKE_LIBS_QTOPIA= -lqpe
70QMAKE_LIBS_THREAD = -lpthread 70QMAKE_LIBS_THREAD = -lpthread
71 71
72 QMAKE_MOC = $$STAGING_BINDIR/moc 72 QMAKE_MOC = $$STAGING_BINDIR/moc
73 QMAKE_UIC = $$STAGING_BINDIR/uic 73 QMAKE_UIC = $$STAGING_BINDIR/uic
74 74
75 QMAKE_AR = ar cqs 75 QMAKE_AR = ar cqs
76 QMAKE_RANLIB = 76 QMAKE_RANLIB =
77 77
78 QMAKE_TAR = tar -cf 78 QMAKE_TAR = tar -cf
79 QMAKE_GZIP = gzip -9f 79 QMAKE_GZIP = gzip -9f
80 80
81 QMAKE_COPY = cp -f 81 QMAKE_COPY = cp -f
82 QMAKE_MOVE = mv -f 82 QMAKE_MOVE = mv -f
83 QMAKE_DEL_FILE = rm -f 83 QMAKE_DEL_FILE = rm -f
84 QMAKE_DEL_DIR = rmdir 84 QMAKE_DEL_DIR = rmdir
85 QMAKE_CHK_DIR_EXISTS= test -d 85 QMAKE_CHK_DIR_EXISTS= test -d
86 QMAKE_MKDIR = mkdir -p 86 QMAKE_MKDIR = mkdir -p