You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/codec2/codec2-0.8.1.ebuild

36 lines
711 B

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CMAKE_ECLASS=cmake
inherit cmake-multilib
DESCRIPTION="Low bit rate speech codec"
HOMEPAGE="https://freedv.org/"
SRC_URI="https://hobbes1069.fedorapeople.org/freetel/codec2/${P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86"
IUSE="examples"
PATCHES=(
"${FILESDIR}"/${P}-unused-deps.patch
"${FILESDIR}"/${P}-fno-common.patch
)
multilib_src_configure() {
local mycmakeargs=( -DUNITTEST=OFF )
cmake_src_configure
}
src_install() {
cmake-multilib_src_install
if use examples; then
insinto /usr/share/codec2
doins -r wav raw
fi
}