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.

45 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libmstch
  3. PKG_VERSION:=1.0.2
  4. PKG_RELEASE:=1
  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_LICENSE:=MIT
  11. PKG_LICENSE_FILES:=LICENSE
  12. HOST_BUILD_DEPENDS:=boost boost/host
  13. PKG_BUILD_DEPENDS:=boost
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/host-build.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
  18. PKG_BUILD_PARALLEL:=1
  19. CMAKE_INSTALL:=1
  20. CMAKE_OPTIONS:= \
  21. -DCMAKE_POSITION_INDEPENDENT_CODE=True
  22. define Package/libmstch
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Complete implementation of {{mustache}} templates using modern C++
  26. DEPENDS:=+boost +boost-container
  27. URL:=https://github.com/no1msd/mstch
  28. MAINTAINER:=Amol Bhave <ambhave@fb.com>
  29. endef
  30. define Package/libmstch/description
  31. mstch is a complete implementation of {{mustache}} templates using modern C++
  32. endef
  33. $(eval $(call BuildPackage,libmstch))
  34. $(eval $(call HostBuild))