summaryrefslogtreecommitdiffstats
path: root/package/rapidjson/rapidjson.mk
blob: cc260e9863705a0b385fca43a2f21b457877db77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#############################################################
#
# 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

define RAPIDJSON_UNINSTALL_STAGING_CMDS
	$(RM) -r $(STAGING_DIR)/usr/include/rapidjson
endef

$(eval $(generic-package))