Lines 1-15
Link Here
|
1 |
--- CMakeLists.txt.orig 2011-03-24 23:18:50 UTC |
1 |
--- CMakeLists.txt.orig 2019-02-02 19:28:46 UTC |
2 |
+++ CMakeLists.txt |
2 |
+++ CMakeLists.txt |
3 |
@@ -66,7 +66,7 @@ if(WIN32) |
3 |
@@ -66,7 +66,7 @@ if(WIN32) |
4 |
endif(WIN32) |
4 |
endif(WIN32) |
5 |
|
5 |
|
6 |
set(ALLEGRO_VERSION 4.4.2) |
6 |
set(ALLEGRO_VERSION 4.4.3) |
7 |
-string(REGEX MATCH "^[0-9]+[.][0-9]+" ALLEGRO_SOVERSION ${ALLEGRO_VERSION}) |
7 |
-string(REGEX MATCH "^[0-9]+[.][0-9]+" ALLEGRO_SOVERSION ${ALLEGRO_VERSION}) |
8 |
+string(REGEX MATCH "^[0-9]" ALLEGRO_SOVERSION ${ALLEGRO_VERSION}) |
8 |
+string(REGEX MATCH "^[0-9]+" ALLEGRO_SOVERSION ${ALLEGRO_VERSION}) |
9 |
|
9 |
|
10 |
# Mac OS X -compatibility_version. |
10 |
# Mac OS X -compatibility_version. |
11 |
# XXX doesn't seem to work |
11 |
# XXX doesn't seem to work |
12 |
@@ -408,6 +408,7 @@ option(WANT_OSS "Build OSS support" on) |
12 |
@@ -403,6 +403,7 @@ option(WANT_OSS "Build OSS support" on) |
13 |
option(WANT_ALSA "Build ALSA support" on) |
13 |
option(WANT_ALSA "Build ALSA support" on) |
14 |
option(WANT_JACK "Build JACK support" on) |
14 |
option(WANT_JACK "Build JACK support" on) |
15 |
option(WANT_SGIAUDIO "Build SGI audio support" on) |
15 |
option(WANT_SGIAUDIO "Build SGI audio support" on) |
Lines 17-26
Link Here
|
17 |
|
17 |
|
18 |
if(ALLEGRO_UNIX) # not MACOSX |
18 |
if(ALLEGRO_UNIX) # not MACOSX |
19 |
find_package(Threads) |
19 |
find_package(Threads) |
20 |
@@ -471,6 +472,17 @@ if(ALLEGRO_UNIX) # not MACOSX |
20 |
@@ -465,6 +466,17 @@ if(ALLEGRO_UNIX) # not MACOSX |
|
|
21 |
add_our_module(alleg-sgialdigi src/unix/sgial.c audio) |
21 |
endif(SGIAUDIO_FOUND) |
22 |
endif(SGIAUDIO_FOUND) |
22 |
endif(WANT_SGIAUDIO) |
23 |
endif(WANT_SGIAUDIO) |
23 |
|
24 |
+ |
24 |
+ if(WANT_SNDIO) |
25 |
+ if(WANT_SNDIO) |
25 |
+ find_path(SNDIO_INCLUDE_DIR sndio.h) |
26 |
+ find_path(SNDIO_INCLUDE_DIR sndio.h) |
26 |
+ find_library(SNDIO_LIBRARY NAMES sndio) |
27 |
+ find_library(SNDIO_LIBRARY NAMES sndio) |
Lines 31-46
Link Here
|
31 |
+ add_our_module(alleg-sndiodigi src/unix/sndio.c ${SNDIO_LIBRARY}) |
32 |
+ add_our_module(alleg-sndiodigi src/unix/sndio.c ${SNDIO_LIBRARY}) |
32 |
+ endif(SNDIO_INCLUDE_DIR AND SNDIO_LIBRARY) |
33 |
+ endif(SNDIO_INCLUDE_DIR AND SNDIO_LIBRARY) |
33 |
+ endif(WANT_SNDIO) |
34 |
+ endif(WANT_SNDIO) |
34 |
+ |
35 |
|
35 |
# aRts is obsolete |
36 |
# aRts is obsolete |
36 |
# esd is obsolete |
37 |
# esd is obsolete |
37 |
endif(ALLEGRO_UNIX) |
|
|
38 |
@@ -961,7 +973,7 @@ if(UNIX) |
39 |
@ONLY |
40 |
) |
41 |
install(FILES ${LIBRARY_OUTPUT_PATH}/pkgconfig/${name}${lib_type}.pc |
42 |
- DESTINATION "lib${LIB_SUFFIX}/pkgconfig" |
43 |
+ DESTINATION "libdata/pkgconfig" |
44 |
) |
45 |
endforeach(name) |
46 |
endif(UNIX) |