rpi-userland: automatically generate pkgconfig files

This commit is contained in:
Helmut Pozimski 2019-06-09 15:08:43 +02:00
parent e361b3c6ff
commit d3870a9f38
4 changed files with 3 additions and 37 deletions

View File

@ -1,11 +0,0 @@
prefix=/opt/vc
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: bcm_host
Description: Broadcom VideoCore host API library
Version: 1
Libs: -L${libdir} -lbcm_host -lvcos -lvchiq_arm
Cflags: -I${includedir} -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM

View File

@ -1,12 +0,0 @@
prefix=/opt/vc
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: EGL
Description: Fake EGL package for RPi
Version: 10
Requires: bcm_host
Libs: -L${libdir} -lEGL
Cflags: -I${includedir}

View File

@ -1,12 +0,0 @@
prefix=/opt/vc
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: GLESv2
Description: Fake GL ES 2 package for RPi
Version: 10
Requires: bcm_host
Libs: -L${libdir} -lGLESv2
Cflags: -I${includedir}

View File

@ -4,9 +4,10 @@ _gitshort="${_githash:0:7}"
pkgname=rpi-userland
version=20190501
revision=1
revision=2
wrksrc="userland-${_githash}"
build_style=cmake
hostmakedepends="pkg-config"
configure_args="-DCMAKE_INSTALL_RPATH=/opt/vc/lib"
short_desc="Raspberry Pi GPU userland libraries and utilities (git ${_gitshort})"
maintainer="Juan RP <xtraeme@voidlinux.org>"
@ -49,7 +50,7 @@ pre_configure() {
post_install() {
vlicense LICENCE
vmkdir usr/lib/pkgconfig
vcopy ${FILESDIR}/*.pc usr/lib/pkgconfig
mv ${DESTDIR}/opt/vc/lib/pkgconfig/*.pc ${DESTDIR}/usr/lib/pkgconfig
rm -rf ${DESTDIR}/etc
rm -rf ${DESTDIR}/opt/vc/share