From 6fc6ae64233d32b9e687b6a0ba2c0797138a9b5e Mon Sep 17 00:00:00 2001 From: begasus Date: Mon, 23 Jul 2018 19:08:05 +0200 Subject: [PATCH] libepoxy, bump version after changes to util-macros --- media-libs/libepoxy/libepoxy-1.5.1.recipe | 87 +++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 media-libs/libepoxy/libepoxy-1.5.1.recipe diff --git a/media-libs/libepoxy/libepoxy-1.5.1.recipe b/media-libs/libepoxy/libepoxy-1.5.1.recipe new file mode 100644 index 000000000..2ba60f5c1 --- /dev/null +++ b/media-libs/libepoxy/libepoxy-1.5.1.recipe @@ -0,0 +1,87 @@ +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="1" +SOURCE_URI="https://github.com/anholt/libepoxy/archive/$portVersion.tar.gz" +CHECKSUM_SHA256="f53a35db484341c0a77f1bb0eb04cc9389e3049d2437bcf5915a1cebd2c04ff7" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libepoxy$secondaryArchSuffix = $portVersion + lib:libepoxy$secondaryArchSuffix = 0.0.0 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libEGL$secondaryArchSuffix + " + +PROVIDES_devel=" + libepoxy${secondaryArchSuffix}_devel = $portVersion + devel:libepoxy$secondaryArchSuffix = 0.0.0 compat >= 0 + " +REQUIRES_devel=" + libepoxy$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libGL$secondaryArchSuffix + devel:libEGL$secondaryArchSuffix + devel:util_macros + setuptools_python3 + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:meson + cmd:ninja + cmd:pkg_config$secondaryArchSuffix + cmd:python3 + " + +defineDebugInfoPackage libepoxy$secondaryArchSuffix \ + "$libDir"/libepoxy.so.0.0.0 + +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 +} +