55 lines
1.9 KiB
Bash
55 lines
1.9 KiB
Bash
# Template file for 'baresip'
|
|
pkgname=baresip
|
|
version=0.6.5
|
|
revision=2
|
|
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=') PREFIX=/usr
|
|
$(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') sndio-devel"
|
|
short_desc="Modular SIP User-Agent with audio and video support"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://www.creytiv.com/baresip.html"
|
|
distfiles="http://www.creytiv.com/pub/baresip-${version}.tar.gz"
|
|
checksum=2b035bd8b2121c72bec674768579a3bdcc5d1d567ecb0a84125864d69807b18d
|
|
|
|
# Package build options
|
|
build_options="gtk video"
|
|
build_options_default="gtk 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
|
|
}
|