mirror of
https://github.com/love2d/megasource.git
synced 2026-08-19 20:20:11 +02:00
update OpenAL-Soft to 1.24.3.
This commit is contained in:
@@ -80,8 +80,37 @@ macro(find_component _component _pkgconfig _library _header)
|
||||
${PC_LIB${_component}_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
set(${_component}_VERSION ${PC_${_component}_VERSION} CACHE STRING "The ${_component} version number." FORCE)
|
||||
set(${_component}_DEFINITIONS ${PC_${_component}_CFLAGS_OTHER} CACHE STRING "The ${_component} CFLAGS." FORCE)
|
||||
if(DEFINED ${PC_${_component}_VERSION})
|
||||
set(${_component}_VERSION ${PC_${_component}_VERSION} CACHE STRING
|
||||
"The ${_component} version number." FORCE)
|
||||
elseif(EXISTS "${${_component}_INCLUDE_DIRS}/${_pkgconfig}/version.h")
|
||||
if(EXISTS "${${_component}_INCLUDE_DIRS}/${_pkgconfig}/version_major.h")
|
||||
file(STRINGS "${${_component}_INCLUDE_DIRS}/${_pkgconfig}/version_major.h" majorver
|
||||
REGEX "^#define[ \t]+LIB${_component}_VERSION_MAJOR[ \t]+[0-9]+$")
|
||||
else()
|
||||
file(STRINGS "${${_component}_INCLUDE_DIRS}/${_pkgconfig}/version.h" majorver
|
||||
REGEX "^#define[ \t]+LIB${_component}_VERSION_MAJOR[ \t]+[0-9]+$")
|
||||
endif()
|
||||
file(STRINGS "${${_component}_INCLUDE_DIRS}/${_pkgconfig}/version.h" minorver
|
||||
REGEX "^#define[ \t]+LIB${_component}_VERSION_MINOR[ \t]+[0-9]+$")
|
||||
file(STRINGS "${${_component}_INCLUDE_DIRS}/${_pkgconfig}/version.h" microver
|
||||
REGEX "^#define[ \t]+LIB${_component}_VERSION_MICRO[ \t]+[0-9]+$")
|
||||
|
||||
string(REGEX REPLACE "^#define[ \t]+LIB${_component}_VERSION_MAJOR[ \t]+([0-9]+)$" "\\1"
|
||||
majorver "${majorver}")
|
||||
string(REGEX REPLACE "^#define[ \t]+LIB${_component}_VERSION_MINOR[ \t]+([0-9]+)$" "\\1"
|
||||
minorver "${minorver}")
|
||||
string(REGEX REPLACE "^#define[ \t]+LIB${_component}_VERSION_MICRO[ \t]+([0-9]+)$" "\\1"
|
||||
microver "${microver}")
|
||||
|
||||
set(${_component}_VERSION "${majorver}.${minorver}.${microver}" CACHE STRING
|
||||
"The ${_component} version number." FORCE)
|
||||
unset(microver)
|
||||
unset(minorver)
|
||||
unset(majorver)
|
||||
endif()
|
||||
set(${_component}_DEFINITIONS ${PC_${_component}_CFLAGS_OTHER} CACHE STRING
|
||||
"The ${_component} CFLAGS." FORCE)
|
||||
|
||||
set_component_found(${_component})
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ find_path(JACK_INCLUDE_DIR NAMES jack/jack.h
|
||||
DOC "The JACK include directory"
|
||||
)
|
||||
|
||||
find_library(JACK_LIBRARY NAMES jack
|
||||
find_library(JACK_LIBRARY NAMES jack jack64
|
||||
DOC "The JACK library"
|
||||
)
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
# - Find SndIO includes and libraries
|
||||
#
|
||||
# SNDIO_FOUND - True if SNDIO_INCLUDE_DIR & SNDIO_LIBRARY are found
|
||||
# SNDIO_LIBRARIES - Set when SNDIO_LIBRARY is found
|
||||
# SNDIO_INCLUDE_DIRS - Set when SNDIO_INCLUDE_DIR is found
|
||||
#
|
||||
# SNDIO_INCLUDE_DIR - where to find sndio.h, etc.
|
||||
# SNDIO_LIBRARY - the sndio library
|
||||
#
|
||||
|
||||
find_path(SNDIO_INCLUDE_DIR
|
||||
NAMES sndio.h
|
||||
DOC "The SndIO include directory"
|
||||
)
|
||||
|
||||
find_library(SNDIO_LIBRARY
|
||||
NAMES sndio
|
||||
DOC "The SndIO library"
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(SndIO
|
||||
REQUIRED_VARS SNDIO_LIBRARY SNDIO_INCLUDE_DIR
|
||||
)
|
||||
|
||||
if(SNDIO_FOUND)
|
||||
set(SNDIO_LIBRARIES ${SNDIO_LIBRARY})
|
||||
set(SNDIO_INCLUDE_DIRS ${SNDIO_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(SNDIO_INCLUDE_DIR SNDIO_LIBRARY)
|
||||
@@ -1,32 +0,0 @@
|
||||
# - Find SoundIO (sndio) includes and libraries
|
||||
#
|
||||
# SOUNDIO_FOUND - True if SOUNDIO_INCLUDE_DIR & SOUNDIO_LIBRARY are
|
||||
# found
|
||||
# SOUNDIO_LIBRARIES - Set when SOUNDIO_LIBRARY is found
|
||||
# SOUNDIO_INCLUDE_DIRS - Set when SOUNDIO_INCLUDE_DIR is found
|
||||
#
|
||||
# SOUNDIO_INCLUDE_DIR - where to find sndio.h, etc.
|
||||
# SOUNDIO_LIBRARY - the sndio library
|
||||
#
|
||||
|
||||
find_path(SOUNDIO_INCLUDE_DIR
|
||||
NAMES sndio.h
|
||||
DOC "The SoundIO include directory"
|
||||
)
|
||||
|
||||
find_library(SOUNDIO_LIBRARY
|
||||
NAMES sndio
|
||||
DOC "The SoundIO library"
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(SoundIO
|
||||
REQUIRED_VARS SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR
|
||||
)
|
||||
|
||||
if(SOUNDIO_FOUND)
|
||||
set(SOUNDIO_LIBRARIES ${SOUNDIO_LIBRARY})
|
||||
set(SOUNDIO_INCLUDE_DIRS ${SOUNDIO_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(SOUNDIO_INCLUDE_DIR SOUNDIO_LIBRARY)
|
||||
Reference in New Issue
Block a user