61 lines
1.4 KiB
Bash
61 lines
1.4 KiB
Bash
# Template file for 'rpi-firmware'
|
|
_githash="8d14732f45f2aa204fdec599c69a9bdab4583247"
|
|
_gitshort="${_githash:0:7}"
|
|
|
|
pkgname=rpi-userland
|
|
version=20151128
|
|
revision=2
|
|
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"
|
|
checksum=f3738952ba63b3ad4ec391594cb7378b7e762903d16f1f1ec93f1ad4644bc8a3
|
|
|
|
LDFLAGS="-Wl,--no-as-needed"
|
|
|
|
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"
|
|
|
|
post_install() {
|
|
vmkdir usr/lib/pkgconfig
|
|
vcopy ${FILESDIR}/*.pc usr/lib/pkgconfig
|
|
rm -rf ${DESTDIR}/etc
|
|
rm -rf ${DESTDIR}/opt/vc/share
|
|
|
|
vmkdir etc/ld.so.conf.d
|
|
echo "/opt/vc/lib" > ${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|