buildrootschalter/package/rapidjson/rapidjson.mk
Fabio Porcedda ac9621d995 unzip: Use the "-q" option to silence unzipping of source files
Add and use the "UNZIP" variable instead of calling directly unzip
because the variable contains the "-q" option to silence "unzip" so it
doesn't show the list of files extracted just like when tar files are
being unpacked.

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-11-02 22:48:50 +01:00

31 lines
975 B
Makefile

################################################################################
#
# rapidjson
#
################################################################################
RAPIDJSON_VERSION = 0.11
RAPIDJSON_SOURCE = rapidjson-$(RAPIDJSON_VERSION).zip
RAPIDJSON_SITE = http://rapidjson.googlecode.com/files
RAPIDJSON_LICENSE = MIT
RAPIDJSON_LICENSE_FILES = license.txt
RAPIDJSON_INSTALL_TARGET = NO
RAPIDJSON_INSTALL_STAGING = YES
define RAPIDJSON_EXTRACT_CMDS
$(UNZIP) -d $(@D) $(DL_DIR)/$(RAPIDJSON_SOURCE)
mv $(@D)/rapidjson/* $(@D)
$(RM) -r $(@D)/rapidjson
endef
define RAPIDJSON_INSTALL_STAGING_CMDS
$(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson
$(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson/internal
$(INSTALL) -m 0644 $(@D)/include/rapidjson/*.h \
$(STAGING_DIR)/usr/include/rapidjson
$(INSTALL) -m 0644 $(@D)/include/rapidjson/internal/*.h \
$(STAGING_DIR)/usr/include/rapidjson/internal
endef
$(eval $(generic-package))