diff options
-rw-r--r-- | media-libs/mali-drivers-bin/Manifest | 2 | ||||
-rw-r--r-- | media-libs/mali-drivers-bin/mali-drivers-bin-1.20-r123.ebuild | 49 |
2 files changed, 51 insertions, 0 deletions
diff --git a/media-libs/mali-drivers-bin/Manifest b/media-libs/mali-drivers-bin/Manifest new file mode 100644 index 0000000..d5662d4 --- /dev/null +++ b/media-libs/mali-drivers-bin/Manifest @@ -0,0 +1,2 @@ +DIST mali-drivers-1.20-r123.run 1555322 SHA256 3c6744b8814f658228abe8a65a1406302f7f2614d3c48bcef2e1ad68dd7357a7 SHA512 7abda19988d649301aabba141566c30dc7fc8c1428baec52723c954b3acca1bb4f317ce5c813c55d895fa3dc0197d56f4dbe20b317677b4221d3e1235d48184e WHIRLPOOL 9fc4b0b373e3c7c86115f575d0de038f28b12d89ff8a55935b93509ed2bf9214747e6e74f4f09801f66ac1fd23238ee1c7325ee7afbf0e3a7890a5c94ec09ce5 +EBUILD mali-drivers-bin-1.20-r123.ebuild 1178 SHA256 f8a554da16a0e69f970e3729b5d9f130b521b7b113c983bcc5cb9496bca8fbde SHA512 f9447f9be94e752867dcdfc9dec9915bfaaf590eb911e3572261b1d48f4d285f75ea2c524e419df3e298ffc7692354dad3413a08852683f3f387cd70639d4186 WHIRLPOOL 9b7f81d2508e336a8b64a144a294f867e74d6c5cbd6c2fd62d9b0ea947296db5db58dd941074976ec3c416274938d487cf9fd844acfface9a8fe2d1a0a53ffaa diff --git a/media-libs/mali-drivers-bin/mali-drivers-bin-1.20-r123.ebuild b/media-libs/mali-drivers-bin/mali-drivers-bin-1.20-r123.ebuild new file mode 100644 index 0000000..ff3372c --- /dev/null +++ b/media-libs/mali-drivers-bin/mali-drivers-bin-1.20-r123.ebuild @@ -0,0 +1,49 @@ +# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit unpacker multilib + +DESCRIPTION="Mali drivers, binary only install" +HOMEPAGE="http://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/samsung-arm-chromebook" +SRC_URI="http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/mali-drivers-${PVR}.run" + +LICENSE="Google-TOS" +SLOT="0" +KEYWORDS="arm" + +DEPEND="" + +RDEPEND="x11-base/xorg-server" + +S=${WORKDIR} + +src_install() { + local opengl_imp="mali" + local opengl_dir="opengl/${opengl_imp}" + local x + + mkdir -p usr/lib/${opengl_dir}/lib + for x in usr/lib/lib{EGL,GL*,mali}.so*; do + einfo "moving ${x} to usr/lib/${opengl_dir}/lib/" + if [ -f ${x} -o -L ${x} ]; then + mv "${x}" usr/lib/${opengl_dir}/lib/ \ + || die "Failed to move ${x}" + fi + done + + # We don't need the debug bits. + rm -r usr/lib/debug + # mesa installs these already + rm -r usr/lib/pkgconfig + + insinto /usr/$(get_libdir) + doins -r usr/lib/* + + touch "${ED}"/usr/$(get_libdir)/${opengl_dir}/.gles-only +} + +pkg_postinst() { + eselect opengl set --use-old ${opengl_imp} +} |