12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- set -e
- program=libepoxy
- version=1.5.9
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.xz
- fetch=https://github.com/anholt/libepoxy/releases/download/${version}/$tarname
- description="
- A library for handling OpenGL function pointer management.
- 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().
- "
- homepage=https://github.com/anholt/libepoxy
- license=MIT
- docs="COPYING README.md"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- rm -rf BUILD
- mkdir BUILD
- cd BUILD
- CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- meson setup $configure_args \
- --libdir /usr/lib${libSuffix} \
- --buildtype=release \
- --strip \
- -Dglx=yes \
- -Degl=yes \
- -Dx11=true \
- ..
- ninja -j${jobs}
- DESTDIR="$destdir" ninja -j${jobs} install
- cd ..
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|