chromaprint: add recipe for version 1.3.

This commit is contained in:
Jerome Duval
2016-04-13 23:39:56 +00:00
parent d100780b91
commit 4a2d359735
2 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
From da19f6b315b11e393848809ab8f9fe78fb2265d8 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 13 Apr 2016 23:38:21 +0000
Subject: Haiku patch
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c9f39f5..a9eb837 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,7 +19,9 @@ set(chromaprint_VERSION ${chromaprint_SOVERSION_MAJOR}.${chromaprint_SOVERSION_M
set(chromaprint_SOVERSION ${chromaprint_SOVERSION_MAJOR})
include(CheckFunctionExists)
-set(CMAKE_REQUIRED_LIBRARIES -lm)
+if(NOT HAIKU)
+ set(CMAKE_REQUIRED_LIBRARIES -lm)
+endif()
check_function_exists(lrintf HAVE_LRINTF)
check_function_exists(round HAVE_ROUND)
--
2.2.2