Skip to content

Commit

Permalink
Re pjsip#1742 (misc): Add pjsua2 to make install and pkgconfig descri…
Browse files Browse the repository at this point in the history
…ption and fix its library path

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4781 74dad513-b988-da41-8d7b-12977e46ad98
  • Loading branch information
sauwming committed Mar 6, 2014
1 parent 0adad10 commit 72cc418
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ pjsua-test:

install:
mkdir -p $(DESTDIR)$(libdir)/
cp -af $(APP_LIB_FILES) $(DESTDIR)$(libdir)/
# cp -af $(APP_LIB_FILES) $(DESTDIR)$(libdir)/
cp -af $(APP_LIBXX_FILES) $(DESTDIR)$(libdir)/
mkdir -p $(DESTDIR)$(includedir)/
for d in pjlib pjlib-util pjnath pjmedia pjsip; do \
cp -RLf $$d/include/* $(DESTDIR)$(includedir)/; \
Expand All @@ -117,8 +118,10 @@ install:
sed -e "s!@INCLUDEDIR@!$(includedir)!" | \
sed -e "s!@LIBDIR@!$(libdir)!" | \
sed -e "s/@PJ_VERSION@/$(PJ_VERSION)/" | \
sed -e "s!@PJ_LDLIBS@!$(PJ_LDLIBS)!" | \
sed -e "s!@PJ_INSTALL_CFLAGS@!$(PJ_INSTALL_CFLAGS)!" > $(DESTDIR)/$(libdir)/pkgconfig/libpjproject.pc
sed -e "s!@PJ_LDLIBS@!!" | \
sed -e "s!@PJ_LDXXLIBS@!$(PJ_LDXXLIBS)!" | \
sed -e "s!@PJ_INSTALL_CFLAGS@!!" | \
sed -e "s!@PJ_INSTALL_CXXFLAGS@!$(PJ_INSTALL_CXXFLAGS)!" > $(DESTDIR)/$(libdir)/pkgconfig/libpjproject.pc

uninstall:
$(RM) $(DESTDIR)$(libdir)/pkgconfig/libpjproject.pc
Expand Down
4 changes: 2 additions & 2 deletions libpjproject.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Name: libpjproject
Description: Multimedia communication library
URL: http://www.pjsip.org
Version: @PJ_VERSION@
Libs: -L${libdir} @PJ_LDLIBS@
Cflags: -I${includedir} @PJ_INSTALL_CFLAGS@
Libs: -L${libdir} @PJ_LDXXLIBS@
Cflags: -I${includedir} @PJ_INSTALL_CXXFLAGS@
4 changes: 2 additions & 2 deletions pjsip/build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export PJSIP_LIB:=libpjsip-$(TARGET_NAME)$(LIBEXT)
export PJSIP_UA_LIB:=libpjsip-ua-$(TARGET_NAME)$(LIBEXT)
export PJSIP_SIMPLE_LIB:=libpjsip-simple-$(TARGET_NAME)$(LIBEXT)
export PJSUA_LIB_LIB:=libpjsua-$(TARGET_NAME)$(LIBEXT)
export PJSUA2_LIB_LIB=../lib/libpjsua2-$(TARGET_NAME)$(LIBEXT)
export PJSUA2_LIB_LIB=libpjsua2-$(TARGET_NAME)$(LIBEXT)

ifeq ($(PJ_SHARED_LIBRARIES),)
else
Expand All @@ -33,7 +33,7 @@ export PJSIP_SIMPLE_SONAME := libpjsip-simple.$(SHLIB_SUFFIX)
export PJSIP_SIMPLE_SHLIB := $(PJSIP_SIMPLE_SONAME).$(PJ_VERSION_MAJOR)
export PJSUA_LIB_SONAME := libpjsua.$(SHLIB_SUFFIX)
export PJSUA_LIB_SHLIB := $(PJSUA_LIB_SONAME).$(PJ_VERSION_MAJOR)
export PJSUA2_LIB_SONAME := ../lib/libpjsua2.$(SHLIB_SUFFIX)
export PJSUA2_LIB_SONAME := libpjsua2.$(SHLIB_SUFFIX)
export PJSUA2_LIB_SHLIB := $(PJSUA2_LIB_SONAME).$(PJ_VERSION_MAJOR)
endif

Expand Down

0 comments on commit 72cc418

Please sign in to comment.