Commit 5c17f93e authored by Ghislain MARY's avatar Ghislain MARY

Add config to build RPM packages of linphone desktop.

parent 13ef108c
......@@ -26,6 +26,7 @@ lcb_git_tag("0a0a9c60f5a1b899ae26b705fa5224ef25377982")
lcb_external_source_paths("bcunit")
lcb_ignore_warnings(YES)
lcb_package_source(YES)
lcb_spec_file("bcunit.spec")
lcb_cmake_options(
"-DENABLE_AUTOMATED=YES"
......
############################################################################
# belcard.cmake
# Copyright (C) 2015 Belledonne Communications, Grenoble France
# Copyright (C) 2015-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -26,5 +26,6 @@ lcb_git_tag("master")
lcb_external_source_paths("belcard")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_spec_file("belcard.spec")
lcb_dependencies("bctoolbox" "belr")
\ No newline at end of file
lcb_dependencies("bctoolbox" "belr")
############################################################################
# bv16.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -24,3 +24,4 @@ lcb_git_repository("git://git.linphone.org/bv16-floatingpoint.git")
lcb_git_tag_latest("linphone")
lcb_git_tag("6899f2759c7b19d5402335d3a937c53020abfeca")
lcb_external_source_paths("externals/bv16-floatingpoint")
lcb_spec_file("bv16.spec")
......@@ -26,6 +26,7 @@ lcb_git_tag("1.0.4")
lcb_external_source_paths("bzrtp")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_spec_file("bzrtp.spec")
lcb_dependencies("bctoolbox")
if(NOT APPLE)
......
############################################################################
# matroska2.cmake
# Copyright (C) 2015 Belledonne Communications, Grenoble France
# Copyright (C) 2015-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -25,5 +25,6 @@ lcb_git_tag_latest("bc")
lcb_git_tag("c3fc2746f18bafefe3010669d8d2855240565c86")
lcb_external_source_paths("bcmatroska2")
lcb_package_source(YES)
lcb_spec_file("matroska2.spec")
lcb_linking_type("-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO")
......@@ -24,6 +24,7 @@ lcb_git_repository("git://git.linphone.org/minizip.git")
lcb_git_tag_latest("master")
lcb_git_tag("d65cd2ea9d740f62884e0beaf8ab86740620c783")
lcb_external_source_paths("externals/minizip")
lcb_spec_file("minizip.spec")
lcb_dependencies("zlib")
......
############################################################################
# mswebrtc.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -27,6 +27,7 @@ lcb_external_source_paths("mswebrtc")
lcb_groupable(YES)
lcb_package_source(YES)
lcb_plugin(YES)
lcb_spec_file("mswebrtc.spec")
lcb_dependencies("ms2")
......
############################################################################
# config-desktop-rpm.cmake
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
############################################################################
include(GNUInstallDirs)
include(${CMAKE_SOURCE_DIR}/cmake/FindLinuxPlatform.cmake)
# Force build of RPM packages
set(LINPHONE_BUILDER_ENABLE_RPM_PACKAGING YES CACHE BOOL "" FORCE)
# Force use of system dependencies to build RPM packages
set(LINPHONE_BUILDER_USE_SYSTEM_DEPENDENCIES YES CACHE BOOL "" FORCE)
# Define default values for the linphone builder options
set(DEFAULT_VALUE_ENABLE_RELATIVE_PREFIX ON)
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
# Global configuration
set(LINPHONE_BUILDER_HOST "")
set(RPM_INSTALL_PREFIX "/opt/belledonne-communications/linphone")
set(LINPHONE_BUILDER_RPMBUILD_PACKAGE_PREFIX "linphone-")
# Adjust PKG_CONFIG_PATH to include install directory
if(UNIX)
set(LINPHONE_BUILDER_PKG_CONFIG_PATH "${RPM_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig/:${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig/:$ENV{PKG_CONFIG_PATH}:/usr/${CMAKE_INSTALL_LIBDIR}/pkgconfig/:/usr/${CMAKE_INSTALL_LIBDIR}/x86_64-linux-gnu/pkgconfig/:/usr/share/pkgconfig/:/usr/local/${CMAKE_INSTALL_LIBDIR}/pkgconfig/:/opt/local/${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
message(STATUS "PKG CONFIG PATH: ${LINPHONE_BUILDER_PKG_CONFIG_PATH}")
message(STATUS "LIBDIR: ${LIBDIR}")
endif()
include("configs/config-desktop.cmake")
# prepare the RPMBUILD options that we need to pass
set(LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS "--define '_mandir %{_prefix}'")
if(PLATFORM STREQUAL "Debian")
# dependencies cannot be checked by rpmbuild in debian
set(LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS "${LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS} --nodeps")
# dist is not defined in debian for rpmbuild..
set(LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS "${LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS} --define 'dist .deb'")
# debian has multi-arch lib dir instead of lib and lib64
set(LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS "${LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS} --define '_lib lib'")
# debian has multi-arch lib dir instead of lib and lib64
set(LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS "${LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS} --define '_libdir %{_prefix}/%{_lib}'")
# some debians are using dash as shell, which doesn't support "export -n", so we override and use bash
set(LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS "${LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS} --define '_buildshell /bin/bash'")
endif()
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