AArch64 tweaks
This commit is contained in:
parent
24a00e0f63
commit
3146675d18
|
@ -3,21 +3,26 @@
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
SCM=""
|
#SCM=""
|
||||||
if [ "${PV#9999}" != "${PV}" ] ; then
|
#if [ "${PV#9999}" != "${PV}" ] ; then
|
||||||
SCM="git-r3"
|
SCM="git-r3"
|
||||||
EGIT_REPO_URI="https://github.com/occipital/openni2"
|
# EGIT_REPO_URI="https://github.com/occipital/openni2"
|
||||||
fi
|
# TODO: publish to github
|
||||||
|
EGIT_REPO_URI="/git/openni2.git"
|
||||||
|
EGIT_BRANCH="nedko"
|
||||||
|
#fi
|
||||||
|
|
||||||
inherit ${SCM} toolchain-funcs multilib java-pkg-opt-2 flag-o-matic
|
inherit ${SCM} toolchain-funcs multilib java-pkg-opt-2 flag-o-matic
|
||||||
|
|
||||||
if [ "${PV#9999}" != "${PV}" ] ; then
|
#if [ "${PV#9999}" != "${PV}" ] ; then
|
||||||
SRC_URI=""
|
# SRC_URI=""
|
||||||
else
|
#else
|
||||||
KEYWORDS="~amd64 ~arm"
|
# KEYWORDS="~amd64 ~arm"
|
||||||
SRC_URI="https://github.com/occipital/OpenNI2/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
|
# SRC_URI="https://github.com/occipital/OpenNI2/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
|
||||||
S="${WORKDIR}/${P/_/-}"
|
# S="${WORKDIR}/${P/_/-}"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
|
#KEYWORDS="arm64" "~arm"
|
||||||
|
|
||||||
DESCRIPTION="OpenNI2 SDK"
|
DESCRIPTION="OpenNI2 SDK"
|
||||||
HOMEPAGE="https://structure.io/openni"
|
HOMEPAGE="https://structure.io/openni"
|
||||||
|
@ -36,26 +41,25 @@ DEPEND="${RDEPEND}
|
||||||
doc? ( app-doc/doxygen )
|
doc? ( app-doc/doxygen )
|
||||||
java? ( virtual/jdk:1.8 )"
|
java? ( virtual/jdk:1.8 )"
|
||||||
|
|
||||||
PATCHES=(
|
# these are applied via git
|
||||||
"${FILESDIR}/jpeg.patch"
|
#PATCHES=(
|
||||||
"${FILESDIR}/rpath.patch"
|
# "${FILESDIR}/jpeg.patch"
|
||||||
"${FILESDIR}/soname.patch"
|
# "${FILESDIR}/rpath.patch"
|
||||||
)
|
# "${FILESDIR}/soname.patch"
|
||||||
|
#)
|
||||||
|
|
||||||
src_prepare() {
|
#src_prepare() {
|
||||||
default
|
# default
|
||||||
|
#
|
||||||
rm -rf ThirdParty/LibJPEG
|
# rm -rf ThirdParty/LibJPEG
|
||||||
for i in ThirdParty/PSCommon/BuildSystem/Platform.* ; do
|
# for i in ThirdParty/PSCommon/BuildSystem/Platform.* ; do
|
||||||
echo "" > ${i}
|
# echo "" > ${i}
|
||||||
done
|
# done
|
||||||
}
|
#}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
use neon && export CFLAGS="${CFLAGS} -DXN_NEON"
|
use neon && export CFLAGS="${CFLAGS} -DXN_NEON"
|
||||||
emake \
|
emake \
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
CXX="$(tc-getCXX)" \
|
|
||||||
ALLOW_WARNINGS=1 \
|
ALLOW_WARNINGS=1 \
|
||||||
GLUT_SUPPORTED="$(usex opengl 1 0)" \
|
GLUT_SUPPORTED="$(usex opengl 1 0)" \
|
||||||
$(usex java "" ALL_WRAPPERS="") \
|
$(usex java "" ALL_WRAPPERS="") \
|
||||||
|
@ -76,7 +80,8 @@ src_install() {
|
||||||
insinto /usr/include/openni2
|
insinto /usr/include/openni2
|
||||||
doins -r Include/*
|
doins -r Include/*
|
||||||
|
|
||||||
dobin "${S}/Bin/"*Release/{PS1080Console,PSLinkConsole,SimpleRead,EventBasedRead,MultipleStreamRead,MWClosestPointApp}
|
# dobin "${S}/Bin/"*Release/{PS1080Console,PSLinkConsole,SimpleRead,EventBasedRead,MultipleStreamRead,MWClosestPointApp}
|
||||||
|
dobin "${S}/Bin/"*Release/{SimpleRead,EventBasedRead,MultipleStreamRead,MWClosestPointApp}
|
||||||
use opengl && dobin "${S}/Bin/"*Release/{NiViewer,SimpleViewer,MultiDepthViewer,ClosestPointViewer}
|
use opengl && dobin "${S}/Bin/"*Release/{NiViewer,SimpleViewer,MultiDepthViewer,ClosestPointViewer}
|
||||||
|
|
||||||
if use java ; then
|
if use java ; then
|
||||||
|
|
Loading…
Reference in New Issue