From 5901da0be57756d6157c56d111e86d6c10c0b4d7 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 6 May 2018 15:30:24 +0200 Subject: [PATCH] New package: rem-0.5.3 --- common/shlibs | 1 + srcpkgs/rem-devel | 1 + srcpkgs/rem/template | 52 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 120000 srcpkgs/rem-devel create mode 100644 srcpkgs/rem/template diff --git a/common/shlibs b/common/shlibs index 1eaab4a9cb0..5c4916cf0b8 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3382,3 +3382,4 @@ libcss_parser.so.0 htmlcxx-0.86_1 libaom.so.0 libaom-1.0.0_1 libre.so re-0.5.8_1 libspandsp.so.2 spandsp-0.0.6_1 +librem.so rem-0.5.3_1 diff --git a/srcpkgs/rem-devel b/srcpkgs/rem-devel new file mode 120000 index 00000000000..bb6c00d1745 --- /dev/null +++ b/srcpkgs/rem-devel @@ -0,0 +1 @@ +rem \ No newline at end of file diff --git a/srcpkgs/rem/template b/srcpkgs/rem/template new file mode 100644 index 00000000000..5776f8aa58a --- /dev/null +++ b/srcpkgs/rem/template @@ -0,0 +1,52 @@ +# Template file for 'rem' +pkgname="rem" +version="0.5.3" +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 +makedepends="re-devel" +short_desc="Library for real-time audio and video processing" +maintainer="JohnZ " +license="BSD-3-Clause" +homepage="http://www.creytiv.com/" +distfiles="http://www.creytiv.com/pub/rem-${version}.tar.gz" +checksum=9f98a79947d4709282a5791ac30f0eda03d5d34086f36df74bff4f8aac0e8050 +shlib_provides="librem.so" + +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/*.a + vmove usr/lib/pkgconfig + } +}