From f27e903d2fef66e81975f4dfe69a4b04a0286558 Mon Sep 17 00:00:00 2001 From: Amol Bhave Date: Mon, 24 Sep 2018 12:04:28 -0700 Subject: [PATCH] libmstch: add mstch library mstch is an implementation of the the mustache templates using C++. This package will build mstch static library that can be used by other packages. Signed-off-by: Amol Bhave --- libs/libmstch/Makefile | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 libs/libmstch/Makefile diff --git a/libs/libmstch/Makefile b/libs/libmstch/Makefile new file mode 100644 index 0000000000..a5d128552c --- /dev/null +++ b/libs/libmstch/Makefile @@ -0,0 +1,45 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=libmstch +PKG_VERSION:=1.0.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/no1msd/mstch/tar.gz/$(PKG_VERSION)? +PKG_HASH:=811ed61400d4e9d4f9ae0f7679a2ffd590f0b3c06b16f2798e1f89ab917cba6c +PKG_BUILD_DIR:=$(BUILD_DIR)/mstch-$(PKG_VERSION) +HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/mstch-$(PKG_VERSION) + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +HOST_BUILD_DEPENDS:=boost boost/host + +PKG_BUILD_DEPENDS:=boost + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/cmake.mk + +HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST) + +PKG_BUILD_PARALLEL:=1 +CMAKE_INSTALL:=1 +CMAKE_OPTIONS:= \ + -DCMAKE_POSITION_INDEPENDENT_CODE=True + +define Package/libmstch + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Complete implementation of {{mustache}} templates using modern C++ + DEPENDS:=+boost +boost-container + URL:=https://github.com/no1msd/mstch + MAINTAINER:=Amol Bhave +endef + +define Package/libmstch/description + mstch is a complete implementation of {{mustache}} templates using modern C++ +endef + +$(eval $(call BuildPackage,libmstch)) +$(eval $(call HostBuild)) -- 2.30.2