summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2017-04-21 01:05:32 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-02 22:51:59 +0200
commite810284ccb055dcab6dcf6abf41a15a77ee7888a (patch)
tree7c664aaa54415cc22199651cb8e5d65d3f81d561
parentb4da02a8192e72180cf9ceedc39fc1df19e3ab46 (diff)
downloadbuildroot-e810284ccb055dcab6dcf6abf41a15a77ee7888a.tar.gz
buildroot-e810284ccb055dcab6dcf6abf41a15a77ee7888a.zip
package/rapidjson: switch to CMake
Upcoming Kodi v18 depends on RapidJSON and detects it by using pkg-conf: https://github.com/xbmc/xbmc/blob/master/cmake/modules/FindRapidJSON.cmake#L13 Currently our package installs only the header files, but RapidJSON.pc is also needed. Luckily this can be fixed by switching to CMake which does the job, also add configure options to disable the CMake build of executables. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/rapidjson/rapidjson.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/package/rapidjson/rapidjson.mk b/package/rapidjson/rapidjson.mk
index d06f52962e..4d69bc3450 100644
--- a/package/rapidjson/rapidjson.mk
+++ b/package/rapidjson/rapidjson.mk
@@ -13,8 +13,9 @@ RAPIDJSON_LICENSE_FILES = license.txt
RAPIDJSON_INSTALL_TARGET = NO
RAPIDJSON_INSTALL_STAGING = YES
-define RAPIDJSON_INSTALL_STAGING_CMDS
- cp -dpfr $(@D)/include/* $(STAGING_DIR)/usr/include
-endef
+RAPIDJSON_CONF_OPTS = \
+ -DRAPIDJSON_BUILD_DOC=OFF \
+ -DRAPIDJSON_BUILD_EXAMPLES=OFF \
+ -DRAPIDJSON_BUILD_TESTS=OFF
-$(eval $(generic-package))
+$(eval $(cmake-package))
OpenPOWER on IntegriCloud