rpi-userland: automatically generate pkgconfig files
This commit is contained in:
parent
e361b3c6ff
commit
d3870a9f38
|
@ -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
|
||||
|
|
@ -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}
|
||||
|
|
@ -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}
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue