PKGBUILDs/aur/pjproject/PKGBUILD

43 lines
1.7 KiB
Bash
Raw Normal View History

2014-04-16 19:19:45 +00:00
# Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
# Contributor: Marti Raudsepp <marti@juffo.org>
#Contributor: Travis Hegner <travis.hegner@gmail.com>
2014-04-16 21:04:56 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - set endianness for ARM
2014-04-16 19:19:45 +00:00
pkgname=pjproject
2014-11-09 05:23:08 +00:00
pkgver=2.3
pkgrel=1
2014-04-16 19:19:45 +00:00
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
2014-04-16 21:04:56 +00:00
ffmpeg.patch
arm.patch)
2014-11-09 05:23:08 +00:00
sha256sums=('e7fa60a3b59424430145af90372282ca778449f7b68b77bb24a9cf75d94d5765'
2014-04-16 21:04:56 +00:00
'7393f742cccbbcf1ed9d04dbc0bcb506970dd6e1c410f881a169d98fc376e95d'
'ad3c26950003da0b2db2fa532e1340828e05cbd6e336f1f6d96850d90d297ffa')
2014-04-16 19:19:45 +00:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export CXXFLAGS="${CXXFLAGS} -fPIC"
export CFLAGS="${CXXFLAGS}"
2014-11-09 05:23:08 +00:00
#patch -p1 < ${srcdir}/ffmpeg.patch
2014-04-16 21:04:56 +00:00
patch -p1 -i ../arm.patch
2014-04-16 19:19:45 +00:00
#./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
2014-07-23 11:41:47 +00:00
echo "#define PJ_HAS_IPV6 1" >> "${srcdir}/${pkgname}-${pkgver}/pjlib/include/pj/config_site.h"
2014-04-16 19:19:45 +00:00
make -j1 dep
make -j1
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make -j1 DESTDIR=${pkgdir} install
2014-11-09 05:23:08 +00:00
install -D -m755 pjsip-apps/bin/pjsua-*gnu ${pkgdir}/usr/bin/pjsua
2014-04-16 19:19:45 +00:00
}