forked from recalbox/recalbox-emulationstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ogg and mp3 bg music support with sdlmixer
- Loading branch information
1 parent
c48f178
commit f149f34
Showing
13 changed files
with
284 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# this module look for SDL2_Mixer (http://www.libsdl.org) support | ||
# it will define the following values | ||
# | ||
# SDLMIXER_INCLUDE_DIR = where SDL_mixer.h can be found | ||
# SDLMIXER_LIBRARY = the library to link against SDL2_mixer | ||
# SDLMIXER_FOUND = set to 1 if SDL2_mixer is found | ||
# | ||
|
||
IF(SDL2_Mixer_INCLUDE_DIRS) | ||
|
||
FIND_PATH(SDLMIXER_INCLUDE_DIR SDL2/SDL_mixer.h ${SDL2_Mixer_INCLUDE_DIRS}) | ||
FIND_LIBRARY(SDLMIXER_LIBRARY SDL2_mixer ${SDL2_Mixer_LIBRARY_DIRS}) | ||
|
||
ELSE(SDL2_Mixer_INCLUDE_DIRS) | ||
|
||
SET(TRIAL_LIBRARY_PATHS | ||
$ENV{SDL2_MIXER_HOME}/lib | ||
/usr/lib | ||
/usr/local/lib | ||
/sw/lib | ||
) | ||
SET(TRIAL_INCLUDE_PATHS | ||
$ENV{SDL2_MIXER_HOME}/include/SDL2 | ||
/usr/include/SDL2 | ||
/usr/local/include/SDL2 | ||
/sw/include/SDL2 | ||
) | ||
|
||
FIND_LIBRARY(SDLMIXER_LIBRARY SDL2_mixer ${TRIAL_LIBRARY_PATHS}) | ||
FIND_PATH(SDLMIXER_INCLUDE_DIR SDL_mixer.h ${TRIAL_INCLUDE_PATHS}) | ||
|
||
ENDIF(SDL2_Mixer_INCLUDE_DIRS) | ||
|
||
IF(SDLMIXER_INCLUDE_DIR AND SDLMIXER_LIBRARY) | ||
SET(SDLMIXER_FOUND 1 CACHE BOOL "Found SDL2_Mixer library") | ||
ELSE(SDLMIXER_INCLUDE_DIR AND SDLMIXER_LIBRARY) | ||
SET(SDLMIXER_FOUND 0 CACHE BOOL "Not fount SDL2_Mixer library") | ||
ENDIF(SDLMIXER_INCLUDE_DIR AND SDLMIXER_LIBRARY) | ||
|
||
MARK_AS_ADVANCED( | ||
SDLMIXER_INCLUDE_DIR | ||
SDLMIXER_LIBRARY | ||
SDLMIXER_FOUND | ||
) | ||
|
||
INCLUDE(FindPackageHandleStandardArgs) | ||
|
||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDLMIXER REQUIRED_VARS SDLMIXER_INCLUDE_DIR SDLMIXER_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,8 +133,8 @@ SET(CPACK_RESOURCE_FILE README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") | |
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Alec Lofquist <[email protected]>") | ||
SET(CPACK_DEBIAN_PACKAGE_SECTION "misc") | ||
SET(CPACK_DEBIAN_PACKAGE_PRIORITY "extra") | ||
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libsdl2-2.0-0, libboost-system1.54.0, libboost-filesystem1.54.0, libfreeimage3, libfreetype6, libcurl3, libasound2") | ||
SET(CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS "debhelper (>= 8.0.0), cmake, g++ (>= 4.8), libsdl2-dev, libboost-system-dev, libboost-filesystem-dev, libboost-date-time-dev, libfreeimage-dev, libfreetype6-dev, libeigen3-dev, libcurl4-openssl-dev, libasound2-dev, libgl1-mesa-dev") | ||
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libsdl2-2.0-0, libsdl2-mixer-2.0-0, libboost-system1.54.0, libboost-filesystem1.54.0, libfreeimage3, libfreetype6, libcurl3, libasound2") | ||
SET(CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS "debhelper (>= 8.0.0), cmake, g++ (>= 4.8), libsdl2-dev, libsdl2-mixer-dev, libboost-system-dev, libboost-filesystem-dev, libboost-date-time-dev, libfreeimage-dev, libfreetype6-dev, libeigen3-dev, libcurl4-openssl-dev, libasound2-dev, libgl1-mesa-dev") | ||
|
||
SET(CPACK_PACKAGE_VENDOR "emulationstation.org") | ||
SET(CPACK_PACKAGE_VERSION "2.0.0~rc1") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.