op25: this *should* be installing all the stuff in apps but it's not. shove it in /usr/share for now so it's usable at least

This commit is contained in:
Rick Farina (Zero_Chaos) 2019-01-04 01:00:32 -05:00
parent 830fad19c5
commit d8e7cd54ac
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A

View file

@ -12,6 +12,8 @@ HOMEPAGE="http://osmocom.org/projects/op25/wiki"
inherit git-r3
#EGIT_REPO_URI="https://github.com/balint256/op25.git"
EGIT_REPO_URI="https://git.osmocom.org/op25"
EGIT_BRANCH="max"
#EGIT_REPO_URI="https://github.com/boatbod/op25.git"
LICENSE="GPL"
SLOT="0"
@ -29,5 +31,25 @@ src_prepare() {
#workaround: compile with gcc 6
# append-cxxflags -Wno-narrowing
append-flags -funsigned-char
cmake-utils_src_prepare
}
src_configure() {
python_export PYTHON_SITEDIR
local mycmakeargs=(
-Wno-dev
-DPYTHON_EXECUTABLE="${PYTHON}"
-DGR_PYTHON_DIR="${PYTHON_SITEDIR}"
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
#this isn't right, but cmake is broken somehow
dodir /usr/share/${PN}
cp -r "${S}/op25/gr-op25_repeater/apps" "${ED}/usr/share/${PN}"
rm "${ED}/usr/share/${PN}/CMakeLists.txt"
}