New package: baresip-0.5.10

Closes: #107 [via git-merge-pr]
This commit is contained in:
John 2018-05-06 15:30:33 +02:00 committed by Jürgen Buchmüller
parent 5901da0be5
commit 2674fded63
1 changed files with 54 additions and 0 deletions

54
srcpkgs/baresip/template Normal file
View File

@ -0,0 +1,54 @@
# Template file for 'baresip'
pkgname=baresip
version=0.5.10
revision=1
build_style=gnu-makefile
make_build_args="LIBRE_MK=${XBPS_CROSS_BASE}/usr/share/re/re.mk \
SYSROOT=${XBPS_CROSS_BASE}/usr \
LIBRE_INC=${XBPS_CROSS_BASE}/usr/include/re LIBRE_SO=${XBPS_CROSS_BASE}/usr/lib
EXTRA_MODULES=$(vopt_if video snapshot)
USE_ALSA= USE_GST= USE_GST_VIDEO= USE_OSS= USE_SDL= USE_ZRTP=
$(vopt_if video '' 'USE_AVCODEC= USE_AVFORMAT= USE_CAIRO= USE_SDL2= USE_V4L=
USE_V4L2= USE_VIDEO= USE_VPX= USE_X11=')
$(vopt_if gtk '' 'USE_CAIRO= USE_GST1= USE_GST_VIDEO1= USE_GTK=')"
make_install_args="${make_build_args}"
make_use_env=1
hostmakedepends="pkg-config"
makedepends="libgsm-devel libpng-devel libressl-devel libsndfile-devel
opus-devel re-devel rem-devel spandsp-devel speex-devel speexdsp-devel
tiff-devel twolame-devel
$(vopt_if video 'SDL2-devel ffmpeg-devel libvpx-devel libX11-devel
v4l-utils-devel x265-devel libXext-devel')
$(vopt_if gtk 'cairo-devel gst-plugins-base1-devel gstreamer1-devel
gtk+-devel mpg123-devel')"
short_desc="Modular SIP User-Agent with audio and video support"
maintainer="JohnZ <johnz@posteo.net>"
license="BSD-3-Clause"
homepage="http://www.creytiv.com/baresip"
distfiles="http://www.creytiv.com/pub/baresip-${version}.tar.gz"
checksum=393fb010410d3fc6a4879cfda235f0ec98439be5d1dca02c15f3416f7110a7fb
# Package build options
build_options="gtk video"
build_options_default="video"
desc_option_gtk="Enable support for GTK+2 frontend and related modules"
desc_option_video="Enable support for video calling"
case $XBPS_TARGET_MACHINE in
i686*) arch="i686";;
x86_64*) arch="x86_64";;
armv6*) arch="arm6";;
aarch64*) arch="arm64";;
arm*) arch="arm";;
mips*) arch="mips";;
esac
make_build_args+=" ARCH=$arch"
make_install_args+=" ARCH=$arch"
pre_build() {
make ${make_build_args} info
}
post_install() {
vlicense docs/COPYING
}