mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
41 lines
1.6 KiB
Bash
41 lines
1.6 KiB
Bash
# Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
|
|
# Contributor: Marti Raudsepp <marti@juffo.org>
|
|
#Contributor: Travis Hegner <travis.hegner@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - set endianness for ARM
|
|
|
|
pkgname=pjproject
|
|
pkgver=2.2.1
|
|
pkgrel=2.1
|
|
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
|
|
arm.patch)
|
|
sha256sums=('da1933336b38b65ff2254bed05ea1076531b16915777a252ea999cf7f3284cb3'
|
|
'7393f742cccbbcf1ed9d04dbc0bcb506970dd6e1c410f881a169d98fc376e95d'
|
|
'ad3c26950003da0b2db2fa532e1340828e05cbd6e336f1f6d96850d90d297ffa')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
export CXXFLAGS="${CXXFLAGS} -fPIC"
|
|
export CFLAGS="${CXXFLAGS}"
|
|
patch -p1 < ${srcdir}/ffmpeg.patch
|
|
patch -p1 -i ../arm.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
|
|
}
|