mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 03:13:03 +02:00
plplot: fix build on musl
This commit is contained in:
parent
0d108c98a6
commit
14c4f68046
1 changed files with 7 additions and 4 deletions
|
@ -26,10 +26,6 @@ build_options="ada gen_tools"
|
||||||
desc_option_ada="Enable Ada bindings"
|
desc_option_ada="Enable Ada bindings"
|
||||||
desc_option_gen_tools="Build files for host required during cross build"
|
desc_option_gen_tools="Build files for host required during cross build"
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
||||||
broken="PTHREAD_MUTEX_RECURSIVE_NP"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [ "$CROSS_BUILD" ]; then
|
if ! [ "$CROSS_BUILD" ]; then
|
||||||
build_options_default="gen_tools"
|
build_options_default="gen_tools"
|
||||||
fi
|
fi
|
||||||
|
@ -46,6 +42,13 @@ post_patch() {
|
||||||
vsed -i cmake/modules/tcl-related.cmake -e '/if(NOT PLPLOT_TK_VERSION)/ i set(PLPLOT_TK_VERSION ${PLPLOT_TCL_VERSION} CACHE STRING "Tk version found by wish")'
|
vsed -i cmake/modules/tcl-related.cmake -e '/if(NOT PLPLOT_TK_VERSION)/ i set(PLPLOT_TK_VERSION ${PLPLOT_TCL_VERSION} CACHE STRING "Tk version found by wish")'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
||||||
|
vsed -i build/plplot_config.h \
|
||||||
|
-e '/PTHREAD_MUTEX_RECURSIVE_NP/s/_NP//'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
if ! [ "$build_option_gen_tools" ]; then
|
if ! [ "$build_option_gen_tools" ]; then
|
||||||
ln -s /usr/lib/qsastime/deltaT-gen build/lib/qsastime
|
ln -s /usr/lib/qsastime/deltaT-gen build/lib/qsastime
|
||||||
|
|
Loading…
Add table
Reference in a new issue