2015-09-07 16:49:26 +00:00
|
|
|
# Template file for 'rpi-firmware'
|
2015-09-27 09:41:00 +00:00
|
|
|
_githash="40e377862410371a9962db79b81fd4f0f266430a"
|
2015-09-07 16:49:26 +00:00
|
|
|
_gitshort="${_githash:0:7}"
|
|
|
|
|
|
|
|
pkgname=rpi-userland
|
2015-09-27 09:41:00 +00:00
|
|
|
version=20150927
|
2015-09-20 05:34:50 +00:00
|
|
|
revision=1
|
2015-09-07 16:49:26 +00:00
|
|
|
wrksrc="userland-${_githash}"
|
|
|
|
build_style=cmake
|
|
|
|
hostmakedepends="cmake"
|
|
|
|
short_desc="Raspberry Pi GPU userland libraries and utilities (git ${_gitshort})"
|
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
|
|
license="3-clause-BSD"
|
|
|
|
homepage="https://github.com/raspberrypi/userland"
|
|
|
|
distfiles="https://github.com/raspberrypi/userland/archive/${_githash}.tar.gz"
|
2015-09-27 09:41:00 +00:00
|
|
|
checksum=129bbd393f339be07bc1ee3700523db7eee909f605022ca5197c4a897cbb7698
|
2015-09-07 16:49:26 +00:00
|
|
|
|
2015-09-13 06:11:05 +00:00
|
|
|
broken_as_needed=yes
|
2015-09-07 16:49:26 +00:00
|
|
|
only_for_archs="armv6l armv6l-musl armv7l armv7l-musl"
|
|
|
|
|
|
|
|
shlib_provides="
|
|
|
|
libvcsm.so
|
|
|
|
libvcos.so
|
|
|
|
libvchiq_arm.so
|
|
|
|
libopenmaxil.so
|
|
|
|
libmmal_vc_client.so
|
|
|
|
libmmal_util.so
|
|
|
|
libmmal_core.so
|
|
|
|
libmmal_components.so
|
|
|
|
libmmal.so
|
|
|
|
libdebug_sym.so
|
|
|
|
libcontainers.so
|
|
|
|
libbcm_host.so
|
|
|
|
libWFC.so
|
|
|
|
libOpenVG.so
|
|
|
|
libGLESv2.so
|
|
|
|
libEGL.so"
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
sed -i '/extern FILE \*stderr/d' host_applications/linux/apps/raspicam/RaspiVidYUV.c
|
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
vmkdir usr/lib/pkgconfig
|
|
|
|
vcopy ${FILESDIR}/*.pc usr/lib/pkgconfig
|
|
|
|
rm -rf ${DESTDIR}/etc
|
|
|
|
rm -rf ${DESTDIR}/opt/vc/share
|
2015-09-07 17:22:49 +00:00
|
|
|
|
|
|
|
vmkdir etc/ld.so.conf.d
|
|
|
|
echo "/opt/vc/lib" > ${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
|
|
|
|
|
2015-09-07 16:49:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
rpi-userland-devel_package() {
|
|
|
|
provides="rpi-firmware-pcfiles-1_1"
|
|
|
|
replaces="rpi-firmware-pcfiles>=0"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove opt/vc/include
|
|
|
|
vmove opt/vc/src
|
|
|
|
vmove opt/vc/lib/*.a
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|