summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2015-02-14 19:30:30 +0200
committerMart Raudsepp <leio@gentoo.org>2015-02-14 19:41:41 +0200
commit0bcd80b60e54640ec532225190dc1777de7051d8 (patch)
treecd5b2175cfde80680258a18396d438dd6e6aa9b9 /media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150214.ebuild
parentraspberrypi-userland: Add missing wayland and pkgconfig deps from the wayland... (diff)
downloadleio-0bcd80b60e54640ec532225190dc1777de7051d8.tar.gz
leio-0bcd80b60e54640ec532225190dc1777de7051d8.tar.bz2
leio-0bcd80b60e54640ec532225190dc1777de7051d8.zip
raspberrypi-userland: Bump to latest snapshot for RPi2 ARMv7 support
Also remove useless CMAKE_TOOLCHAIN_FILE defining - eclass supposedly overrides that anyways. Build fails with as-needed, though due to mmal_util linkage issues. Temporarily filter it out.
Diffstat (limited to 'media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150214.ebuild')
-rw-r--r--media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150214.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150214.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150214.ebuild
new file mode 100644
index 0000000..2e66015
--- /dev/null
+++ b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150214.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cmake-utils eutils
+
+DESCRIPTION="Raspberry Pi userspace tools and libraries"
+HOMEPAGE="https://github.com/raspberrypi/userland"
+
+if [[ ${PV} == 9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://github.com/${PN/-//}.git"
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="mirror://gentoo/${P}.tar.xz"
+ KEYWORDS="~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="wayland"
+
+RDEPEND="wayland? ( dev-libs/wayland )"
+DEPEND="${RDEPEND}
+ wayland? ( virtual/pkgconfig )"
+
+# TODO:
+# * port vcfiled init script
+# * stuff is still installed to hardcoded /opt/vc location, investigate whether
+# anything else depends on it being there
+# * live ebuild
+
+src_unpack() {
+ if [[ ${PV} == 9999* ]]; then
+ git-2_src_unpack
+ else
+ default
+ mv userland-*/ ${P}/ || die
+ fi
+}
+
+src_prepare() {
+ # init script for Debian, not useful on Gentoo
+ sed -i "/DESTINATION \/etc\/init.d/,+2d" interface/vmcs_host/linux/vcfiled/CMakeLists.txt || die
+ # wayland egl support
+ epatch "${FILESDIR}"/next-resource-handle.patch
+ epatch "${FILESDIR}"/wayland-wsys.patch
+}
+
+src_configure() {
+ # FIXME: Fails to link apps using libmmal.so, due to libmmal_util getting filtered out and apps not linking to it
+ append-ldflags $(no-as-needed)
+ local mycmakeargs=(
+ $(cmake-utils_use_build wayland WAYLAND)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ doenvd "${FILESDIR}"/04${PN}
+
+ # enable dynamic switching of the GL implementation
+ dodir /usr/lib/opengl
+ dosym ../../../opt/vc /usr/lib/opengl/${PN}
+
+ # tell eselect opengl that we do not have libGL
+ touch "${ED}"/opt/vc/.gles-only
+
+ insinto /usr/lib/pkgconfig
+ doins "${FILESDIR}"/bcm_host.pc
+ doins "${FILESDIR}"/egl.pc
+ doins "${FILESDIR}"/glesv2.pc
+}