unixodbc.cmake 1.74 KB
Newer Older
Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
############################################################################
# unixodbc.cmake
# Copyright (C) 2014  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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
############################################################################

set(EP_unixodbc_GIT_REPOSITORY "git://git.linphone.org/unixODBC.git")
Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
24
set(EP_unixodbc_GIT_TAG "c5bd0d88efebb2cb9a350b42a121a93382d56628")
Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
25 26 27 28 29 30 31 32 33 34 35 36


set(EP_unixodbc_DEPENDENCIES )
set(EP_unixodbc_LINKING_TYPE "--disable-static" "--enable-shared")
set(EP_unixodbc_BUILD_METHOD "autotools")
set(EP_unixodbc_USE_AUTOGEN "yes")
set(EP_unixodbc_CONFIGURE_OPTIONS )
set(EP_unixodbc_CROSS_COMPILATION_OPTIONS
	"--prefix=${CMAKE_INSTALL_PREFIX}"
	"--host=${LINPHONE_BUILDER_HOST}"
)

Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
37
list(APPEND EP_unixodbc_CONFIGURE_OPTIONS "--enable-drivers" "--enable-driver-conf" )
38 39

set(EP_unixodbc_SPEC_FILE "unixodbc.spec")
Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
40
set(EP_unixodbc_RPMBUILD_NAME "unixODBC")
41
set(EP_unixodbc_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "<SOURCE_DIR>/${EP_unixodbc_SPEC_FILE}" "<BINARY_DIR>")