2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://download.rsyslog.com
/libfastjson
16 PKG_HASH
:=ef30d1e57a18ec770f90056aaac77300270c6203bbe476f4181cc83a2d5dc80c
18 PKG_MAINTAINER
:=Dov Murik
<dmurik@us.ibm.com
>
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:rsyslog
:libfastjson
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libfastjson
31 TITLE
:=A fast JSON library for C
32 URL
:=https
://github.com
/rsyslog
/libfastjson
35 define Package
/libfastjson
/description
36 libfastjson
- A fast JSON library for C
39 TARGET_CFLAGS
+= $(FPIC
)
41 define Build
/InstallDev
42 $(INSTALL_DIR
) $(1)/usr
/include
43 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
45 $(INSTALL_DIR
) $(1)/usr
/lib
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
49 define Package
/libfastjson
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfastjson.so
* $(1)/usr
/lib
/
54 $(eval
$(call BuildPackage
,libfastjson
))