mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-17 01:00:06 +02:00
85 lines
2.0 KiB
Bash
85 lines
2.0 KiB
Bash
SUMMARY="A library for handling OpenGL function pointer management for you"
|
|
DESCRIPTION="Epoxy is a library for handling OpenGL function pointer \
|
|
management for you.
|
|
It hides the complexity of dlopen(), dlsym(), glXGetProcAddress(), \
|
|
eglGetProcAddress(), etc. from the app developer, with very little \
|
|
knowledge needed on their part. They get to read GL specs and write \
|
|
code using undecorated function names like glCompileShader(). \
|
|
Don't forget to check for your extensions or versions being present \
|
|
before you use them, just like before! We'll tell you what you forgot \
|
|
to check for instead of just segfaulting, though."
|
|
HOMEPAGE="https://github.com/anholt/libepoxy"
|
|
COPYRIGHT="2017 Emmanuele Bassi"
|
|
LICENSE="MIT"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/anholt/libepoxy/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7f18518ba0036f7670f837a510bb25be4b3e7fba97d75193b24f7220de55b515"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libepoxy$secondaryArchSuffix = $portVersion compat >= 1
|
|
lib:libepoxy$secondaryArchSuffix = 1.4.2 compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libEGL$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libepoxy${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
|
devel:libepoxy$secondaryArchSuffix = 1.4.2 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libepoxy$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libEGL$secondaryArchSuffix
|
|
devel:util_macros$secondaryArchSuffix
|
|
setuptools_python3
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:python3
|
|
cmd:meson
|
|
cmd:ninja
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p _build
|
|
|
|
cd _build
|
|
|
|
meson --buildtype=release --prefix=$prefix \
|
|
--libdir=$libDir --includedir=$includeDir
|
|
|
|
ninja $jobargs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd _build
|
|
|
|
ninja install
|
|
|
|
prepareInstalledDevelLib libepoxy
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd _build && ninja test
|
|
}
|
|
|