2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-05-07 05:58:30 +02:00
|
|
|
#
|
|
|
|
# xerces
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2018-10-10 20:03:32 +02:00
|
|
|
XERCES_VERSION = 3.2.2
|
2015-04-04 21:05:11 +02:00
|
|
|
XERCES_SOURCE = xerces-c-$(XERCES_VERSION).tar.xz
|
2014-07-31 10:46:58 +02:00
|
|
|
XERCES_SITE = http://archive.apache.org/dist/xerces/c/3/sources
|
2014-05-06 17:42:44 +02:00
|
|
|
XERCES_LICENSE = Apache-2.0
|
|
|
|
XERCES_LICENSE_FILES = LICENSE
|
2011-03-02 08:50:58 +01:00
|
|
|
XERCES_INSTALL_STAGING = YES
|
|
|
|
|
2014-11-20 17:02:08 +01:00
|
|
|
define XERCES_DISABLE_SAMPLES
|
2018-10-10 20:03:32 +02:00
|
|
|
$(SED) 's/add_subdirectory(samples)//' $(@D)/CMakeLists.txt
|
2014-11-20 17:02:08 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
XERCES_POST_PATCH_HOOKS += XERCES_DISABLE_SAMPLES
|
|
|
|
|
2018-10-11 21:04:29 +02:00
|
|
|
# Before CMake 3.10, passing THREADS_PTHREAD_ARG=OFF was needed to
|
|
|
|
# disable a try_run() call in the FindThreads tests, which caused a
|
|
|
|
# build failure when cross-compiling.
|
|
|
|
XERCES_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
|
|
|
|
|
2016-02-21 00:40:25 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
|
|
|
XERCES_DEPENDENCIES += icu
|
|
|
|
endif
|
|
|
|
|
2011-03-02 08:50:58 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
XERCES_CONF_ENV += LIBS=-liconv
|
|
|
|
XERCES_DEPENDENCIES += libiconv
|
2010-07-29 22:03:33 +02:00
|
|
|
endif
|
|
|
|
|
2011-03-02 11:56:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
2018-10-10 20:03:32 +02:00
|
|
|
XERCES_CONF_OPTS += -Dnetwork-accessor=curl
|
2011-03-02 11:56:03 +01:00
|
|
|
XERCES_DEPENDENCIES += libcurl
|
|
|
|
else
|
2018-10-10 20:03:32 +02:00
|
|
|
XERCES_CONF_OPTS += -Dnetwork-accessor=socket
|
2011-03-02 11:56:03 +01:00
|
|
|
endif
|
|
|
|
|
2018-10-06 22:13:08 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
2018-10-10 20:03:32 +02:00
|
|
|
XERCES_CONF_OPTS += -Dthreads=ON
|
2018-10-06 22:13:08 +02:00
|
|
|
else
|
2018-10-10 20:03:32 +02:00
|
|
|
XERCES_CONF_OPTS += -Dthreads=OFF
|
2018-10-06 22:13:08 +02:00
|
|
|
endif
|
|
|
|
|
2018-10-10 20:03:32 +02:00
|
|
|
$(eval $(cmake-package))
|