# # Copyright (C) 2006-2018 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=sharedstate #PKG_SOURCE_VERSION:=dc438f9ee005f9ad75d509bdb4dc2f22af99a579 PKG_VERSION:=2015-01-12-$(PKG_SOURCE_VERSION) PKG_RELEASE:=2 #PKG_SOURCE_PROTO:=git #PKG_SOURCE_URL:=https://github.com/javierajorge/epollcoroutinedoctest.git PKG_MAINTAINER:=Markus Stenberg PKG_LICENSE:=GPL-2.0 #PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 #PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST) # Source settings (i.e. where to find the source codes) # This is a custom variable, used below # disable git package source and enable Build/Prepare line 56 SOURCE_DIR:=/home/jjorge/Desktop/epollcoroutinedoctest include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk include $(INCLUDE_DIR)/host-build.mk # Package definition; instructs on how and where our package will appear in the overall configuration menu ('make menuconfig') define Package/sharedstate SECTION:=examples CATEGORY:=Examples TITLE:=sharedstate! DEPENDS:=+libstdcpp endef define Package/sharedstate/description no description endef # Otherwise OpenWrt's CPPFLAGS are ignored TARGET_CFLAGS += $(TARGET_CPPFLAGS) CMAKE_OPTIONS += \ -DCMAKE_VERBOSE_MAKEFILE=TRUE \ -DENABLE_SHARED=YES \ -DENABLE_STATIC=NO \ -DENABLE_TESTS=NO # Package preparation instructions; create the build directory and copy the source code. # The last command is necessary to ensure our preparation instructions remain compatible with the patching system. # only used in conjuntion with SOURCE_DIR line 26 define Build/Prepare mkdir -p $(PKG_BUILD_DIR) cp $(SOURCE_DIR)/* $(PKG_BUILD_DIR) -R $(Build/Patch) endef define Package/sharedstate/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/main $(1)/usr/bin/sharedstate endef $(eval $(call BuildPackage,sharedstate))