vp-build/srcpkgs/baresip/template

54 lines
1.8 KiB
Bash

# Template file for 'baresip'
pkgname=baresip
version=1.1.0
revision=1
build_style=gnu-makefile
make_build_args="LIBRE_MK=${XBPS_CROSS_BASE}/usr/share/re/re.mk PREFIX=/usr
SYSROOT=${XBPS_CROSS_BASE}/usr LIBRE_INC=${XBPS_CROSS_BASE}/usr/include/re
LIBRE_SO=${XBPS_CROSS_BASE}/usr/lib LIBDIR=/usr/lib${XBPS_TARGET_WORDSIZE}
USE_SNAPSHOT=$(vopt_if video yes) USE_ALSA=yes USE_GST=yes USE_GST_VIDEO=yes
USE_OSS=yes USE_SDL=yes $(vopt_if video '' 'USE_AVCODEC=tes USE_AVFORMAT=yes
USE_SDL2=yes USE_V4L2=yes USE_VIDEO=yes USE_VPX=yes USE_X11=yes')
$(vopt_if gtk '' 'USE_GST1=yes USE_GST_VIDEO1=yes USE_GTK=yes')"
make_install_args="$make_build_args"
make_use_env=1
hostmakedepends="pkg-config glib-devel"
makedepends="libgsm-devel libpng-devel openssl-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="https://github.com/baresip/baresip"
distfiles="https://github.com/baresip/baresip/archive/v${version}.tar.gz"
checksum=f9230b27c4a62f31223847bc485c51f3d960f8a09f36998dedb73358e1784b4e
# Package build options
build_options="gtk video"
build_options_default="gtk video"
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
}