1SUMMARY="A library for handling OpenGL function pointer management for you" 2DESCRIPTION="Epoxy is a library for handling OpenGL function pointer \ 3management for you. 4It hides the complexity of dlopen(), dlsym(), glXGetProcAddress(), \ 5eglGetProcAddress(), etc. from the app developer, with very little \ 6knowledge needed on their part. They get to read GL specs and write \ 7code using undecorated function names like glCompileShader(). \ 8Don't forget to check for your extensions or versions being present \ 9before you use them, just like before! We'll tell you what you forgot \ 10to check for instead of just segfaulting, though." 11HOMEPAGE="https://github.com/anholt/libepoxy" 12COPYRIGHT="2018-2021 Emmanuele Bassi" 13LICENSE="MIT" 14REVISION="3" 15SOURCE_URI="https://github.com/anholt/libepoxy/archive/$portVersion.tar.gz" 16CHECKSUM_SHA256="0cd80cb040b75cbe77fadd45c48282ebab82d845c597ce11ee5e8cb9c1efeabb" 17PATCHES="libepoxy-$portVersion.patchset" 18 19ARCHITECTURES="all !x86_gcc2" 20SECONDARY_ARCHITECTURES="x86" 21 22PROVIDES=" 23 libepoxy$secondaryArchSuffix = $portVersion 24 lib:libepoxy$secondaryArchSuffix = 0.0.0 compat >= 0 25 " 26REQUIRES=" 27 haiku$secondaryArchSuffix 28 lib:libEGL$secondaryArchSuffix 29 lib:libGL$secondaryArchSuffix 30 " 31 32PROVIDES_devel=" 33 libepoxy${secondaryArchSuffix}_devel = $portVersion 34 devel:libepoxy$secondaryArchSuffix = 0.0.0 compat >= 0 35 " 36REQUIRES_devel=" 37 libepoxy$secondaryArchSuffix == $portVersion base 38 " 39 40BUILD_REQUIRES=" 41 haiku${secondaryArchSuffix}_devel 42 devel:libEGL$secondaryArchSuffix 43 devel:libGL$secondaryArchSuffix 44 devel:util_macros 45 " 46BUILD_PREREQUIRES=" 47 cmd:gcc$secondaryArchSuffix 48 cmd:make 49 cmd:meson 50 cmd:ninja 51 cmd:pkg_config$secondaryArchSuffix 52 cmd:python3 53 " 54 55defineDebugInfoPackage libepoxy$secondaryArchSuffix \ 56 "$libDir"/libepoxy.so.0.0.0 57 58BUILD() 59{ 60 mkdir -p _build 61 62 cd _build 63 64 meson --buildtype=release --prefix=$prefix \ 65 --libdir=$libDir --includedir=$includeDir 66 67 ninja $jobArgs 68} 69 70INSTALL() 71{ 72 cd _build 73 74 ninja install 75 76 prepareInstalledDevelLib libepoxy 77 fixPkgconfig 78 79 packageEntries devel \ 80 $developDir 81} 82 83TEST() 84{ 85 cd _build && ninja test 86} 87