mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
* Based largely on the work of X512, this will dispatch OpenGL calls to Mesa EGL renderers * Highly experimental. Do not enable architecture builds until we have some confirmation around functionality as it assumes libGL ownership
71 lines
1.6 KiB
Bash
71 lines
1.6 KiB
Bash
SUMMARY="GL Vendor-Neutral Dispatch Library"
|
|
DESCRIPTION="libglvnd translates Haiku's OpenGL kit to a modern EGL-based graphics rendering \
|
|
pipeline."
|
|
HOMEPAGE="http://github.com/NVIDIA/libglvnd"
|
|
COPYRIGHT="2013, NVIDIA CORPORATION"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/NVIDIA/libglvnd/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="e31dd71441604cf7467397e740af8070caa84133b5ed71241d3d5ca84c950baf"
|
|
PATCHES="libglvnd-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="?all"
|
|
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
|
|
|
|
PROVIDES="
|
|
libglvnd$secondaryArchSuffix = $portVersion
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libegl$secondaryArchSuffix
|
|
lib:libglesv1_cm$secondaryArchSuffix
|
|
lib:libglesv2$secondaryArchSuffix
|
|
lib:libgldispatch$secondaryArchSuffix
|
|
lib:libopengl$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libEGL${secondaryArchSuffix}
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libglvnd${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libGL$secondaryArchSuffix
|
|
"
|
|
REQUIRES_devel="
|
|
libglvnd$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libEGL$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:ninja
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
meson --buildtype=release \
|
|
--prefix=$prefix --libdir=$libDir --datadir=$dataDir --bindir=$binDir\
|
|
--includedir=$includeDir --sysconfdir=$settingsDir --sbindir=$binDir \
|
|
--libexecdir=$libDir --localedir=$dataDir/locale \
|
|
-Dhgl=true ./build
|
|
ninja -C build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
prepareInstalledDevelLibs libGL
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|