zynaddsubfx: patch to remove -lrt and reenable tests, ok maintainer

This commit is contained in:
sthen 2022-03-08 17:01:53 +00:00
parent f2fe038a56
commit 04f26aa8c3
2 changed files with 18 additions and 2 deletions

View File

@ -4,6 +4,7 @@ ONLY_FOR_ARCHS= i386 amd64
COMMENT= synth capable of making a countless number of instruments
DISTNAME= zynaddsubfx-3.0.6
REVISION= 0
CATEGORIES= audio
@ -40,8 +41,7 @@ CONFIGURE_ARGS= -DGuiModule=zest \
-DLashEnable=OFF \
-DOssEnable=OFF \
-DPaEnable=OFF \
-DSndioEnable=ON \
-DCompileTests=OFF
-DSndioEnable=ON
post-patch:
sed -i s,/usr/X11R6,${X11BASE}, ${WRKSRC}/src/CMakeLists.txt

View File

@ -0,0 +1,16 @@
Index: src/Tests/CMakeLists.txt
--- src/Tests/CMakeLists.txt.orig
+++ src/Tests/CMakeLists.txt
@@ -61,7 +61,11 @@ if(NOT (${CMAKE_SYSTEM_NAME} STREQUAL "Windows"))
${PLATFORM_LIBRARIES})
add_executable(ins-test InstrumentStats.cpp)
- target_link_libraries(ins-test ${test_lib} rt)
+ if(HAVE_LIBRT)
+ target_link_libraries(ins-test ${test_lib} rt)
+ else()
+ target_link_libraries(ins-test ${test_lib})
+ endif()
if(LIBLO_FOUND)
cp_script(check-ports.rb)