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_MIRROR_HASH
:=66676a4c8de8c5399dfe1cfd064d140afca58e3d8187bae0a3dccdf83165d9d1
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
)
21 PKG_MAINTAINER
:=Dov Murik
<dmurik@us.ibm.com
>
23 PKG_LICENSE_FILES
:=COPYING
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/libfastjson
33 TITLE
:=A fast JSON library for C
34 URL
:=https
://github.com
/rsyslog
/libfastjson
37 define Package
/libfastjson
/description
38 libfastjson
- A fast JSON library for C
41 TARGET_CFLAGS
+= $(FPIC
)
43 define Build
/InstallDev
44 $(INSTALL_DIR
) $(1)/usr
/include
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
47 $(INSTALL_DIR
) $(1)/usr
/lib
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
51 define Package
/libfastjson
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfastjson.so
* $(1)/usr
/lib
/
56 $(eval
$(call BuildPackage
,libfastjson
))