You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.5 KiB
62 lines
1.5 KiB
11 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
11 years ago
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20130705-r1.ebuild,v 1.1 2014/01/23 13:33:18 chithanh Exp $
|
||
11 years ago
|
|
||
|
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
|
||
|
}
|