added aur/pjproject

This commit is contained in:
Kevin Mihelich 2014-04-16 19:19:45 +00:00
parent 29556d0cb8
commit 6e40a3e0c7
3 changed files with 65 additions and 0 deletions

35
aur/pjproject/PKGBUILD Normal file
View file

@ -0,0 +1,35 @@
# Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
# Contributor: Marti Raudsepp <marti@juffo.org>
#Contributor: Travis Hegner <travis.hegner@gmail.com>
pkgname=pjproject
pkgver=2.2.1
pkgrel=2
pkgdesc="Open source SIP stack and media stack"
arch=('i686' 'x86_64')
url="http://www.pjsip.org/"
license=('GPL')
depends=('openssl' 'portaudio' 'speex' 'alsa-lib' 'libsamplerate' 'util-linux-ng' 'ffmpeg' 'libsrtp')
makedepends=('e2fsprogs' 'python')
install=pjproject.install
source=(http://www.pjsip.org/release/${pkgver}/pjproject-${pkgver}.tar.bz2
ffmpeg.patch)
sha256sums=('da1933336b38b65ff2254bed05ea1076531b16915777a252ea999cf7f3284cb3'
'7393f742cccbbcf1ed9d04dbc0bcb506970dd6e1c410f881a169d98fc376e95d')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export CXXFLAGS="${CXXFLAGS} -fPIC"
export CFLAGS="${CXXFLAGS}"
patch -p1 < ${srcdir}/ffmpeg.patch
#./configure --prefix=/usr --with-external-speex --with-external-pa --disable-oss --enable-shared --disable-opencore-amr
./configure --prefix=/usr --with-external-speex --with-external-srtp --with-external-pa --with-external-gsm --disable-oss --enable-shared --disable-opencore-amr --disable-v4l2 --disable-video --disable-sound
make -j1 dep
make -j1
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make -j1 DESTDIR=${pkgdir} install
install -D -m755 pjsip-apps/bin/pjsua-*gnu* ${pkgdir}/usr/bin/pjsua
}

View file

@ -0,0 +1,12 @@
diff -aur pjproject-2.2.orig/pjmedia/src/pjmedia/ffmpeg_util.h pjproject-2.2/pjmedia/src/pjmedia/ffmpeg_util.h
--- pjproject-2.2.orig/pjmedia/src/pjmedia/ffmpeg_util.h 2011-07-19 05:42:28.000000000 +0200
+++ pjproject-2.2/pjmedia/src/pjmedia/ffmpeg_util.h 2014-03-08 11:30:57.675023916 +0100
@@ -22,6 +22,8 @@
* that use ffmpeg. This is not a public API.
*/
+#define CodecID AVCodecID
+
#ifndef __PJMEDIA_FFMPEG_UTIL_H__
#define __PJMEDIA_FFMPEG_UTIL_H__

View file

@ -0,0 +1,18 @@
post_install() {
cat << EOF
==>
==> To use py_pjsua (Python bindings for PJSUA),
==> install 'alsa-lib', 'e2fsprogs', and 'python'
==>
EOF
}
post_upgrade() {
post_install
}
op=$1
shift
[ "$(type -t "$op")" = "function" ] && $op "$@"
# vim:set ts=2 sw=2 et: