blob: 61cbec685166458117cbea8e5d4c8bb73a4af876 (
plain) (
blame)
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
43
44
45
46
|
--- CMakeLists.txt.orig 2011-03-24 23:18:50 UTC
+++ CMakeLists.txt
@@ -66,7 +66,7 @@ if(WIN32)
endif(WIN32)
set(ALLEGRO_VERSION 4.4.2)
-string(REGEX MATCH "^[0-9]+[.][0-9]+" ALLEGRO_SOVERSION ${ALLEGRO_VERSION})
+string(REGEX MATCH "^[0-9]" ALLEGRO_SOVERSION ${ALLEGRO_VERSION})
# Mac OS X -compatibility_version.
# XXX doesn't seem to work
@@ -408,6 +408,7 @@ option(WANT_OSS "Build OSS support" on)
option(WANT_ALSA "Build ALSA support" on)
option(WANT_JACK "Build JACK support" on)
option(WANT_SGIAUDIO "Build SGI audio support" on)
+option(WANT_SNDIO "Build sndio audio support" on)
if(ALLEGRO_UNIX) # not MACOSX
find_package(Threads)
@@ -471,6 +472,17 @@ if(ALLEGRO_UNIX) # not MACOSX
endif(SGIAUDIO_FOUND)
endif(WANT_SGIAUDIO)
+ if(WANT_SNDIO)
+ find_path(SNDIO_INCLUDE_DIR sndio.h)
+ find_library(SNDIO_LIBRARY NAMES sndio)
+ if(SNDIO_INCLUDE_DIR AND SNDIO_LIBRARY)
+ set(ALLEGRO_WITH_SNDIODIGI 1)
+ include_directories(SYSTEM ${SNDIO_INCLUDE_DIR})
+ list(APPEND PLATFORM_LIBS_NON_MODULES ${SNDIO_LIBRARY})
+ add_our_module(alleg-sndiodigi src/unix/sndio.c ${SNDIO_LIBRARY})
+ endif(SNDIO_INCLUDE_DIR AND SNDIO_LIBRARY)
+ endif(WANT_SNDIO)
+
# aRts is obsolete
# esd is obsolete
endif(ALLEGRO_UNIX)
@@ -961,7 +973,7 @@ if(UNIX)
@ONLY
)
install(FILES ${LIBRARY_OUTPUT_PATH}/pkgconfig/${name}${lib_type}.pc
- DESTINATION "lib${LIB_SUFFIX}/pkgconfig"
+ DESTINATION "libdata/pkgconfig"
)
endforeach(name)
endif(UNIX)
|