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.

41 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libmstch
  3. PKG_VERSION:=1.0.2
  4. PKG_RELEASE:=2
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/no1msd/mstch/tar.gz/$(PKG_VERSION)?
  7. PKG_HASH:=811ed61400d4e9d4f9ae0f7679a2ffd590f0b3c06b16f2798e1f89ab917cba6c
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/mstch-$(PKG_VERSION)
  9. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/mstch-$(PKG_VERSION)
  10. PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=LICENSE
  13. HOST_BUILD_DEPENDS:=boost/host
  14. PKG_BUILD_PARALLEL:=1
  15. CMAKE_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/host-build.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/libmstch
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Complete implementation of {{mustache}} templates using modern C++
  23. DEPENDS:=+boost +boost-container
  24. URL:=https://github.com/no1msd/mstch
  25. endef
  26. define Package/libmstch/description
  27. mstch is a complete implementation of {{mustache}} templates using modern C++
  28. endef
  29. CMAKE_OPTIONS += \
  30. -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE
  31. $(eval $(call BuildPackage,libmstch))
  32. $(eval $(call HostBuild))