void-packages/srcpkgs/rem/template

54 lines
1.4 KiB
Bash

# Template file for 'rem'
pkgname=rem
version=2.7.0
revision=1
build_style=gnu-makefile
make_build_args="EXTRA_CFLAGS=$CFLAGS EXTRA_LFLAGS=$LDFLAGS RELEASE=1
LIBRE_MK=${XBPS_CROSS_BASE}/usr/share/re/re.mk \
SYSROOT=${XBPS_CROSS_BASE}/usr LIBREM_PATH=${wrksrc} \
LIBRE_INC=${XBPS_CROSS_BASE}/usr/include/re LIBRE_SO=${XBPS_CROSS_BASE}/usr/lib"
make_install_args="${make_build_args}"
make_use_env=yes
hostmakedepends="pkg-config"
makedepends="re-devel"
short_desc="Library for real-time audio and video processing"
maintainer="John <me@johnnynator.dev>"
license="BSD-3-Clause"
homepage="https://github.com/baresip/rem"
distfiles="https://github.com/baresip/rem/archive/refs/tags/v${version}.tar.gz"
checksum=7f4ad245eb9fb07a82890022d1c721c93ee2e299acb88a7e775ca541f7a09892
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
case "$XBPS_TARGET_MACHINE" in
armv6*) make_build_args+=" HAVE_ARMV6=1 ARCH=$arch";;
aarch64* | armv7* ) make_build_args+=" HAVE_NEON= ARCH=$arch";;
*) make_build_args+=" ARCH=$arch"
esac
pre_build() {
make ${make_build_args} info
}
post_install() {
vlicense docs/COPYING
}
rem-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}