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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
|
diff -urp pjproject-0.5.10.4/Makefile pjproject-0.5.10.4-new/Makefile
--- pjproject-0.5.10.4/Makefile 2007-04-15 11:56:39.000000000 +0100
+++ pjproject-0.5.10.4-new/Makefile 2007-08-28 05:02:59.473870768 +0100
@@ -18,15 +18,15 @@ all clean dep depend distclean doc print
fi; \
done
-LIBS = pjlib/lib/libpj-$(TARGET_NAME).a \
- pjlib-util/lib/libpjlib-util-$(TARGET_NAME).a \
- pjmedia/lib/libpjmedia-$(TARGET_NAME).a \
- pjmedia/lib/libpjmedia-codec-$(TARGET_NAME).a \
- pjsip/lib/libpjsip-$(TARGET_NAME).a \
- pjsip/lib/libpjsip-ua-$(TARGET_NAME).a \
- pjsip/lib/libpjsip-simple-$(TARGET_NAME).a \
- pjsip/lib/libpjsua-$(TARGET_NAME).a
-BINS = pjsip-apps/bin/pjsua-$(TARGET_NAME)$(HOST_EXE)
+LIBS = pjlib/lib/libpj.a \
+ pjlib-util/lib/libpjlib-util.a \
+ pjmedia/lib/libpjmedia.a \
+ pjmedia/lib/libpjmedia-codec.a \
+ pjsip/lib/libpjsip.a \
+ pjsip/lib/libpjsip-ua.a \
+ pjsip/lib/libpjsip-simple.a \
+ pjsip/lib/libpjsua.a
+BINS = pjsip-apps/bin/pjsua$(HOST_EXE)
size:
@echo -n 'Date: '
@@ -57,14 +57,11 @@ xhdrid:
cp /tmp/id $$f; \
done
-prefix = /usr/local
+prefix = $(PREFIX)
install:
mkdir -p $(DESTDIR)$(prefix)/lib
cp -L $$(find . -name '*.a') $(DESTDIR)$(prefix)/lib
mkdir -p $(DESTDIR)$(prefix)/include
cp -RL $$(find . -name include) $(DESTDIR)$(prefix)
- cd $(DESTDIR)$(prefix)/lib && for i in $$(find . -name 'libpj*a'); do\
- ln -s $$i $$(echo $$i | sed -e "s/-$(TARGET_NAME)//");\
- done
mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
sed -e "s!@PREFIX@!$(DESTDIR)$(prefix)!" libpj.pc.in > $(DESTDIR)/$(prefix)/lib/pkgconfig/libpj.pc
diff -urp pjproject-0.5.10.4/build.mak.in pjproject-0.5.10.4-new/build.mak.in
--- pjproject-0.5.10.4/build.mak.in 2007-03-12 20:37:40.000000000 +0000
+++ pjproject-0.5.10.4-new/build.mak.in 2007-08-28 05:03:16.092728592 +0100
@@ -6,6 +6,7 @@ export CC_NAME := gcc
export TARGET_NAME := @target@
export CROSS_COMPILE := @ac_cross_compile@
export LINUX_POLL := @ac_linux_poll@
+export PREFIX := @prefix@
# Application can use this
export PJDIR := @ac_pjdir@
diff -urp pjproject-0.5.10.4/pjlib/build/Makefile pjproject-0.5.10.4-new/pjlib/build/Makefile
--- pjproject-0.5.10.4/pjlib/build/Makefile 2006-09-17 20:54:23.000000000 +0100
+++ pjproject-0.5.10.4-new/pjlib/build/Makefile 2007-08-28 04:58:43.000000000 +0100
@@ -3,7 +3,7 @@ include ../../build/common.mak
RULES_MAK := ../../build/rules.mak
-export PJLIB_LIB := ../lib/libpj-$(TARGET_NAME)$(LIBEXT)
+export PJLIB_LIB := ../lib/libpj$(LIBEXT)
###############################################################################
# Gather all flags.
@@ -26,7 +26,7 @@ export PJLIB_OBJS += $(OS_OBJS) $(M_OBJS
pool.o pool_buf.o pool_caching.o pool_dbg.o rand.o \
rbtree.o string.o timer.o \
types.o symbols.o
-export PJLIB_CFLAGS += $(_CFLAGS)
+export PJLIB_CFLAGS += $(_CFLAGS) -fPIC
###############################################################################
# Defines for building test application
@@ -42,7 +42,7 @@ export TEST_OBJS += atomic.o echo_clt.o
util.o
export TEST_CFLAGS += $(_CFLAGS)
export TEST_LDFLAGS += $(_LDFLAGS)
-export TEST_EXE := ../bin/pjlib-test-$(TARGET_NAME)$(HOST_EXE)
+export TEST_EXE := ../bin/pjlib-test-$(HOST_EXE)
export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
diff -urp pjproject-0.5.10.4/pjlib-util/build/Makefile pjproject-0.5.10.4-new/pjlib-util/build/Makefile
--- pjproject-0.5.10.4/pjlib-util/build/Makefile 2006-11-17 13:44:16.000000000 +0000
+++ pjproject-0.5.10.4-new/pjlib-util/build/Makefile 2007-08-28 04:58:43.000000000 +0100
@@ -6,8 +6,8 @@ include ../../build/common.mak
RULES_MAK := ../../build/rules.mak
-PJLIB_LIB:=../../pjlib/lib/libpj-$(TARGET_NAME)$(LIBEXT)
-export PJLIB_UTIL_LIB:=../lib/libpjlib-util-$(TARGET_NAME)$(LIBEXT)
+PJLIB_LIB:=../../pjlib/lib/libpj$(LIBEXT)
+export PJLIB_UTIL_LIB:=../lib/libpjlib-util$(LIBEXT)
###############################################################################
# Gather all flags.
@@ -28,7 +28,7 @@ export PJLIB_UTIL_SRCDIR = ../src/pjlib-
export PJLIB_UTIL_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
errno.o dns.o dns_dump.o getopt.o md5.o resolver.o \
scanner.o stun.o string.o stun_client.o xml.o
-export PJLIB_UTIL_CFLAGS += $(_CFLAGS)
+export PJLIB_UTIL_CFLAGS += $(_CFLAGS) -fPIC
###############################################################################
# Defines for building test application
@@ -37,7 +37,7 @@ export UTIL_TEST_SRCDIR = ../src/pjlib-u
export UTIL_TEST_OBJS += xml.o test.o
export UTIL_TEST_CFLAGS += $(_CFLAGS)
export UTIL_TEST_LDFLAGS += $(_LDFLAGS)
-export UTIL_TEST_EXE:=../bin/pjlib-util-test-$(TARGET_NAME)$(HOST_EXE)
+export UTIL_TEST_EXE:=../bin/pjlib-util-test-$(HOST_EXE)
export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
diff -urp pjproject-0.5.10.4/pjmedia/build/Makefile pjproject-0.5.10.4-new/pjmedia/build/Makefile
--- pjproject-0.5.10.4/pjmedia/build/Makefile 2007-01-21 23:12:40.000000000 +0000
+++ pjproject-0.5.10.4-new/pjmedia/build/Makefile 2007-08-28 04:58:43.000000000 +0100
@@ -18,12 +18,12 @@ include ../../build/common.mak
RULES_MAK := ../../build/rules.mak
-PJLIB_LIB:=../../pjlib/lib/libpj-$(TARGET_NAME)$(LIBEXT)
-PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util-$(TARGET_NAME)$(LIBEXT)
+PJLIB_LIB:=../../pjlib/lib/libpj$(LIBEXT)
+PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util$(LIBEXT)
-export PJMEDIA_LIB:=../lib/libpjmedia-$(TARGET_NAME)$(LIBEXT)
-export PJMEDIA_CODEC_LIB:=../lib/libpjmedia-codec-$(TARGET_NAME)$(LIBEXT)
-export PJSDP_LIB:=../lib/libpjsdp-$(TARGET_NAME)$(LIBEXT)
+export PJMEDIA_LIB:=../lib/libpjmedia$(LIBEXT)
+export PJMEDIA_CODEC_LIB:=../lib/libpjmedia-codec$(LIBEXT)
+export PJSDP_LIB:=../lib/libpjsdp$(LIBEXT)
###############################################################################
# Sound frameworks
@@ -78,7 +78,7 @@ export PJMEDIA_OBJS += $(OS_OBJS) $(M_OB
wav_player.o wav_playlist.o wav_writer.o wave.o \
$(SOUND_OBJS) $(NULLSOUND_OBJS)
-export PJMEDIA_CFLAGS += $(_CFLAGS)
+export PJMEDIA_CFLAGS += $(_CFLAGS) -fPIC
###############################################################################
@@ -90,7 +90,7 @@ export PJMEDIA_CFLAGS += $(_CFLAGS)
export PJSDP_SRCDIR = ../src/pjmedia
export PJSDP_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
errno.o sdp.o sdp_cmp.o sdp_neg.o
-export PJSDP_CFLAGS += $(_CFLAGS)
+export PJSDP_CFLAGS += $(_CFLAGS) -fPIC
###############################################################################
@@ -103,7 +103,7 @@ GSM_OBJS := gsm.o \
gsm/gsm_option.o gsm/long_term.o \
gsm/lpc.o gsm/preprocess.o gsm/rpe.o gsm/short_term.o \
gsm/table.o
-GSM_CFLAGS :=
+GSM_CFLAGS :=
SPEEX_OBJS := speex_codec.o \
speex/bits.o speex/cb_search.o speex/exc_10_16_table.o \
@@ -131,14 +131,14 @@ ILBC_OBJS := ilbc.o \
ilbc/hpOutput.o ilbc/iCBConstruct.o ilbc/iCBSearch.o \
ilbc/iLBC_decode.o ilbc/iLBC_encode.o ilbc/lsf.o \
ilbc/packing.o ilbc/syntFilter.o
-ILBC_CFLAGS :=
+ILBC_CFLAGS :=
export PJMEDIA_CODEC_SRCDIR = ../src/pjmedia-codec
export PJMEDIA_CODEC_OBJS += \
$(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
$(CODEC_OBJS)
export PJMEDIA_CODEC_CFLAGS += $(_CFLAGS) $(GSM_CFLAGS) $(SPEEX_CFLAGS) \
- $(ILBC_CFLAGS)
+ $(ILBC_CFLAGS) -fPIC
###############################################################################
@@ -148,7 +148,7 @@ export PJMEDIA_TEST_SRCDIR = ../src/test
export PJMEDIA_TEST_OBJS += jbuf_test.o main.o rtp_test.o sdp_neg_test.o test.o
export PJMEDIA_TEST_CFLAGS += $(_CFLAGS)
export PJMEDIA_TEST_LDFLAGS += $(_LDFLAGS)
-export PJMEDIA_TEST_EXE:=../bin/pjmedia-test-$(TARGET_NAME)$(HOST_EXE)
+export PJMEDIA_TEST_EXE:=../bin/pjmedia-test-$(HOST_EXE)
export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
diff -urp pjproject-0.5.10.4/pjsip/build/Makefile pjproject-0.5.10.4-new/pjsip/build/Makefile
--- pjproject-0.5.10.4/pjsip/build/Makefile 2006-12-25 20:34:14.000000000 +0000
+++ pjproject-0.5.10.4-new/pjsip/build/Makefile 2007-08-28 04:58:43.000000000 +0100
@@ -7,15 +7,15 @@ include ../../build/common.mak
RULES_MAK := ../../build/rules.mak
-PJLIB_LIB:=../../pjlib/lib/libpj-$(TARGET_NAME)$(LIBEXT)
-PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util-$(TARGET_NAME)$(LIBEXT)
-PJMEDIA_LIB:=../../pjmedia/lib/libpjmedia-$(TARGET_NAME)$(LIBEXT)
-PJMEDIA_CODEC_LIB:=../../pjmedia/lib/libpjmedia-codec-$(TARGET_NAME)$(LIBEXT)
-
-export PJSIP_LIB:=../lib/libpjsip-$(TARGET_NAME)$(LIBEXT)
-export PJSIP_UA_LIB:=../lib/libpjsip-ua-$(TARGET_NAME)$(LIBEXT)
-export PJSIP_SIMPLE_LIB:=../lib/libpjsip-simple-$(TARGET_NAME)$(LIBEXT)
-export PJSUA_LIB_LIB=../lib/libpjsua-$(TARGET_NAME)$(LIBEXT)
+PJLIB_LIB:=../../pjlib/lib/libpj$(LIBEXT)
+PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util$(LIBEXT)
+PJMEDIA_LIB:=../../pjmedia/lib/libpjmedia$(LIBEXT)
+PJMEDIA_CODEC_LIB:=../../pjmedia/lib/libpjmedia-codec$(LIBEXT)
+
+export PJSIP_LIB:=../lib/libpjsip$(LIBEXT)
+export PJSIP_UA_LIB:=../lib/libpjsip-ua$(LIBEXT)
+export PJSIP_SIMPLE_LIB:=../lib/libpjsip-simple$(LIBEXT)
+export PJSUA_LIB_LIB=../lib/libpjsua$(LIBEXT)
###############################################################################
@@ -50,7 +50,7 @@ export PJSIP_OBJS += $(OS_OBJS) $(M_OBJS
sip_auth_server.o \
sip_transaction.o sip_util_statefull.o \
sip_dialog.o sip_ua_layer.o
-export PJSIP_CFLAGS += $(_CFLAGS)
+export PJSIP_CFLAGS += $(_CFLAGS) -fPIC
###############################################################################
# Defines for building PJSIP UA library
@@ -58,7 +58,7 @@ export PJSIP_CFLAGS += $(_CFLAGS)
export PJSIP_UA_SRCDIR = ../src/pjsip-ua
export PJSIP_UA_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
sip_inv.o sip_reg.o sip_replaces.o sip_xfer.o
-export PJSIP_UA_CFLAGS += $(_CFLAGS)
+export PJSIP_UA_CFLAGS += $(_CFLAGS) -fPIC
###############################################################################
@@ -69,7 +69,7 @@ export PJSIP_SIMPLE_OBJS += $(OS_OBJS) $
errno.o evsub.o evsub_msg.o iscomposing.o \
pidf.o presence.o presence_body.o publishc.o \
xpidf.o
-export PJSIP_SIMPLE_CFLAGS += $(_CFLAGS)
+export PJSIP_SIMPLE_CFLAGS += $(_CFLAGS) -fPIC
###############################################################################
@@ -79,7 +79,7 @@ export PJSUA_LIB_SRCDIR = ../src/pjsua-l
export PJSUA_LIB_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
pjsua_acc.o pjsua_call.o pjsua_core.o \
pjsua_im.o pjsua_media.o pjsua_pres.o
-export PJSUA_LIB_CFLAGS += $(_CFLAGS)
+export PJSUA_LIB_CFLAGS += $(_CFLAGS) -fPIC
export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
@@ -96,7 +96,7 @@ export TEST_OBJS += dlg_core_test.o dns_
tsx_uas_test.o txdata_test.o uri_test.o
export TEST_CFLAGS += $(_CFLAGS)
export TEST_LDFLAGS += $(_LDFLAGS)
-export TEST_EXE := ../bin/pjsip-test-$(TARGET_NAME)$(HOST_EXE)
+export TEST_EXE := ../bin/pjsip-test$(HOST_EXE)
export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
diff -urp pjproject-0.5.10.4/pjsip-apps/build/Makefile pjproject-0.5.10.4-new/pjsip-apps/build/Makefile
--- pjproject-0.5.10.4/pjsip-apps/build/Makefile 2006-08-02 20:41:37.000000000 +0100
+++ pjproject-0.5.10.4-new/pjsip-apps/build/Makefile 2007-08-28 05:10:07.734437394 +0100
@@ -2,14 +2,14 @@ include ../../build/common.mak
RULES_MAK := ../../build/rules.mak
-PJLIB_LIB:=../../pjlib/lib/libpj-$(TARGET_NAME)$(LIBEXT)
-PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util-$(TARGET_NAME)$(LIBEXT)
-PJMEDIA_LIB:=../../pjmedia/lib/libpjmedia-$(TARGET_NAME)$(LIBEXT)
-PJMEDIA_CODEC_LIB:=../../pjmedia/lib/libpjmedia-codec-$(TARGET_NAME)$(LIBEXT)
-PJSIP_LIB:=../../pjsip/lib/libpjsip-$(TARGET_NAME)$(LIBEXT)
-PJSIP_UA_LIB:=../../pjsip/lib/libpjsip-ua-$(TARGET_NAME)$(LIBEXT)
-PJSIP_SIMPLE_LIB:=../../pjsip/lib/libpjsip-simple-$(TARGET_NAME)$(LIBEXT)
-PJSUA_LIB_LIB=../../pjsip/lib/libpjsua-$(TARGET_NAME)$(LIBEXT)
+PJLIB_LIB:=../../pjlib/lib/libpj$(LIBEXT)
+PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util$(LIBEXT)
+PJMEDIA_LIB:=../../pjmedia/lib/libpjmedia$(LIBEXT)
+PJMEDIA_CODEC_LIB:=../../pjmedia/lib/libpjmedia-codec$(LIBEXT)
+PJSIP_LIB:=../../pjsip/lib/libpjsip$(LIBEXT)
+PJSIP_UA_LIB:=../../pjsip/lib/libpjsip-ua$(LIBEXT)
+PJSIP_SIMPLE_LIB:=../../pjsip/lib/libpjsip-simple$(LIBEXT)
+PJSUA_LIB_LIB=../../pjsip/lib/libpjsua$(LIBEXT)
###############################################################################
@@ -41,7 +41,7 @@ export PJSUA_OBJS += $(OS_OBJS) $(M_OBJS
main.o pjsua_app.o
export PJSUA_CFLAGS += $(_CFLAGS)
export PJSUA_LDFLAGS += $(_LDFLAGS)
-export PJSUA_EXE:=../bin/pjsua-$(TARGET_NAME)$(HOST_EXE)
+export PJSUA_EXE:=../bin/pjsua$(HOST_EXE)
export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
@@ -49,7 +49,7 @@ export CC_OUT CC AR RANLIB HOST_MV HOST_
# Main entry
#
#
-TARGETS := pjsua samples
+TARGETS := pjsua
.PHONY: $(TARGETS)
--- pjproject-0.5.10.4/pjsip-apps/src/py_pjsua/setup.py 2007-02-07 10:09:19.000000000 +0000
+++ pjproject-0.5.10.4-new/pjsip-apps/src/py_pjsua/setup.py 2007-08-28 05:20:37.216399054 +0100
@@ -29,15 +29,15 @@ setup(name="py_pjsua", version="0.1",
pjproject + "pjlib/lib",
pjproject + "pjmedia/lib",
pjproject + "pjlib-util/lib"],
- libraries=[ "pjsua-" + target,
- "pjsip-ua-" + target,
- "pjsip-simple-" + target,
- "pjsip-" + target,
- "pjmedia-codec-" + target,
- "pjmedia-" + target,
- "pjmedia-codec-" + target,
- "pjlib-util-" + target,
- "pj-" + target,
+ libraries=[ "pjsua",
+ "pjsip-ua",
+ "pjsip-simple",
+ "pjsip",
+ "pjmedia-codec",
+ "pjmedia",
+ "pjmedia-codec",
+ "pjlib-util",
+ "pj",
"ssl",
"crypto",
"asound"]),
|