libsrtp: fixed up the stupid pkgconfig file.

This commit is contained in:
Juan RP 2015-12-08 07:20:28 +01:00
parent a47ae80397
commit 0650ef0f5a
2 changed files with 8 additions and 7 deletions

View File

@ -1,11 +1,11 @@
prefix=@PREFIX@
exec_prefix=@PREFIX@
libdir=@LIBDIR@
includedir=@INCLUDEDIR@
prefix=/usr
exec_prefix=/usr
libdir=${prefix}/lib
includedir=${prefix}/include
Name: libsrtp
Description: Secure Real-time Transport Protocol library
Version: 1.4.4
Version: @VERSION@
URL: http://srtp.sourceforge.net
Requires:
Conflicts:

View File

@ -1,7 +1,7 @@
# Template build file for 'libsrtp'.
pkgname=libsrtp
version=1.4.4
revision=3
revision=4
wrksrc=srtp
build_style=gnu-configure
short_desc="Library implementing SRTP, the Secure Real-time Transport Protocol"
@ -15,7 +15,8 @@ checksum=ac91a00c4eed0c111a94dfa5295a32af82cdd26c1c7f58f317b1062f0beb923b
CFLAGS="-fPIC"
post_install() {
vinstall ${FILESDIR}/libsrtp.pc 644 usr/lib/pkgconfig
sed "s,@VERSION@,${version},g" ${FILESDIR}/libsrtp.pc > libsrtp.pc
vinstall libsrtp.pc 644 usr/lib/pkgconfig
ln -sf libsrtp.so.0.0.0 ${DESTDIR}/usr/lib/libsrtp.so
ln -sf libsrtp.so.0.0.0 ${DESTDIR}/usr/lib/libsrtp.so.0
}