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.

52 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2008-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:=yaml
  9. PKG_VERSION:=0.2.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pyyaml.org/download/libyaml/
  13. PKG_HASH:=c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:pyyaml_project:pyyaml
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libyaml
  22. SUBMENU:=Languages
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Fast YAML 1.1 parser and emitter library
  26. URL:=https://pyyaml.org/wiki/LibYAML
  27. endef
  28. TARGET_CFLAGS += $(FPIC)
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/include
  31. $(CP) $(PKG_INSTALL_DIR)/usr/include/yaml.h $(1)/usr/include/
  32. $(INSTALL_DIR) $(1)/usr/lib
  33. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyaml*.{a,so*} $(1)/usr/lib/
  34. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/yaml*.pc $(1)/usr/lib/pkgconfig/
  36. endef
  37. define Package/libyaml/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyaml*.so* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,libyaml))