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
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_URL
:=https
://github.com
/rsyslog
/libfastjson.git
18 PKG_SOURCE_VERSION
:=v
$(PKG_VERSION
)
20 PKG_MAINTAINER
:=Dov Murik
<dmurik@us.ibm.com
>
22 PKG_LICENSE_FILES
:=COPYING
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/libfastjson
32 TITLE
:=A fast JSON library for C
33 URL
:=https
://github.com
/rsyslog
/libfastjson
36 define Package
/libfastjson
/description
37 libfastjson
- A fast JSON library for C
40 TARGET_CFLAGS
+= $(FPIC
)
42 define Build
/InstallDev
43 $(INSTALL_DIR
) $(1)/usr
/include
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
46 $(INSTALL_DIR
) $(1)/usr
/lib
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
50 define Package
/libfastjson
/install
51 $(INSTALL_DIR
) $(1)/usr
/lib
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfastjson.so
* $(1)/usr
/lib
/
55 $(eval
$(call BuildPackage
,libfastjson
))