Commit 4d7cd40c authored by jehan's avatar jehan

update ortp file to use cmake based rpm build

parent ad22dfff
......@@ -36,7 +36,8 @@ done
if [ ! -f @ep_config_h_file@ ]
then
cmake @ep_source@ -DCMAKE_INSTALL_PREFIX=/opt/belledonne-communications -DCPACK_PACKAGE_NAME=bc-bctoolbox -DCPACK_GENERATOR=RPM
cmake @ep_source@ -DCMAKE_INSTALL_PREFIX=@RPM_INSTALL_PREFIX@ -DCPACK_PACKAGE_NAME=bc-bctoolbox -DCPACK_GENERATOR=RPM \
`echo "@EP_bctoolbox_CMAKE_OPTIONS@" | sed 's/;/ /g'`
make package
cp -v *.rpm "$RPM_TOPDIR/RPMS/"
fi
......@@ -29,4 +29,11 @@ lcb_groupable(YES)
lcb_dependencies("bctoolbox")
lcb_spec_file("ortp.spec")
lcb_cmake_options("-DENABLE_DOC=${ENABLE_DOC}")
\ No newline at end of file
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
......@@ -94,7 +94,6 @@ endif()
# needed *before* the include
lcb_builder_linking_type(ortp "--enable-static")
lcb_builder_use_autogen(ortp YES)
lcb_builder_use_autogen(ms2 YES)
lcb_builder_configure_options(ms2 "--disable-video")
#required to use autotools
......@@ -106,12 +105,12 @@ 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_ortp_BUILD_METHOD "rpm")
# Include builders
include(builders/CMakeLists.txt)
set(EP_bellesip_LINKING_TYPE "--enable-static")
set(EP_ortp_BUILD_METHOD "rpm")
set(EP_bellesip_BUILD_METHOD "rpm")
set(EP_sofiasip_BUILD_METHOD "rpm")
set(EP_flexisip_BUILD_METHOD "rpm")
......
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