summaryrefslogtreecommitdiff
path: root/comms/gammu/patches/patch-ab
blob: aff4c73dc5afed121c1f5a8ae5141647504fe502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-ab,v 1.1.1.1 2009/05/25 12:50:00 wiz Exp $

use "BSD" not "FreeBSD" for Bluetooth support.

--- /dev/null	1970-01-01 01:00:00.000000000 +0100
+++ cmake/FindBSDBluetooth.cmake	2009-05-22 09:48:26.000000000 +0100
@@ -0,0 +1,35 @@
+# - Finds Bluetooth library on BSD
+# This module defines
+#  BSD_BLUE_INCLUDE_DIR, where to find bluetooth.h
+#  BSD_BLUE_LIBRARIES, the libraries needed to use BSD Bluetooth.
+#  BSD_BLUE_FOUND, If false, do not try to use BSD Bluetooth.
+#
+# Copyright (c) 2007, Michal Cihar, <michal@cihar.com>
+#
+# vim: expandtab sw=4 ts=4 sts=4:
+
+if (NOT DEFINED BSD_BLUE_FOUND)
+    if (NOT CROSS_MINGW)
+        find_path(BSD_BLUE_INCLUDE_DIR NAMES bluetooth.h
+           PATHS
+           /usr/include
+           /usr/local/include
+        )
+
+        find_library(BSD_BLUE_LIBRARIES NAMES bluetooth
+           PATHS
+           /usr/lib
+           /usr/local/lib
+        )
+
+        if(BSD_BLUE_INCLUDE_DIR AND BSD_BLUE_LIBRARIES)
+           set(BSD_BLUE_FOUND TRUE CACHE INTERNAL "BSD Bluetooth found")
+           message(STATUS "Found BSD Bluetooth: ${BSD_BLUE_INCLUDE_DIR}, ${BSD_BLUE_LIBRARIES}")
+        else(BSD_BLUE_INCLUDE_DIR AND BSD_BLUE_LIBRARIES)
+           set(BSD_BLUE_FOUND FALSE CACHE INTERNAL "BSD Bluetooth found")
+           message(STATUS "BSD Bluetooth not found.")
+        endif(BSD_BLUE_INCLUDE_DIR AND BSD_BLUE_LIBRARIES)
+
+        mark_as_advanced(BSD_BLUE_INCLUDE_DIR BSD_BLUE_LIBRARIES)
+    endif (NOT CROSS_MINGW)
+endif (NOT DEFINED BSD_BLUE_FOUND)