Skip to content

Instantly share code, notes, and snippets.

@bhorn bhorn/Makefile
Last active Sep 17, 2019

Embed
What would you like to do?
oatpp OpenWRT Makefile
#
# Author: Benedikt-Alexander Mokroß <bam@icognize.de>
#
###
### OATPP 2019-09-17
###
include $(TOPDIR)/rules.mk
PKG_NAME:=oatpp
PKG_VERSION:=0.19.8
PKG_RELEASE=3
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/oatpp/oatpp.git
PKG_SOURCE_VERSION:=baa6d93e1521f221073dd50d8d47bd4f28f0763d
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_LICENSE:=APACHE-2.0
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/oatpp
CATEGORY:=Networking
DEFAULT:=y
TITLE:=oat++
ABI_VERSION:=$(PKG_VERSION)
DEPENDS:=+libatomic +libstdcpp
endef
define Package/oatpp-test
CATEGORY:=Networking
DEFAULT:=m
TITLE:=oat++-test
ABI_VERSION:=$(PKG_VERSION)
DEPENDS:=+libatomic +oatpp +libstdcpp
endef
define Package/oatpp/description
Light, high-performance web framework. Create bleedingly-fast web-services. Organic. Pure C++. Cross-platform. Linux/Unix/Windows.
endef
define Package/oatpp-test/description
Tests for oat++
endef
CMAKE_OPTIONS= \
-DOATPP_DISABLE_POOL_ALLOCATIONS=ON
define Package/oatpp/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/oatpp-$(PKG_VERSION)/liboatpp.a $(1)/usr/lib/
endef
define Package/oatpp-test/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/lib/oatpp-$(PKG_VERSION)/liboatpp-test.a $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/test/oatppAllTests $(1)/usr/bin/
endef
$(eval $(call BuildPackage,oatpp))
$(eval $(call BuildPackage,oatpp-test))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.