databag: add package
[feed/packages.git] / libs / libfastjson / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libfastjson
11 PKG_VERSION:=1.2304.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://download.rsyslog.com/libfastjson
16 PKG_HASH:=ef30d1e57a18ec770f90056aaac77300270c6203bbe476f4181cc83a2d5dc80c
17
18 PKG_MAINTAINER:=Dov Murik <dmurik@us.ibm.com>
19 PKG_LICENSE:=MIT
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:rsyslog:libfastjson
22
23 PKG_BUILD_PARALLEL:=1
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libfastjson
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=A fast JSON library for C
32 URL:=https://github.com/rsyslog/libfastjson
33 endef
34
35 define Package/libfastjson/description
36 libfastjson - A fast JSON library for C
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
44
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
47 endef
48
49 define Package/libfastjson/install
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfastjson.so* $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,libfastjson))