summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/raspberrypi-userland')
-rw-r--r--media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild26
1 files changed, 15 insertions, 11 deletions
diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild
index 44af1834f383..fb3240d5919a 100644
--- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild
+++ b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild
@@ -19,9 +19,12 @@ else
S="${WORKDIR}/raspberrypi-userland-${GIT_COMMIT}"
fi
-RDEPEND="!media-libs/raspberrypi-userland-bin
+RDEPEND="
+ !media-libs/raspberrypi-userland-bin
wayland? ( dev-libs/wayland )"
-DEPEND="${RDEPEND}
+
+DEPEND="
+ ${RDEPEND}
wayland? ( virtual/pkgconfig )"
IUSE="examples wayland"
@@ -66,7 +69,7 @@ src_install() {
dosym ../../../opt/vc /usr/lib/opengl/${PN}
# tell eselect opengl that we do not have libGL
- touch "${ED}"/opt/vc/.gles-only
+ touch "${ED}"/opt/vc/.gles-only || die
insinto /opt/vc/lib/pkgconfig
doins "${FILESDIR}"/bcm_host.pc
@@ -74,7 +77,7 @@ src_install() {
doins "${FILESDIR}"/glesv2.pc
if use wayland; then
# Missing wayland-egl version from the patch; claim 9.0 (a mesa version) for now, so gst-plugins-bad wayland-egl check is happy
- sed -i -e 's/Version: /Version: 9.0/' "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc
+ sed -i -e 's/Version: /Version: 9.0/' "${ED}/opt/vc/lib/pkgconfig/wayland-egl.pc" || die
doins "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc # Maybe move?
fi
@@ -82,24 +85,25 @@ src_install() {
einfo "Fixing #include \"vcos_platform_types.h\""
for file in $(grep -l "#include \"vcos_platform_types.h\"" "${D}"/opt/vc/include/* -r); do
einfo " Fixing file ${file}"
- sed -i "s%#include \"vcos_platform_types.h\"%#include \"interface/vcos/pthreads/vcos_platform_types.h\"%g" ${file}
+ sed -i "s%#include \"vcos_platform_types.h\"%#include \"interface/vcos/pthreads/vcos_platform_types.h\"%g" ${file} || die
done
+
einfo "Fixing #include \"vcos_platform.h\""
for file in $(grep -l "#include \"vcos_platform.h\"" "${D}"/opt/vc/include/* -r); do
einfo " Fixing file ${file}"
- sed -i "s%#include \"vcos_platform.h\"%#include \"interface/vcos/pthreads/vcos_platform.h\"%g" ${file}
+ sed -i "s%#include \"vcos_platform.h\"%#include \"interface/vcos/pthreads/vcos_platform.h\"%g" ${file} || die
done
+
einfo "Fixing #include \"vchost_config.h\""
for file in $(grep -l "#include \"vchost_config.h\"" "${D}"/opt/vc/include/* -r); do
einfo " Fixing file ${file}"
- sed -i "s%#include \"vchost_config.h\"%#include \"interface/vmcs_host/linux/vchost_config.h\"%g" ${file}
+ sed -i "s%#include \"vchost_config.h\"%#include \"interface/vmcs_host/linux/vchost_config.h\"%g" ${file} || die
done
- if use examples ; then
+ if use examples; then
dodir /usr/share/doc/${PF}/examples
mv "${D}"/opt/vc/src/hello_pi "${D}"/usr/share/doc/${PF}/examples/ || die
- rm -fr "${D}"/opt/vc/src
- else
- rm -fr "${D}/opt/vc/src"
fi
+
+ rm -rfv "${D}"/opt/vc/src || die
}