You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.3 KiB

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