diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2015-10-26 17:38:05 +0100 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2015-10-26 17:38:05 +0100 |
commit | 1bca70f53487f157d0df00deac7b46f133ee2cc6 (patch) | |
tree | 877353b0955e944829e61bfb56c374f778616fb4 /media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150921.ebuild | |
parent | app-emulation/virtualbox-modules: Enabled verbose build. (diff) | |
download | gentoo-1bca70f53487f157d0df00deac7b46f133ee2cc6.tar.gz gentoo-1bca70f53487f157d0df00deac7b46f133ee2cc6.tar.bz2 gentoo-1bca70f53487f157d0df00deac7b46f133ee2cc6.zip |
media-libs/raspberrypi-userland: new snapshot
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150921.ebuild')
-rw-r--r-- | media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150921.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150921.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150921.ebuild new file mode 100644 index 000000000000..e18e32c0d016 --- /dev/null +++ b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150921.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +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" + +# 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 +} + +src_configure() { + # toolchain file not needed, but build fails if it is not specified + local mycmakeargs="-DCMAKE_TOOLCHAIN_FILE=/dev/null" + 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 +} |