~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to build_files/cmake/Modules/FindJack.cmake

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Find Jack library
 
2
# Find the native Jack includes and library
 
3
# This module defines
 
4
#  JACK_INCLUDE_DIRS, where to find jack.h, Set when
 
5
#                        JACK_INCLUDE_DIR is found.
 
6
#  JACK_LIBRARIES, libraries to link against to use Jack.
 
7
#  JACK_ROOT_DIR, The base directory to search for Jack.
 
8
#                    This can also be an environment variable.
 
9
#  JACK_FOUND, If false, do not try to use Jack.
 
10
#
 
11
# also defined, but not for general use are
 
12
#  JACK_LIBRARY, where to find the Jack library.
 
13
 
 
14
#=============================================================================
 
15
# Copyright 2011 Blender Foundation.
 
16
#
 
17
# Distributed under the OSI-approved BSD License (the "License");
 
18
# see accompanying file Copyright.txt for details.
 
19
#
 
20
# This software is distributed WITHOUT ANY WARRANTY; without even the
 
21
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
22
# See the License for more information.
 
23
#=============================================================================
 
24
 
 
25
# If JACK_ROOT_DIR was defined in the environment, use it.
 
26
IF(NOT JACK_ROOT_DIR AND NOT $ENV{JACK_ROOT_DIR} STREQUAL "")
 
27
  SET(JACK_ROOT_DIR $ENV{JACK_ROOT_DIR})
 
28
ENDIF()
 
29
 
 
30
SET(_jack_SEARCH_DIRS
 
31
  ${JACK_ROOT_DIR}
 
32
  /usr/local
 
33
  /sw # Fink
 
34
  /opt/local # DarwinPorts
 
35
  /opt/csw # Blastwave
 
36
)
 
37
 
 
38
FIND_PATH(JACK_INCLUDE_DIR
 
39
  NAMES
 
40
    jack.h
 
41
  HINTS
 
42
    ${_jack_SEARCH_DIRS}
 
43
  PATH_SUFFIXES
 
44
    include/jack
 
45
)
 
46
 
 
47
FIND_LIBRARY(JACK_LIBRARY
 
48
  NAMES
 
49
    jack
 
50
  HINTS
 
51
    ${_jack_SEARCH_DIRS}
 
52
  PATH_SUFFIXES
 
53
    lib64 lib
 
54
  )
 
55
 
 
56
# handle the QUIETLY and REQUIRED arguments and set JACK_FOUND to TRUE if 
 
57
# all listed variables are TRUE
 
58
INCLUDE(FindPackageHandleStandardArgs)
 
59
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Jack DEFAULT_MSG
 
60
    JACK_LIBRARY JACK_INCLUDE_DIR)
 
61
 
 
62
IF(JACK_FOUND)
 
63
  SET(JACK_LIBRARIES ${JACK_LIBRARY})
 
64
  SET(JACK_INCLUDE_DIRS ${JACK_INCLUDE_DIR})
 
65
ENDIF(JACK_FOUND)
 
66
 
 
67
MARK_AS_ADVANCED(
 
68
  JACK_INCLUDE_DIR
 
69
  JACK_LIBRARY
 
70
)