mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-19 22:54:40 +01:00
40 lines
856 B
Bash
40 lines
856 B
Bash
# Copyright 2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="Digital Speech Decoder rewritten as a C++ library"
|
|
HOMEPAGE=""
|
|
SRC_URI=""
|
|
|
|
if [ "${PV}" = "9999" ]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/f4exb/dsdcc.git"
|
|
else
|
|
KEYWORDS="~amd64 ~x86"
|
|
SRC_URI="https://github.com/f4exb/dsdcc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
# S="${WORKDIR}/${PN}-${COMMIT}"
|
|
fi
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
IUSE="mbelib"
|
|
|
|
DEPEND="mbelib? ( media-libs/mbelib )"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND=""
|
|
|
|
src_prepare() {
|
|
sed -i -e 's#-Wall##g' -e 's#-fmax-errors=10 -O2 -ffast-math -ftree-vectorize##g' CMakeLists.txt
|
|
sed -i -e 's#PATCH_VERSION 5#PATCH_VERSION 6#' CMakeLists.txt
|
|
cmake_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
mycmakeargs=(
|
|
-DUSE_MBELIB="$(usex mbelib)"
|
|
)
|
|
cmake_src_configure
|
|
}
|