source: packages/libs/srtp/patches/1008_shared-lib.patch @ 29807

Last change on this file since 29807 was 29807, checked in by jow, 5 years ago

Add srtp lib package

This patch adds support for the Secure Real-time Transport Protocol (SRTP)
library libsrtp.

This is needed for closing #8915 ticket.

Signed-off-by: Victor Seva <linuxmaniac@…>

File size: 1.8 KB
  • Makefile.in

    Description: Hack build routines to compile shared library
    Author: loki_val and solar
    Origin: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libsrtp/files/libsrtp-1.4.4-shared.patch
    Last-Update: 2010-03-19
    a b  
    1515 
    1616.PHONY: all test build_table_apps 
    1717 
    18 all: test  
     18all: libsrtp.so test 
    1919 
    2020runtest: build_table_apps test 
    2121        @echo "running libsrtp test applications..." 
     
    6767# implicit rules for object files and test apps 
    6868 
    6969%.o: %.c 
    70         $(COMPILE) -c $< -o $@ 
     70        $(COMPILE) -fPIC -c $< -o $@ 
    7171 
    7272%$(EXE): %.c 
    7373        $(COMPILE) $(LDFLAGS) $< -o $@ $(SRTPLIB) $(LIBS) 
     
    105105        ar cr libsrtp.a $^ 
    106106        $(RANLIB) libsrtp.a 
    107107 
     108libsrtp.so: $(srtpobj) $(cryptobj) $(gdoi) 
     109        $(CC) $(LDFLAGS) -shared -Wl,-soname,libsrtp.so.0 -o libsrtp.so.0.0  $^ 
     110 
    108111# libcryptomath.a contains general-purpose routines that are used to 
    109112# generate tables and verify cryptoalgorithm implementations - this 
    110113# library is not meant to be included in production code 
     
    198201        cp $(srcdir)/crypto/include/*.h $(DESTDIR)$(includedir)/srtp 
    199202        if [ "$(srcdir)" != "." ]; then cp crypto/include/*.h $(DESTDIR)$(includedir)/srtp; fi 
    200203        if [ -f libsrtp.a ]; then cp libsrtp.a $(DESTDIR)$(libdir)/; fi 
     204        if [ -f libsrtp.so.0.0 ]; then \ 
     205                cp libsrtp.so.0.0 $(DESTDIR)$(libdir)/; \ 
     206                ln -s libsrtp.so.0.0 $(DESTDIR)$(libdir)/libsrtp.so.0; \ 
     207                ln -s libsrtp.so.0.0 $(DESTDIR)$(libdir)/libsrtp.so; \ 
     208        fi 
    201209 
    202210uninstall: 
    203211        rm -f $(DESTDIR)$(includedir)/srtp/*.h 
     
    206214 
    207215clean: 
    208216        rm -rf $(cryptobj) $(srtpobj) $(cryptomath) TAGS \ 
    209         libcryptomath.a libsrtp.a core *.core test/core 
     217        libcryptomath.a libsrtp.a libsrtp.so.0.0 core *.core test/core 
    210218        for a in * */* */*/*; do                        \ 
    211219              if [ -f "$$a~" ] ; then rm -f $$a~; fi;   \ 
    212220        done; 
Note: See TracBrowser for help on using the repository browser.