|
Line 0
Link Here
|
|
|
1 |
diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 2 |
index 975ca71..eb588ca 100644 |
| 3 |
--- a/CMakeLists.txt |
| 4 |
+++ b/CMakeLists.txt |
| 5 |
@@ -103,29 +103,33 @@ pkg_check_modules(SOXR QUIET soxr) |
| 6 |
set(WITH_PULSEAUDIO TRUE CACHE STRING "enable PulseAudio support") |
| 7 |
set(WITH_JACK TRUE CACHE STRING "enable JACK Audio Connection Kit") |
| 8 |
|
| 9 |
-if (PULSEAUDIO_FOUND AND WITH_PULSEAUDIO) |
| 10 |
+if (WITH_PULSEAUDIO) |
| 11 |
+ pkg_check_modules(PULSEAUDIO libpulse) |
| 12 |
+ if (NOT PULSEAUDIO_FOUND) |
| 13 |
+ message(FATAL_ERROR "PulseAudio requested but not found.") |
| 14 |
+ endif() |
| 15 |
add_definitions(-DHAVE_PULSEAUDIO=1) |
| 16 |
- message(STATUS " found libpulse, version ${PULSEAUDIO_VERSION} (optional)") |
| 17 |
+ message(STATUS " found libpulse, version ${PULSEAUDIO_VERSION}") |
| 18 |
list(APPEND REQ_LIBRARY_DIRS ${PULSEAUDIO_LIBRARY_DIRS}) |
| 19 |
list(APPEND REQ_INCLUDE_DIRS ${PULSEAUDIO_INCLUDE_DIRS}) |
| 20 |
list(APPEND REQ_LIBRARIES ${PULSEAUDIO_LIBRARIES}) |
| 21 |
-else() |
| 22 |
- message(STATUS " no libpulse found (optional)") |
| 23 |
endif() |
| 24 |
|
| 25 |
-if (JACK_FOUND AND WITH_JACK) |
| 26 |
- message(STATUS " found jack, version ${JACK_VERSION} (optional)") |
| 27 |
- if (SOXR_FOUND) |
| 28 |
- message(STATUS " found soxr, version ${SOXR_VERSION}") |
| 29 |
- add_definitions(-DHAVE_JACK=1) |
| 30 |
- list(APPEND REQ_LIBRARY_DIRS "${JACK_LIBRARY_DIRS}" "${SOXR_LIBRARY_DIRS}") |
| 31 |
- list(APPEND REQ_INCLUDE_DIRS "${JACK_INCLUDE_DIRS}" "${SOXR_INCLUDE_DIRS}") |
| 32 |
- list(APPEND REQ_LIBRARIES "${JACK_LIBRARIES}" "${SOXR_LIBRARIES}") |
| 33 |
- else() |
| 34 |
- message(STATUS " no soxr found, JACK output disabled") |
| 35 |
+if (WITH_JACK) |
| 36 |
+ pkg_check_modules(JACK QUIET jack) |
| 37 |
+ if (NOT JACK_FOUND) |
| 38 |
+ message(FATAL_ERROR "JACK support requested but not found.") |
| 39 |
endif() |
| 40 |
-else() |
| 41 |
- message(STATUS " no jack found (optional)") |
| 42 |
+ pkg_check_modules(SOXR QUIET soxr) |
| 43 |
+ if (NOT SOXR_FOUND) |
| 44 |
+ message(FATAL_ERROR "SOXR libray not found but needed for JACK support.") |
| 45 |
+ endif() |
| 46 |
+ message(STATUS " found jack, version ${JACK_VERSION}") |
| 47 |
+ message(STATUS " found soxr, version ${SOXR_VERSION}") |
| 48 |
+ add_definitions(-DHAVE_JACK=1) |
| 49 |
+ list(APPEND REQ_LIBRARY_DIRS "${JACK_LIBRARY_DIRS}" "${SOXR_LIBRARY_DIRS}") |
| 50 |
+ list(APPEND REQ_INCLUDE_DIRS "${JACK_INCLUDE_DIRS}" "${SOXR_INCLUDE_DIRS}") |
| 51 |
+ list(APPEND REQ_LIBRARIES "${JACK_LIBRARIES}" "${SOXR_LIBRARIES}") |
| 52 |
endif() |
| 53 |
|
| 54 |
# hw accelerated decoding |
| 55 |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
| 56 |
index 90d80f2..c3f983d 100644 |
| 57 |
--- a/src/CMakeLists.txt |
| 58 |
+++ b/src/CMakeLists.txt |
| 59 |
@@ -5,7 +5,7 @@ endif() |
| 60 |
|
| 61 |
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) |
| 62 |
|
| 63 |
-set(MOZPLUGIN_INSTALL_DIR "lib${LIB_SUFFIX}/mozilla/plugins/" CACHE STRING "plugin install directory") |
| 64 |
+set(MOZPLUGIN_INSTALL_DIR "lib${LIB_SUFFIX}/nsbrowser/plugins/" CACHE STRING "plugin install directory") |
| 65 |
|
| 66 |
add_subdirectory(uri_parser) |
| 67 |
add_subdirectory(config_parser) |