Commit 5205dc9e authored by jehan's avatar jehan

move cmake builder rpm build from autotools to cmake

parent f61eae6e
......@@ -26,14 +26,6 @@ set(EP_flexisip_GIT_TAG "cc4e47496600e9b1d3d412ce6e887275c204334b" CACHE STRING
set(EP_flexisip_EXTERNAL_SOURCE_PATHS "<LINPHONE_BUILDER_TOP_DIR>")
set(EP_flexisip_GROUPABLE YES)
if(EP_flexisip_FORCE_AUTOTOOLS)
set(EP_flexisip_LINKING_TYPE "--disable-static" "--enable-shared")
set(EP_flexisip_BUILD_METHOD "autotools")
else()
set(EP_flexisip_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
endif()
set(EP_flexisip_USE_AUTOGEN True)
set(EP_flexisip_CONFIGURE_OPTIONS )
set(EP_flexisip_CMAKE_OPTIONS )
set(EP_flexisip_CROSS_COMPILATION_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
......@@ -52,64 +44,14 @@ if (ENABLE_TRANSCODER)
list(APPEND EP_flexisip_DEPENDENCIES EP_ms2)
else()
list(APPEND EP_flexisip_DEPENDENCIES EP_ortp)
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-transcoder")
endif()
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_TRANSCODER=${ENABLE_TRANSCODER}")
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_ODB=${ENABLE_ODB}")
if(ENABLE_ODB)
message(STATUS "Flexisip to be built with ODB")
list(APPEND EP_flexisip_DEPENDENCIES EP_libodbmysql)
else()
message(STATUS "Flexisip to be built without ODB")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-libodb=no")
endif()
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_ODBC=${ENABLE_ODBC}")
if(ENABLE_ODBC)
if(ENABLE_BC_ODBC)
message(STATUS "Flexisip to be built with BC ODBC")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--with-odbc=${CMAKE_INSTALL_PREFIX}")
list(APPEND EP_flexisip_DEPENDENCIES EP_unixodbc EP_myodbc)
else()
message(STATUS "Flexisip to be built with system ODBC")
endif()
else()
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-odbc")
endif()
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_REDIS=${ENABLE_REDIS}")
if(ENABLE_REDIS)
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-redis")
if (ENABLE_BC_REDIS)
message(STATUS "Flexisip to be built with BC HIREDIS")
list(APPEND EP_flexisip_DEPENDENCIES EP_hiredis)
else()
message(STATUS "Flexisip to be built with system HIREDIS")
endif()
else()
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-redis")
endif()
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_SOCI=${ENABLE_SOCI}")
if(ENABLE_SOCI)
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-soci")
else()
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-soci")
endif()
if(ENABLE_SOCI_BUILD)
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--with-soci=/usr")
endif()
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_PUSHNOTIFICATION=${ENABLE_PUSHNOTIFICATION}")
if(ENABLE_PUSHNOTIFICATION)
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-pushnotification")
else()
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-pushnotification")
endif()
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_PRESENCE=${ENABLE_PRESENCE}")
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DXSDCXX_ROOT_PATH=${XSDCXX_ROOT_PATH}")
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_SNMP=${ENABLE_SNMP}")
......
......@@ -27,6 +27,8 @@ set(EP_hiredis_GIT_REPOSITORY "https://github.com/redis/hiredis.git" CACHE STRIN
set(EP_hiredis_GIT_TAG "010756025e8cefd1bc66c6d4ed3b1648ef6f1f95" CACHE STRING "hiredis tag to use")
set(EP_hiredis_BUILD_METHOD "rpm")
lcb_use_autotools_for_rpm(YES)
set(EP_hiredis_SPEC_FILE "hiredis.spec" )
set(EP_hiredis_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/hiredis/${EP_hiredis_SPEC_FILE}" )
......
......@@ -112,3 +112,4 @@ endif()
if(ENABLE_V4L AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
lcb_dependencies("v4l")
endif()
......@@ -32,9 +32,3 @@ lcb_spec_file("ortp.spec")
lcb_cmake_options("-DENABLE_DOC=${ENABLE_DOC}")
if(EP_ortp_BUILD_METHOD STREQUAL "rpm")
message("using rpm")
set(EP_ortp_CONFIGURE_COMMAND_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/builders/ortp/configure.sh.rpm.cmake)
set(EP_ortp_BUILD_COMMAND_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/builders/ortp/build.sh.rpm.cmake)
endif()
#!/bin/bash
export ASFLAGS="@ep_asflags@"
export CPPFLAGS="@ep_cppflags@"
export CFLAGS="@ep_cflags@"
export CXXFLAGS="@ep_cxxflags@"
export OBJCFLAGS="@ep_objcflags@"
export LDFLAGS="@ep_ldflags@"
export RPM_TOPDIR="@LINPHONE_BUILDER_WORK_DIR@/rpmbuild"
rpmbuild -ta --clean --rmsource --define "_topdir $RPM_TOPDIR" \
@LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTION@ \
@LINPHONE_BUILDER_RPMBUILD_OPTIONS@ \
--rmspec @ep_build@/bc-ortp-*.tar.gz \
$VERBOSE @ep_redirect_to_file@
#!/bin/sh
cd @ep_build@
cmake @ep_source@ -DCPACK_PACKAGE_NAME=bc-ortp -DCMAKE_INSTALL_PREFIX=@RPM_INSTALL_PREFIX@ -DCMAKE_PREFIX_PATH=@RPM_INSTALL_PREFIX@
make package_source
......@@ -41,3 +41,4 @@ set(EP_sofiasip_CROSS_COMPILATION_OPTIONS
# RPM
set(EP_sofiasip_SPEC_FILE "packages/sofia-sip-*.spec")
set(EP_sofiasip_RPMBUILD_NAME "sofia-sip")
lcb_use_autotools_for_rpm(YES)
#!/bin/sh
if [ -n "@AUTOTOOLS_AS_COMPILER@" ]
then
export AS="@AUTOTOOLS_AS_COMPILER@"
fi
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
export ASFLAGS="@ep_asflags@"
export CPPFLAGS="@ep_cppflags@"
export CFLAGS="@ep_cflags@"
export CXXFLAGS="@ep_cxxflags@"
export OBJCFLAGS="@ep_objcflags@"
export LDFLAGS="@ep_ldflags@"
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
export PKG_CONFIG_PATH="@LINPHONE_BUILDER_PKG_CONFIG_PATH@"
if [ -n "@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@" ]
then
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
fi
export RPM_TOPDIR="@LINPHONE_BUILDER_WORK_DIR@/rpmbuild"
VERBOSE=""
if [ @AUTOTOOLS_VERBOSE_MAKEFILE@ -eq 1 ]; then
VERBOSE="--verbose"
fi
# SPEC_PREFIX=""
# if [ @LINPHONE_BUILDER_SPEC_PREFIX@ != "" ]; then
# SPEC_PREFIX="--define \"_prefix @LINPHONE_BUILDER_SPEC_PREFIX@\""
# fi
cd @ep_source@
# TODO rpmbuild -ba @ep_build@/@LINPHONE_BUILDER_SPEC_FILE@ --define "_topdir $RPM_TOPDIR" $SPEC_PREFIX --with bc $VERBOSE @ep_redirect_to_file@
rpmbuild -ba @ep_build@/@LINPHONE_BUILDER_SPEC_FILE@ \
--define "_topdir $RPM_TOPDIR" --define '_PKG_CONFIG_PATH $PKG_CONFIG_PATH'\
--define "_builddir @ep_source@" \
@LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTION@ \
@LINPHONE_BUILDER_RPMBUILD_OPTIONS@ \
$VERBOSE @ep_redirect_to_file@
#!/bin/sh
if [ -n "@AUTOTOOLS_AS_COMPILER@" ]
then
export AS="@AUTOTOOLS_AS_COMPILER@"
fi
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
export ASFLAGS="@ep_asflags@"
export CPPFLAGS="@ep_cppflags@"
export CFLAGS="@ep_cflags@"
export CXXFLAGS="@ep_cxxflags@"
export OBJCFLAGS="@ep_objcflags@"
export LDFLAGS="@ep_ldflags@"
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
export PKG_CONFIG_PATH="@LINPHONE_BUILDER_PKG_CONFIG_PATH@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
export RPM_TOPDIR="@LINPHONE_BUILDER_WORK_DIR@/rpmbuild"
cd @ep_build@
# create rpmbuild workdir if needed
for dir in BUILDROOT RPMS SOURCES SPECS SRPMS; do
mkdir -p "$RPM_TOPDIR/$dir"
done
if [ ! -f @ep_config_h_file@ ]
then
@ep_autogen_command@ @ep_autogen_redirect_to_file@
@ep_configure_env@ @ep_configure_command@ @ep_configure_redirect_to_file@
make dist distdir='@LINPHONE_BUILDER_RPMBUILD_PACKAGE_PREFIX@$(PACKAGE)-$(VERSION)' V=@AUTOTOOLS_VERBOSE_MAKEFILE@ @ep_redirect_to_file@
cp -v *.tar.gz "$RPM_TOPDIR/SOURCES/"
@LINPHONE_BUILDER_CONFIGURE_EXTRA_CMD@
fi
......@@ -753,8 +753,13 @@ macro(linphone_builder_add_external_project PROJNAME)
endif()
# allow to have special command steps
linphone_builder_configure_file_for_project(${PROJNAME} CONFIGURE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/configure.rpm.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_configure_rpm.sh)
linphone_builder_configure_file_for_project(${PROJNAME} BUILD ${CMAKE_CURRENT_SOURCE_DIR}/cmake/build.rpm.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_build_rpm.sh)
if(EP_${PROJNAME}_USE_AUTOTOOLS_FOR_RPM)
linphone_builder_configure_file_for_project(${PROJNAME} CONFIGURE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Autotools/configure.rpm.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_configure_rpm.sh)
linphone_builder_configure_file_for_project(${PROJNAME} BUILD ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Autotools/build.rpm.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_build_rpm.sh)
else()
linphone_builder_configure_file_for_project(${PROJNAME} CONFIGURE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/configure.rpm.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_configure_rpm.sh)
linphone_builder_configure_file_for_project(${PROJNAME} BUILD ${CMAKE_CURRENT_SOURCE_DIR}/cmake/build.rpm.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_build_rpm.sh)
endif()
linphone_builder_configure_file_for_project(${PROJNAME} INSTALL ${CMAKE_CURRENT_SOURCE_DIR}/cmake/install.rpm.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_install_rpm.sh)
set(BUILD_COMMANDS
......@@ -1196,7 +1201,15 @@ macro(lcb_builder_use_autogen BUILDER BOOL_VALUE)
endmacro()
macro(lcb_use_autogen BOOL_VALUE)
lcb_builder_use_autogen(${BOOL_VALUE})
lcb_builder_use_autogen("${LINPHONE_BUILDER_CURRENT_BUILDER}" ${BOOL_VALUE})
endmacro()
macro(lcb_builder_use_autotools_for_rpm BUILDER BOOL_VALUE)
set(EP_${BUILDER}_USE_AUTOTOOLS_FOR_RPM ${BOOL_VALUE})
endmacro()
macro(lcb_use_autotools_for_rpm BOOL_VALUE)
lcb_builder_use_autotools_for_rpm("${LINPHONE_BUILDER_CURRENT_BUILDER}" ${BOOL_VALUE})
endmacro()
macro(lcb_builder_use_autoreconf BUILDER BOOL_VALUE)
......
#!/bin/sh
if [ -n "@AUTOTOOLS_AS_COMPILER@" ]
then
export AS="@AUTOTOOLS_AS_COMPILER@"
fi
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
#!/bin/bash
export ASFLAGS="@ep_asflags@"
export CPPFLAGS="@ep_cppflags@"
......@@ -20,30 +7,13 @@ export CXXFLAGS="@ep_cxxflags@"
export OBJCFLAGS="@ep_objcflags@"
export LDFLAGS="@ep_ldflags@"
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
export PKG_CONFIG_PATH="@LINPHONE_BUILDER_PKG_CONFIG_PATH@"
if [ -n "@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@" ]
then
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
fi
export RPM_TOPDIR="@LINPHONE_BUILDER_WORK_DIR@/rpmbuild"
VERBOSE=""
if [ @AUTOTOOLS_VERBOSE_MAKEFILE@ -eq 1 ]; then
VERBOSE="--verbose"
fi
# SPEC_PREFIX=""
# if [ @LINPHONE_BUILDER_SPEC_PREFIX@ != "" ]; then
# SPEC_PREFIX="--define \"_prefix @LINPHONE_BUILDER_SPEC_PREFIX@\""
# fi
rpmbuild -ta --clean --rmsource --define "_topdir $RPM_TOPDIR" \
@LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTION@ \
@LINPHONE_BUILDER_RPMBUILD_OPTIONS@ \
--rmspec @ep_build@/*.tar.gz \
$VERBOSE @ep_redirect_to_file@
cd @ep_source@
# TODO rpmbuild -ba @ep_build@/@LINPHONE_BUILDER_SPEC_FILE@ --define "_topdir $RPM_TOPDIR" $SPEC_PREFIX --with bc $VERBOSE @ep_redirect_to_file@
rpmbuild -ba @ep_build@/@LINPHONE_BUILDER_SPEC_FILE@ \
--define "_topdir $RPM_TOPDIR" --define '_PKG_CONFIG_PATH $PKG_CONFIG_PATH'\
--define "_builddir @ep_source@" \
@LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTION@ \
@LINPHONE_BUILDER_RPMBUILD_OPTIONS@ \
$VERBOSE @ep_redirect_to_file@
#!/bin/sh
if [ -n "@AUTOTOOLS_AS_COMPILER@" ]
then
export AS="@AUTOTOOLS_AS_COMPILER@"
fi
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
export ASFLAGS="@ep_asflags@"
export CPPFLAGS="@ep_cppflags@"
export CFLAGS="@ep_cflags@"
export CXXFLAGS="@ep_cxxflags@"
export OBJCFLAGS="@ep_objcflags@"
export LDFLAGS="@ep_ldflags@"
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
export PKG_CONFIG_PATH="@LINPHONE_BUILDER_PKG_CONFIG_PATH@"
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"
export RPM_TOPDIR="@LINPHONE_BUILDER_WORK_DIR@/rpmbuild"
cd @ep_build@
# create rpmbuild workdir if needed
for dir in BUILDROOT RPMS SOURCES SPECS SRPMS; do
mkdir -p "$RPM_TOPDIR/$dir"
done
if [ ! -f @ep_config_h_file@ ]
then
@ep_autogen_command@ @ep_autogen_redirect_to_file@
@ep_configure_env@ @ep_configure_command@ @ep_configure_redirect_to_file@
make dist distdir='@LINPHONE_BUILDER_RPMBUILD_PACKAGE_PREFIX@$(PACKAGE)-$(VERSION)' V=@AUTOTOOLS_VERBOSE_MAKEFILE@ @ep_redirect_to_file@
cp -v *.tar.gz "$RPM_TOPDIR/SOURCES/"
@LINPHONE_BUILDER_CONFIGURE_EXTRA_CMD@
fi
cmake @ep_source@ -DCPACK_PACKAGE_NAME=@LINPHONE_BUILDER_RPMBUILD_PACKAGE_PREFIX@@LINPHONE_BUILDER_RPMBUILD_NAME@ -DCMAKE_INSTALL_PREFIX=@RPM_INSTALL_PREFIX@ -DCMAKE_PREFIX_PATH=@RPM_INSTALL_PREFIX@
make package_source
......@@ -91,30 +91,21 @@ else() # Windows
set(LINPHONE_BUILDER_PKG_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/")
endif()
# needed *before* the include
lcb_builder_linking_type(ortp "--enable-static")
lcb_builder_use_autogen(ms2 YES)
lcb_builder_configure_options(ms2 "--disable-video")
#required to use autotools
lcb_builder_use_autogen(bellesip YES)
set(EP_flexisip_FORCE_AUTOTOOLS TRUE)
# we can override the bctoolbox build method before including builders because it doesn't define it.
set(EP_bctoolbox_BUILD_METHOD "rpm")
lcb_builder_cmake_options(bctoolbox "-DENABLE_TESTS=NO")
lcb_builder_cmake_options(bctoolbox "-DENABLE_TESTS_COMPONENT=NO")
set(EP_ms2_BUILD_METHOD "rpm")
set(EP_ortp_BUILD_METHOD "rpm")
# Include builders
include(builders/CMakeLists.txt)
set(EP_bellesip_LINKING_TYPE "--enable-static")
set(EP_bellesip_BUILD_METHOD "rpm")
set(EP_sofiasip_BUILD_METHOD "rpm")
set(EP_flexisip_BUILD_METHOD "rpm")
set(EP_odb_BUILD_METHOD "custom")
set(EP_ms2_BUILD_METHOD "rpm")
set(EP_ms2_SPEC_PREFIX "${RPM_INSTALL_PREFIX}")
set(EP_ortp_SPEC_PREFIX "${RPM_INSTALL_PREFIX}")
......@@ -122,9 +113,6 @@ set(EP_bellesip_SPEC_PREFIX "${RPM_INSTALL_PREFIX}")
set(EP_sofiasip_SPEC_PREFIX "${RPM_INSTALL_PREFIX}")
set(EP_flexisip_SPEC_PREFIX "${RPM_INSTALL_PREFIX}")
set(EP_flexisip_CONFIGURE_OPTIONS "--enable-redis" "--enable-libodb=no" "--enable-libodb-mysql=no")
set(EP_ortp_RPMBUILD_OPTIONS "--with bc")
set(EP_ms2_RPMBUILD_OPTIONS "--with bc --without video")
set(EP_unixodbc_RPMBUILD_OPTIONS "--with bc")
......@@ -142,7 +130,6 @@ set(EP_bellesip_RPMBUILD_OPTIONS "--with bc ")
if (ENABLE_PRESENCE)
set(EP_flexisip_RPMBUILD_OPTIONS "${EP_flexisip_RPMBUILD_OPTIONS} --with presence")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-presence")
endif()
if (ENABLE_SOCI)
......@@ -165,12 +152,10 @@ if (ENABLE_SOCI)
set(EP_soci_CONFIGURE_COMMAND_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/builders/soci/configure.sh.cmake)
set(EP_flexisip_RPMBUILD_OPTIONS "${EP_flexisip_RPMBUILD_OPTIONS} --with soci")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-soci")
endif()
if (ENABLE_SNMP)
set(EP_flexisip_RPMBUILD_OPTIONS "${EP_flexisip_RPMBUILD_OPTIONS} --with snmp")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-snmp")
endif()
if(ENABLE_BC_ODBC)
......@@ -189,11 +174,6 @@ set(LINPHONE_BUILDER_RPMBUILD_PACKAGE_PREFIX "bc-")
set(RPMBUILD_OPTIONS "--define '_mandir %{_prefix}'")
# bc-redis will be installed in the prefix, but we have to pass it through a special flag to the RPM build, since there
# is no pkgconfig
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--with-redis=${CMAKE_INSTALL_PREFIX}")
set(EP_flexisip_RPMBUILD_OPTIONS "${EP_flexisip_RPMBUILD_OPTIONS} --define 'hiredisdir ${RPM_INSTALL_PREFIX}'")
if(PLATFORM STREQUAL "Debian")
# dependencies cannot be checked by rpmbuild in debian
set(RPMBUILD_OPTIONS "${RPMBUILD_OPTIONS} --nodeps")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment