Merge pull request #4853 from StevenHessing/noddos
[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:=0.99.2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_MIRROR_HASH:=66676a4c8de8c5399dfe1cfd064d140afca58e3d8187bae0a3dccdf83165d9d1
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_URL:=https://github.com/rsyslog/libfastjson.git
19 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
20
21 PKG_MAINTAINER:=Dov Murik <dmurik@us.ibm.com>
22 PKG_LICENSE:=MIT
23 PKG_LICENSE_FILES:=COPYING
24
25 PKG_FIXUP:=autoreconf
26 PKG_INSTALL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/libfastjson
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=A fast JSON library for C
34 URL:=https://github.com/rsyslog/libfastjson
35 endef
36
37 define Package/libfastjson/description
38 libfastjson - A fast JSON library for C
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/include
45 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
46
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
49 endef
50
51 define Package/libfastjson/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfastjson.so* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libfastjson))