diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-19 09:11:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-19 09:18:46 +0000 |
commit | 4e8b12d3f6298deff7893b9e13673058d029eb62 (patch) | |
tree | 7461a8d02aee51de13bc0233b089ab267198ec06 /testing/sems/sems-0010-Move-CMake-defines.patch | |
parent | bd48ba5d5a0acc9688555721762769d797bda02c (diff) | |
download | aports-4e8b12d3f6298deff7893b9e13673058d029eb62.tar.bz2 aports-4e8b12d3f6298deff7893b9e13673058d029eb62.tar.xz |
testing/sems: remake of sems (1.3.1)
based on fedoras package and patches.
We split it in a similar way as fedora
Diffstat (limited to 'testing/sems/sems-0010-Move-CMake-defines.patch')
-rw-r--r-- | testing/sems/sems-0010-Move-CMake-defines.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/testing/sems/sems-0010-Move-CMake-defines.patch b/testing/sems/sems-0010-Move-CMake-defines.patch new file mode 100644 index 0000000000..be1b8be7a8 --- /dev/null +++ b/testing/sems/sems-0010-Move-CMake-defines.patch @@ -0,0 +1,66 @@ +From c6fe28de4a05e33c317019261711f2babe98b95d Mon Sep 17 00:00:00 2001 +From: Peter Lemenkov <lemenkov@gmail.com> +Date: Mon, 3 Jan 2011 22:16:24 +0300 +Subject: [PATCH 10/11] Move CMake defines + +Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> +--- + CMakeLists.txt | 3 +++ + core/CMakeLists.txt | 6 ------ + 2 files changed, 3 insertions(+), 6 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 78a6dfb..fdc88f4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -80,6 +80,7 @@ SET(CMAKE_VERBOSE_MAKEFILE ON) + # (which means that current debian and gentoo packages don't work) + IF(SEMS_USE_SPANDSP) + FIND_PACKAGE(Spandsp REQUIRED) ++ ADD_DEFINITIONS(-DUSE_SPANDSP -D__STDC_LIMIT_MACROS) + MESSAGE(STATUS "Using spandsp: YES") + ELSE(SEMS_USE_SPANDSP) + MESSAGE(STATUS "Using spandsp: NO (default)") +@@ -89,6 +90,7 @@ ENDIF(SEMS_USE_SPANDSP) + # (see http://www.mega-nerd.com/SRC/) + IF(SEMS_USE_LIBSAMPLERATE) + FIND_PACKAGE(Libsamplerate REQUIRED) ++ ADD_DEFINITIONS(-DUSE_LIBSAMPLERATE) + MESSAGE(STATUS "Using libsamplerate: YES") + ELSE(SEMS_USE_LIBSAMPLERATE) + MESSAGE(STATUS "Using libsamplerate: NO (default)") +@@ -128,6 +130,7 @@ ELSE(SEMS_USE_MONITORING) + ENDIF(SEMS_USE_MONITORING) + + IF(SEMS_USE_IPV6) ++ ADD_DEFINITIONS(-DSUPPORT_IPV6) + MESSAGE(STATUS "Enable IPv6 support: YES") + ELSE(SEMS_USE_IPV6) + MESSAGE(STATUS "Enable IPv6 support: NO (default)") +diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt +index 7bd1341..5f0fb3f 100644 +--- a/core/CMakeLists.txt ++++ b/core/CMakeLists.txt +@@ -18,19 +18,13 @@ ENDIF(NOT MAX_RTP_SESSIONS) + ADD_DEFINITIONS(-DMAX_RTP_SESSIONS=${MAX_RTP_SESSIONS}) + + IF(SPANDSP_FOUND) +- ADD_DEFINITIONS(-DUSE_SPANDSP -D__STDC_LIMIT_MACROS) + TARGET_LINK_LIBRARIES(sems ${CMAKE_DL_LIBS} spandsp) + ENDIF(SPANDSP_FOUND) + + IF(LIBSAMPLERATE_FOUND) +- ADD_DEFINITIONS(-DUSE_LIBSAMPLERATE) + TARGET_LINK_LIBRARIES(sems ${CMAKE_DL_LIBS} samplerate) + ENDIF(LIBSAMPLERATE_FOUND) + +-IF(SEMS_USE_IPV6) +- ADD_DEFINITIONS(-DSUPPORT_IPV6) +-ENDIF(SEMS_USE_IPV6) +- + ADD_SUBDIRECTORY(plug-in) + + # Create config-file from template +-- +1.7.3.4 + |