svn commit: r470793 - in head/audio/moony-lv2: . files
Yuri Victorovich
yuri at FreeBSD.org
Thu May 24 17:19:01 UTC 2018
Author: yuri
Date: Thu May 24 17:18:59 2018
New Revision: 470793
URL: https://svnweb.freebsd.org/changeset/ports/470793
Log:
audio/moony-lv2: Fix built on 10
Also change USES=cmake -> USES=cmake:outsource
As it turned out, cmake's check_function_exists doesn't find functions
in libm.so, so check_library_exists should be used.
PR: 228443
Submitted by: tcberner (cmake part)
Modified:
head/audio/moony-lv2/Makefile
head/audio/moony-lv2/files/patch-CMakeLists.txt
Modified: head/audio/moony-lv2/Makefile
==============================================================================
--- head/audio/moony-lv2/Makefile Thu May 24 17:02:40 2018 (r470792)
+++ head/audio/moony-lv2/Makefile Thu May 24 17:18:59 2018 (r470793)
@@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= lv2>0:audio/lv2
-USES= cmake pkgconfig
+USES= cmake:outsource pkgconfig
USE_XORG= x11 xext
USE_GL= gl glu
Modified: head/audio/moony-lv2/files/patch-CMakeLists.txt
==============================================================================
--- head/audio/moony-lv2/files/patch-CMakeLists.txt Thu May 24 17:02:40 2018 (r470792)
+++ head/audio/moony-lv2/files/patch-CMakeLists.txt Thu May 24 17:18:59 2018 (r470793)
@@ -6,9 +6,9 @@
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-z,nodelete ${CMAKE_MODULE_LINKER_FLAGS}")
+elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+ # see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221341
-+ include(CheckFunctionExists)
-+ check_function_exists(clog FreeBSD_CLOG_EXISTS)
-+ check_function_exists(cpow FreeBSD_CPOW_EXISTS)
++ include(CheckLibraryExists)
++ check_library_exists(m clog 'complex.h' FreeBSD_CLOG_EXISTS)
++ check_library_exists(m cpow 'complex.h' FreeBSD_CPOW_EXISTS)
+ if (FreeBSD_CLOG_EXISTS)
+ set(CMAKE_C_FLAGS "-DFreeBSD_CLOG_EXISTS ${CMAKE_C_FLAGS}")
+ endif()
More information about the svn-ports-all
mailing list