# Template file for 'baresip' pkgname=baresip version=1.0.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} EXTRA_MODULES=$(vopt_if video snapshot) 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_CAIRO=yes USE_SDL2=yes USE_V4L2=yes USE_VIDEO=yes USE_VPX=yes USE_X11=yes') $(vopt_if gtk '' 'USE_CAIRO=yes USE_GST1=yes USE_GST_VIDEO1=yes USE_GTK=yes')" 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 " license="BSD-3-Clause" homepage="https://github.com/baresip/baresip" distfiles="https://github.com/baresip/baresip/archive/v${version}.tar.gz" checksum=7b008c0a5b4fccfa0a4003f86dc4aaafeaabbdd259ece4757898e9cb5f04fdcf # 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 }