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.

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