summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2013-06-25 04:38:39 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2013-06-25 04:38:39 -0500
commitc8e85873b283201107e1f39bab9b6786fc99a2e5 (patch)
tree6a558c7d76b3b377d3e79bee76bdacaf8fdfde97
parentd0667450d97b754454742d2c3954979ed0826f1b (diff)
Removing mips.patch in libsrtp
-rw-r--r--extra/libsrtp/PKGBUILD13
-rw-r--r--extra/libsrtp/mips.patch55
2 files changed, 3 insertions, 65 deletions
diff --git a/extra/libsrtp/PKGBUILD b/extra/libsrtp/PKGBUILD
index c6d6294f8..5515fee4b 100644
--- a/extra/libsrtp/PKGBUILD
+++ b/extra/libsrtp/PKGBUILD
@@ -13,24 +13,17 @@ arch=('i686' 'x86_64' 'mips64el')
license=('BSD')
depends=('glibc')
makedepends=('git')
-source=("git://git.linphone.org/srtp.git#commit=1c9bd90"
- "mips.patch")
-md5sums=('SKIP'
- 'bfb3ec203daf786b9ffb33f30cb126ea')
+source=("git://git.linphone.org/srtp.git#commit=1c9bd90")
+md5sums=('SKIP')
pkgver() {
cd srtp
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
-prepare() {
- cd srtp
- patch -Np1 -i "$srcdir/mips.patch"
- autoconf
-}
-
build() {
cd srtp
+ autoconf
./configure --prefix=/usr
make
}
diff --git a/extra/libsrtp/mips.patch b/extra/libsrtp/mips.patch
deleted file mode 100644
index a1b549fe5..000000000
--- a/extra/libsrtp/mips.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-diff -ru srtp.orig/test/srtp_driver.c srtp/test/srtp_driver.c
---- srtp.orig/test/srtp_driver.c 2012-08-05 14:26:28.703145796 +0200
-+++ srtp/test/srtp_driver.c 2012-08-05 14:27:12.003981862 +0200
-@@ -314,7 +314,7 @@
- if (do_codec_timing) {
- srtp_policy_t policy;
- int ignore;
-- double mips = mips_estimate(1000000000, &ignore);
-+ double mips_ = mips_estimate(1000000000, &ignore);
-
- crypto_policy_set_rtp_default(&policy.rtp);
- crypto_policy_set_rtcp_default(&policy.rtcp);
-@@ -323,33 +323,33 @@
- policy.key = test_key;
- policy.next = NULL;
-
-- printf("mips estimate: %e\n", mips);
-+ printf("mips estimate: %e\n", mips_);
-
- printf("testing srtp processing time for voice codecs:\n");
- printf("codec\t\tlength (octets)\t\tsrtp instructions/second\n");
- printf("G.711\t\t%d\t\t\t%e\n", 80,
-- (double) mips * (80 * 8) /
-+ (double) mips_ * (80 * 8) /
- srtp_bits_per_second(80, &policy) / .01 );
- printf("G.711\t\t%d\t\t\t%e\n", 160,
-- (double) mips * (160 * 8) /
-+ (double) mips_ * (160 * 8) /
- srtp_bits_per_second(160, &policy) / .02);
- printf("G.726-32\t%d\t\t\t%e\n", 40,
-- (double) mips * (40 * 8) /
-+ (double) mips_ * (40 * 8) /
- srtp_bits_per_second(40, &policy) / .01 );
- printf("G.726-32\t%d\t\t\t%e\n", 80,
-- (double) mips * (80 * 8) /
-+ (double) mips_ * (80 * 8) /
- srtp_bits_per_second(80, &policy) / .02);
- printf("G.729\t\t%d\t\t\t%e\n", 10,
-- (double) mips * (10 * 8) /
-+ (double) mips_ * (10 * 8) /
- srtp_bits_per_second(10, &policy) / .01 );
- printf("G.729\t\t%d\t\t\t%e\n", 20,
-- (double) mips * (20 * 8) /
-+ (double) mips_ * (20 * 8) /
- srtp_bits_per_second(20, &policy) / .02 );
- printf("Wideband\t%d\t\t\t%e\n", 320,
-- (double) mips * (320 * 8) /
-+ (double) mips_ * (320 * 8) /
- srtp_bits_per_second(320, &policy) / .01 );
- printf("Wideband\t%d\t\t\t%e\n", 640,
-- (double) mips * (640 * 8) /
-+ (double) mips_ * (640 * 8) /
- srtp_bits_per_second(640, &policy) / .02 );
- }
-