summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2006-03-27 13:35:50 (UTC)
committer mickeyl <mickeyl>2006-03-27 13:35:50 (UTC)
commit8d8474e48d134c6ee64311d47f22753adcd63d10 (patch) (unidiff)
tree4570e65acbc517e664124fedf1fc1577fd8964cf
parent8cd6aceae9ddf16a7f6ed3a10d361f927fd164e1 (diff)
downloadopie-8d8474e48d134c6ee64311d47f22753adcd63d10.zip
opie-8d8474e48d134c6ee64311d47f22753adcd63d10.tar.gz
opie-8d8474e48d134c6ee64311d47f22753adcd63d10.tar.bz2
add obexftp dependency to build system. patch courtesy Dmitriy Korovkin - thanks
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--README3
-rw-r--r--Rules.make4
-rw-r--r--dependencies.in11
3 files changed, 18 insertions, 0 deletions
diff --git a/README b/README
index e142382..89a9892 100644
--- a/README
+++ b/README
@@ -39,68 +39,71 @@ cp $OPIEDIR/qt/qconfig-qpe.h $QTDIR/src/tools
39 39
40You are now ready to configure and build Qt/Embedded 40You are now ready to configure and build Qt/Embedded
41 41
42cd $QTDIR 42cd $QTDIR
43echo 'yes' | ./configure -qconfig qpe -depths 4,16,24,32 -system-jpeg -system-libpng -system-zlib -no-xkb -no-sm -no-xft -qvfb 43echo 'yes' | ./configure -qconfig qpe -depths 4,16,24,32 -system-jpeg -system-libpng -system-zlib -no-xkb -no-sm -no-xft -qvfb
44make 44make
45 45
46Note that the above command ( -qvfb ) compiles in the Virtual 46Note that the above command ( -qvfb ) compiles in the Virtual
47Framebuffer and is mostly meant for development on your host system. 47Framebuffer and is mostly meant for development on your host system.
48For cross compiling, you will need to use the -xplatform switch. 48For cross compiling, you will need to use the -xplatform switch.
49See ./configure --help for details about the possible options. 49See ./configure --help for details about the possible options.
50 50
51Once you have these compiled, be sure to set the PATH to ensure your (cross)compiler 51Once you have these compiled, be sure to set the PATH to ensure your (cross)compiler
52is available. 52is available.
53 53
54Then do the following in the opie source tree: 54Then do the following in the opie source tree:
55 55
56make clean 56make clean
57make menuconfig 57make menuconfig
58 58
59Now you can move through the menu and select or deselect anything.. 59Now you can move through the menu and select or deselect anything..
60Exit and save the configuration and enter "make" to build everything selected. 60Exit and save the configuration and enter "make" to build everything selected.
61 61
62Have fun! 62Have fun!
63 63
642. Required Libraries 642. Required Libraries
65===================== 65=====================
66 66
67For a successful Opie build, you need to install the following libraries and headers: 67For a successful Opie build, you need to install the following libraries and headers:
68 68
69* libsdl >= 1.2.0 69* libsdl >= 1.2.0
70 http://www.libsdl.org/download-1.2.php 70 http://www.libsdl.org/download-1.2.php
71 71
72* libxine >= 1.0 72* libxine >= 1.0
73 http://prdownloads.sourceforge.net/xine/ 73 http://prdownloads.sourceforge.net/xine/
74 74
75* libpcap >= 0.7.2 75* libpcap >= 0.7.2
76 http://www.tcpdump.org/release/ 76 http://www.tcpdump.org/release/
77 77
78* libetpan >= 0.34 78* libetpan >= 0.34
79 http://prdownloads.sourceforge.net/libetpan/ 79 http://prdownloads.sourceforge.net/libetpan/
80 80
81* libsqlite >= 3.0.0 81* libsqlite >= 3.0.0
82 http://www.sqlite.org/download.html 82 http://www.sqlite.org/download.html
83 83
84* libipk >= 138 84* libipk >= 138
85 ftp://handhelds.org/linux/packages/ipkg 85 ftp://handhelds.org/linux/packages/ipkg
86 86
87* libobexftp >= 0.19
88 http://triq.net/obexftp.html
89
873. Required Programs 903. Required Programs
88==================== 91====================
89 92
90For a successful usage of Opie, you should install the following programs: 93For a successful usage of Opie, you should install the following programs:
91 94
92* obexftpd 95* obexftpd
93* obextool 96* obextool
94 97
954. Supported Devices 984. Supported Devices
96==================== 99====================
97 100
98Sharp Zaurus SL-5x00, SL-B500, SL-C7x0, SL-C8x0, SL-C1000, SL-C3000, SL-C3100, SL-6000 101Sharp Zaurus SL-5x00, SL-B500, SL-C7x0, SL-C8x0, SL-C1000, SL-C3000, SL-C3100, SL-6000
99 102
100HP iPAQ 36xx, 37xx, 38xx, 39xx, 54xx, 55xx 103HP iPAQ 36xx, 37xx, 38xx, 39xx, 54xx, 55xx
101 104
102SIEMENS SIMpad CL4, SL4, SLC, T-SinusPAD 105SIEMENS SIMpad CL4, SL4, SLC, T-SinusPAD
103 106
104MasterIA Beagle, Tradesquare.NL Tuxpad 1 107MasterIA Beagle, Tradesquare.NL Tuxpad 1
105 108
106GMate Yopy 3x00 109GMate Yopy 3x00
diff --git a/Rules.make b/Rules.make
index 9eeb9f9..a21404f 100644
--- a/Rules.make
+++ b/Rules.make
@@ -86,96 +86,100 @@ ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y)
86endif 86endif
87 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ 87 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@
88ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y) 88ifeq ($(CONFIG_OPIE_WE_VERSION_OVERRIDE),y)
89 echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@ 89 echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@
90endif 90endif
91ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y) 91ifeq ($(CONFIG_OPIE_TASKBAR_LOCK_KEY_STATE),y)
92 echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@ 92 echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> $@
93 endif 93 endif
94# Write LIB dirs and INC dirs... 94# Write LIB dirs and INC dirs...
95ifeq ($(CONFIG_LIBETPAN_DEP),y) 95ifeq ($(CONFIG_LIBETPAN_DEP),y)
96 echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ 96 echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@
97 echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ 97 echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@
98endif 98endif
99ifeq ($(CONFIG_LIBPCAP_DEP),y) 99ifeq ($(CONFIG_LIBPCAP_DEP),y)
100 echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ 100 echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@
101 echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ 101 echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@
102endif 102endif
103ifeq ($(CONFIG_LIBSQLITE_DEP),y) 103ifeq ($(CONFIG_LIBSQLITE_DEP),y)
104 echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ 104 echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@
105 echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ 105 echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@
106endif 106endif
107ifeq ($(CONFIG_LIBXINE_DEP),y) 107ifeq ($(CONFIG_LIBXINE_DEP),y)
108 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ 108 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@
109 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ 109 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@
110endif 110endif
111ifeq ($(CONFIG_LIBBLUEZ_DEP),y) 111ifeq ($(CONFIG_LIBBLUEZ_DEP),y)
112 echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ 112 echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@
113 echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ 113 echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@
114endif 114endif
115ifeq ($(CONFIG_LIBIPK_DEP),y) 115ifeq ($(CONFIG_LIBIPK_DEP),y)
116 echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ 116 echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@
117 echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ 117 echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@
118endif 118endif
119ifeq ($(CONFIG_LIBSDK_DEP),y) 119ifeq ($(CONFIG_LIBSDK_DEP),y)
120 echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ 120 echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@
121 echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ 121 echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@
122endif 122endif
123ifeq ($(CONFIG_LIBSWORD_DEP),y) 123ifeq ($(CONFIG_LIBSWORD_DEP),y)
124 echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ 124 echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@
125 echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ 125 echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@
126endif 126endif
127ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) 127ifeq ($(CONFIG_LIBFREETYPE2_DEP),y)
128 echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ 128 echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@
129endif 129endif
130ifeq ($(CONFIG_LIBFLITE_DEP),y) 130ifeq ($(CONFIG_LIBFLITE_DEP),y)
131 echo LIBFLITE_LIB_DIR = $(CONFIG_LIBFLITE_LIB_DIR) >> $@ 131 echo LIBFLITE_LIB_DIR = $(CONFIG_LIBFLITE_LIB_DIR) >> $@
132 echo LIBFLITE_INC_DIR = $(CONFIG_LIBFLITE_INC_DIR) >> $@ 132 echo LIBFLITE_INC_DIR = $(CONFIG_LIBFLITE_INC_DIR) >> $@
133endif 133endif
134ifeq ($(CONFIG_LIBOBEXFTP_DEP),y)
135 echo LIBOBEXFTP_INC_DIR = $(CONFIG_LIBOBEXFTP_INC_DIR) >> $@
136 echo LIBOBEXFTP_LIB_DIR = $(CONFIG_LIBOBEXFTP_LIB_DIR) >> $@
137endif
134$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages 138$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
135 @echo Generating dependency information... 139 @echo Generating dependency information...
136# add to subdir-y, and add descend rules 140# add to subdir-y, and add descend rules
137 @cat $(TOPDIR)/packages | grep -v '^#' | \ 141 @cat $(TOPDIR)/packages | grep -v '^#' | \
138 awk '{print \ 142 awk '{print \
139 ".PHONY : " $$2 "\n" \ 143 ".PHONY : " $$2 "\n" \
140 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ 144 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \
141 print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends 145 print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends
142 cat $(TOPDIR)/packages | grep -v '^#' | \ 146 cat $(TOPDIR)/packages | grep -v '^#' | \
143 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"; }' \ 147 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"; }' \
144 >> $(TOPDIR)/.depends 148 >> $(TOPDIR)/.depends
145# interpackage dependency generation 149# interpackage dependency generation
146 @cat $(TOPDIR)/packages | \ 150 @cat $(TOPDIR)/packages | \
147 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends 151 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends
148 152
149$(TOPDIR)/.depends.cfgs: 153$(TOPDIR)/.depends.cfgs:
150# config.in interdependencies 154# config.in interdependencies
151 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs 155 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs
152 @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 ) >> $@ 156 @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 ) >> $@
153 @-rm -f dirs 157 @-rm -f dirs
154 158
155$(QTDIR)/stamp-headers : 159$(QTDIR)/stamp-headers :
156 @-rm -f $(QTDIR)/stamp-headers* 160 @-rm -f $(QTDIR)/stamp-headers*
157 ( cd $(QTDIR)/include; \ 161 ( cd $(QTDIR)/include; \
158 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ 162 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \
159 qcopchannel_qws.h qwindowsystem_qws.h \ 163 qcopchannel_qws.h qwindowsystem_qws.h \
160 qfontmanager_qws.h qwsdefaultdecoration_qws.h)) 164 qfontmanager_qws.h qwsdefaultdecoration_qws.h))
161 touch $@ 165 touch $@
162 166
163$(QTDIR)/stamp-headers-x11 : 167$(QTDIR)/stamp-headers-x11 :
164 @-rm -f $(QTDIR)/stamp-headers* 168 @-rm -f $(QTDIR)/stamp-headers*
165 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) 169 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)
166 touch $@ 170 touch $@
167 171
168$(OPIEDIR)/stamp-headers : 172$(OPIEDIR)/stamp-headers :
169 @-rm -f $(OPIEDIR)/stamp-headers* 173 @-rm -f $(OPIEDIR)/stamp-headers*
170 mkdir -p $(TOPDIR)/include/qpe \ 174 mkdir -p $(TOPDIR)/include/qpe \
171 $(TOPDIR)/include/qtopia \ 175 $(TOPDIR)/include/qtopia \
172 $(TOPDIR)/include/opie \ 176 $(TOPDIR)/include/opie \
173 $(TOPDIR)/include/opie2 \ 177 $(TOPDIR)/include/opie2 \
174 $(TOPDIR)/include/opie2/private \ 178 $(TOPDIR)/include/opie2/private \
175 $(TOPDIR)/include/qtopia/private \ 179 $(TOPDIR)/include/qtopia/private \
176 $(TOPDIR)/include/sl 180 $(TOPDIR)/include/sl
177 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 181 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
178 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 182 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
179 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 183 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
180 # libopie2 184 # libopie2
181 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) 185 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; )
diff --git a/dependencies.in b/dependencies.in
index 2a3d34a..8d6fdbe 100644
--- a/dependencies.in
+++ b/dependencies.in
@@ -69,48 +69,59 @@
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.8" 74 boolean "Have libsword > = 1.5.8"
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 97 config LIBFREETYPE2_DEP
98 boolean "Have freetype2" 98 boolean "Have freetype2"
99 default "n" 99 default "n"
100 100
101 config LIBFREETYPE2_INC_DIR 101 config LIBFREETYPE2_INC_DIR
102 string "freetype2 include dir" 102 string "freetype2 include dir"
103 depends LIBFREETYPE2_DEP 103 depends LIBFREETYPE2_DEP
104 104
105 config LIBFLITE_DEP 105 config LIBFLITE_DEP
106 boolean "Have flite library" 106 boolean "Have flite library"
107 default "n" 107 default "n"
108 108
109 config LIBFLITE_INC_DIR 109 config LIBFLITE_INC_DIR
110 string "libflite include dir" 110 string "libflite include dir"
111 depends LIBFLITE_DEP 111 depends LIBFLITE_DEP
112 112
113 config LIBFLITE_LIB_DIR 113 config LIBFLITE_LIB_DIR
114 string "libflite library dir" 114 string "libflite library dir"
115 depends LIBFLITE_DEP 115 depends LIBFLITE_DEP
116 116
117 config LIBOBEXFTP_DEP
118 boolean "Have OBEX FTP library"
119 default "n"
120
121 config LIBOBEXFTP_INC_DIR
122 string "OBEXFTP include dir"
123 depends LIBOBEXFTP_DEP
124
125 config LIBOBEXFTP_LIB_DIR
126 string "OBEXFTP library dir"
127 depends LIBOBEXFTP_DEP