ports/devel/allegro/files/patch-CMakeLists.txt
Tobias Kortkamp feb6abd72f devel/allegro: Update to 4.4.3.1
Some static libraries are now built as shared libraries.  Bump
revision of consumers.

Changes:	https://github.com/liballeg/allegro5/blob/4.4.3.1/docs/src/changes._tx
Changes:	https://github.com/liballeg/allegro5/compare/4.4.2...4.4.3.1
PR:		235477
2019-03-09 08:07:31 +00:00

46 lines
1.6 KiB
Text

--- CMakeLists.txt.orig 2019-02-02 19:28:46 UTC
+++ CMakeLists.txt
@@ -66,7 +66,7 @@ if(WIN32)
endif(WIN32)
set(ALLEGRO_VERSION 4.4.3)
-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
@@ -403,6 +403,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)
@@ -466,6 +467,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)
@@ -744,7 +756,7 @@ endif(BEOS)
# On Unix/Mac we don't ever use a -static postfix.
if(CMAKE_BUILD_TYPE STREQUAL Debug)
- set(BUILD_TYPE_SUFFIX -debug)
+ set(BUILD_TYPE_SUFFIX "")
elseif(CMAKE_BUILD_TYPE STREQUAL Profile)
set(BUILD_TYPE_SUFFIX -profile)
else()