sofiasip.cmake 1.67 KB
Newer Older
1
############################################################################
Ghislain MARY's avatar
Ghislain MARY committed
2
# sofiasip.cmake
3
# Copyright (C) 2014-2018  Belledonne Communications, Grenoble France
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#
############################################################################
#
# 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
19
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20 21 22
#
############################################################################

23
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/sofia-sip.git")
Ghislain MARY's avatar
Ghislain MARY committed
24 25 26
lcb_git_tag_latest("bc")
lcb_git_tag("dcdc8efab5d164ec55c8706f978a827af04459e4")
lcb_external_source_paths("externals/sofia-sip")
27

Ghislain MARY's avatar
Ghislain MARY committed
28 29 30 31
lcb_build_method("autotools")
lcb_use_autogen(YES)
lcb_build_in_source_tree(YES)
lcb_linking_type("--disable-static" "--enable-shared")
32 33 34 35 36 37

if (ENABLE_MDNS)
	lcb_configure_options("--enable-mdns")
endif()


Ghislain MARY's avatar
Ghislain MARY committed
38
lcb_cross_compilation_options(
39 40 41 42
	"--prefix=${CMAKE_INSTALL_PREFIX}"
	"--host=${LINPHONE_BUILDER_HOST}"
)

Ghislain MARY's avatar
Ghislain MARY committed
43 44
lcb_spec_file("packages/sofia-sip-*.spec")
lcb_rpmbuild_name("sofia-sip")
45 46 47 48
lcb_rpmbuild_options(
	"--with bc"
	"--without glib"
)
49
lcb_use_autotools_for_rpm(YES)