Changeset 3063 for pjproject/trunk
- Timestamp:
- Jan 15, 2010 3:06:20 PM (15 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 added
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/Makefile
r3024 r3063 36 36 pjmedia/lib/libpjmedia-audiodev-$(TARGET_NAME).a \ 37 37 pjmedia/lib/libpjmedia-codec-$(TARGET_NAME).a \ 38 38 pjsip/lib/libpjsip-$(TARGET_NAME).a \ 39 39 pjsip/lib/libpjsip-ua-$(TARGET_NAME).a \ 40 40 pjsip/lib/libpjsip-simple-$(TARGET_NAME).a \ … … 91 91 cd tests/pjsua && python runall.py 92 92 93 prefix = /usr/local 93 prefix = $(ac_prefix) 94 include version.mak 95 94 96 install: 95 97 mkdir -p $(DESTDIR)$(prefix)/lib 96 cp - L $$(find . -name '*.a') $(DESTDIR)$(prefix)/lib98 cp -f $(APP_LIB_FILES) $(DESTDIR)$(prefix)/lib/ 97 99 mkdir -p $(DESTDIR)$(prefix)/include 98 cp -RL $$(find . -name include) $(DESTDIR)$(prefix) 99 cd $(DESTDIR)$(prefix)/lib && for i in $$(find . -name 'libpj*a'); do\ 100 ln -s $$i $$(echo $$i | sed -e "s/-$(TARGET_NAME)//");\ 100 for d in pjlib pjlib-util pjnath pjmedia pjsip; do \ 101 cp -RLf $$d/include/* $(DESTDIR)$(prefix)/include/; \ 101 102 done 102 103 mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig 103 sed -e "s!@PREFIX@!$(DESTDIR)$(prefix)!" libpj.pc.in > $(DESTDIR)/$(prefix)/lib/pkgconfig/libpj.pc 104 sed -e "s!@PREFIX@!$(DESTDIR)$(prefix)!" libpjproject.pc.in | \ 105 sed -e "s/@PJ_VERSION@/$(PJ_VERSION)/" | \ 106 sed -e "s!@PJ_LDLIBS@!$(PJ_LDLIBS)!" | \ 107 sed -e "s!@PJ_INSTALL_CFLAGS@!$(PJ_INSTALL_CFLAGS)!" > $(DESTDIR)/$(prefix)/lib/pkgconfig/libpjproject.pc -
pjproject/trunk/build.mak.in
r3062 r3063 8 8 export LINUX_POLL := @ac_linux_poll@ 9 9 10 export ac_prefix := @prefix@ 11 10 12 LIB_SUFFIX = $(TARGET_NAME).a 11 13 12 14 # Determine which party libraries to use 13 15 export APP_THIRD_PARTY_LIBS := -lresample-$(TARGET_NAME) -lmilenage-$(TARGET_NAME) -lsrtp-$(TARGET_NAME) 16 export APP_THIRD_PARTY_EXT := 14 17 export APP_THIRD_PARTY_LIB_FILES = $(PJ_DIR)/third_party/lib/libresample-$(LIB_SUFFIX) $(PJ_DIR)/third_party/lib/libmilenage-$(LIB_SUFFIX) $(PJ_DIR)/third_party/lib/libsrtp-$(LIB_SUFFIX) 15 18 … … 17 20 ifeq (@ac_external_gsm@,1) 18 21 # External GSM library 19 APP_THIRD_PARTY_LIBS += -lgsm 20 APP_THIRD_PARTY_LIB_FILES += 22 APP_THIRD_PARTY_EXT += -lgsm 21 23 else 22 24 APP_THIRD_PARTY_LIBS += -lgsmcodec-$(TARGET_NAME) … … 27 29 ifneq (@ac_no_speex_codec@,1) 28 30 ifeq (@ac_external_speex@,1) 29 APP_THIRD_PARTY_LIBS += -lspeex -lspeexdsp 30 APP_THIRD_PARTY_LIB_FILES += 31 APP_THIRD_PARTY_EXT += -lspeex -lspeexdsp 31 32 else 32 33 APP_THIRD_PARTY_LIBS += -lspeex-$(TARGET_NAME) … … 47 48 ifneq ($(findstring pa,@ac_pjmedia_snd@),) 48 49 ifeq (@ac_external_pa@,1) 49 APP_THIRD_PARTY_LIBS += -lportaudio 50 APP_THIRD_PARTY_ LIB_FILES +=50 # External PA 51 APP_THIRD_PARTY_EXT += -lportaudio 51 52 else 52 53 APP_THIRD_PARTY_LIBS += -lportaudio-$(TARGET_NAME) … … 86 87 -lpjlib-util-$(TARGET_NAME)\ 87 88 $(APP_THIRD_PARTY_LIBS)\ 89 $(APP_THIRD_PARTY_EXT)\ 88 90 -lpj-$(TARGET_NAME)\ 89 91 @LIBS@ … … 100 102 $(PJ_DIR)/pjlib/lib/libpj-$(LIB_SUFFIX) 101 103 104 # Here are the variabels to use if application is using the library 105 # from within the source distribution 102 106 export PJ_DIR := $(PJDIR) 103 107 export PJ_CC := $(APP_CC) … … 108 112 export PJ_LIB_FILES := $(APP_LIB_FILES) 109 113 114 # And here are the variables to use if application is using the 115 # library from the install location (i.e. --prefix) 116 export PJ_INSTALL_DIR := @prefix@ 117 export PJ_INSTALL_INC_DIR := $(PJ_INSTALL_DIR)/include 118 export PJ_INSTALL_LIB_DIR := $(PJ_INSTALL_DIR)/lib 119 export PJ_INSTALL_CFLAGS := -I$(PJ_INSTALL_INC_DIR) -DPJ_AUTOCONF=1 @CFLAGS@ 120 export PJ_INSTALL_CXXFLAGS := $(PJ_INSTALL_CFLAGS) 121 export PJ_INSTALL_LDFLAGS := -L$(PJ_INSTALL_LIB_DIR) $(APP_LDLIBS) -
pjproject/trunk/configure-legacy
r1202 r3063 125 125 export APP_LDFLAGS = -L\$(PJDIR)/pjlib/lib -L\$(PJDIR)/pjlib-util/lib -L\$(PJDIR)/pjnath/lib -L\$(PJDIR)/pjmedia/lib -L\$(PJDIR)/pjsip/lib -L\$(PJDIR)/third_party/lib 126 126 127 export APP_LDLIBS = -lpjsua-\$(TARGET_NAME) -lpjsip-ua-\$(TARGET_NAME) -lpjsip-simple-\$(TARGET_NAME) -lpjsip-\$(TARGET_NAME) -lpjmedia-codec-\$(TARGET_NAME) -lpjmedia-\$(TARGET_NAME) -lpjnath-\$(TARGET_NAME) -lpjlib-util-\$(TARGET_NAME) \$(APP_THIRD_PARTY_LIBS) -lpj-\$(TARGET_NAME) \$(CC_LDFLAGS) \$(OS_LDFLAGS) \$(M_LDFLAGS) \$(HOST_LDFLAGS) \$(LDFLAGS)127 export APP_LDLIBS = -lpjsua-\$(TARGET_NAME) -lpjsip-ua-\$(TARGET_NAME) -lpjsip-simple-\$(TARGET_NAME) -lpjsip-\$(TARGET_NAME) -lpjmedia-codec-\$(TARGET_NAME) -lpjmedia-\$(TARGET_NAME) -lpjnath-\$(TARGET_NAME) -lpjlib-util-\$(TARGET_NAME) \$(APP_THIRD_PARTY_LIBS) \$(APP_THIRD_PARTY_EXT) -lpj-\$(TARGET_NAME) \$(CC_LDFLAGS) \$(OS_LDFLAGS) \$(M_LDFLAGS) \$(HOST_LDFLAGS) \$(LDFLAGS) 128 128 129 129 export PJ_DIR = \$(PJDIR) -
pjproject/trunk/libpjproject.pc.in
r3062 r3063 6 6 includedir=${prefix}/include 7 7 8 Name: libpj 8 Name: libpjproject 9 9 Description: Multimedia communication library 10 Version: 0.5.10.3 11 Libs: -L${libdir} -lpjsua -lpjsip -lpjmedia -lpjsip-ua -lpjsip-simple -lpjsip-ua -lpjmedia-codec -lpjlib-util -lpj 12 Cflags: -I${includedir} 10 URL: http://www.pjsip.org 11 Version: @PJ_VERSION@ 12 Libs: -L${libdir} @PJ_LDLIBS@ 13 Cflags: -I${includedir} @PJ_INSTALL_CFLAGS@ -
pjproject/trunk/pjmedia/build/Makefile
r3058 r3063 41 41 -L$(PJDIR)/third_party/lib \ 42 42 $(APP_THIRD_PARTY_LIBS) \ 43 $(APP_THIRD_PARTY_EXT) \ 43 44 $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 44 45 $(LDFLAGS)
Note: See TracChangeset
for help on using the changeset viewer.