parent
cb4ec4c8fe
commit
8de62b0292
2 changed files with 46 additions and 7 deletions
38
srcpkgs/libepoxy/patches/fix-test-musl.patch
Normal file
38
srcpkgs/libepoxy/patches/fix-test-musl.patch
Normal file
|
@ -0,0 +1,38 @@
|
|||
Source: OpenEmbedded
|
||||
Upstream: No
|
||||
Reason: Fixes musl compilation
|
||||
|
||||
--- meson_options.txt
|
||||
+++ meson_options.txt
|
||||
@@ -1,6 +1,9 @@
|
||||
option('docs',
|
||||
type: 'boolean', value: false,
|
||||
description: 'Enable generating the Epoxy API reference (depends on Doxygen)')
|
||||
+option('has-dlvsym',
|
||||
+ type: 'boolean', value: true,
|
||||
+ description: 'Whether dlvsym() is available (it is not when using musl C library)')
|
||||
option('glx',
|
||||
type: 'combo',
|
||||
choices: [ 'auto', 'yes', 'no' ],
|
||||
--- test/meson.build
|
||||
+++ test/meson.build
|
||||
@@ -92,8 +92,8 @@ if build_glx
|
||||
[ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c' ], [], [], true ],
|
||||
[ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [ '-static' ], libtype == 'static' ],
|
||||
[ 'glx_shared_znow', [ 'glx_static.c', ], [], [ '-Wl,-z,now' ], has_znow ],
|
||||
- [ 'glx_alias_prefer_same_name', [ 'glx_alias_prefer_same_name.c', 'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple ],
|
||||
- [ 'glx_gles2', [ 'glx_gles2.c', 'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple ],
|
||||
+ [ 'glx_alias_prefer_same_name', [ 'glx_alias_prefer_same_name.c', 'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple and get_option('has-dlvsym') == true ],
|
||||
+ [ 'glx_gles2', [ 'glx_gles2.c', 'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple and get_option('has-dlvsym') == true ],
|
||||
]
|
||||
|
||||
foreach test: glx_tests
|
||||
@@ -114,7 +114,7 @@ if build_glx
|
||||
endif
|
||||
endforeach
|
||||
|
||||
- if not build_apple
|
||||
+ if not build_apple and get_option('has-dlvsym') == true
|
||||
# GLX/EGL tests
|
||||
if build_egl
|
||||
glx_egl_sources = [
|
|
@ -1,20 +1,21 @@
|
|||
# Template file for 'libepoxy'
|
||||
pkgname=libepoxy
|
||||
version=1.4.3
|
||||
version=1.5.0
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="automake libtool pkg-config python xorg-util-macros"
|
||||
build_style=meson
|
||||
hostmakedepends="pkg-config python xorg-util-macros"
|
||||
makedepends="libX11-devel MesaLib-devel"
|
||||
short_desc="Library for handling OpenGL function pointer management for you"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
license="MIT"
|
||||
homepage="https://github.com/anholt/libepoxy"
|
||||
distfiles="https://github.com/anholt/libepoxy/archive/${version}.tar.gz"
|
||||
checksum=7f18518ba0036f7670f837a510bb25be4b3e7fba97d75193b24f7220de55b515
|
||||
checksum=76c18bf8a8c48c804f4ce64f533c6631b3b19357735bf0b2f6fb4abe752fd2e9
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) configure_args+=" -Dhas-dlvsym=false" ;;
|
||||
esac
|
||||
|
||||
pre_configure() {
|
||||
autoreconf -fi
|
||||
}
|
||||
post_install() {
|
||||
vlicense COPYING
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue