# # Copyright (C) 2006-2015 OpenWrt.org # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice (including the next # paragraph) shall be included in all copies or substantial portions of the # Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. # # --- # # The above is the version of the MIT "Expat" License used by X.org: # # http://cgit.freedesktop.org/xorg/xserver/tree/COPYING # include $(TOPDIR)/rules.mk include $(BUILD_DIR)/package.mk #include ../sunxifb.mk PKG_NAME:=xtell_server PKG_VERSION:=1.0.0 PKG_RELEASE:=1 PKG_BUILD_DIR := $(COMPILE_DIR)/$(PKG_NAME) define Package/$(PKG_NAME) SECTION:=xtell CATEGORY:=xtell DEPENDS:= TITLE:=xtell server 1.0.0 MAINTAINER:=edison endef define Package/$(PKG_NAME)/config endef define Package/$(PKG_NAME)/Default endef define Package/$(PKG_NAME)/description xtell server v1.0.0 endef define Build/Prepare $(INSTALL_DIR) $(PKG_BUILD_DIR)/ $(CP) ./src $(PKG_BUILD_DIR)/ # $(CP) ../../../../take_photo $(PKG_BUILD_DIR)/src endef define Build/Configure endef TARGET_CFLAGS+=-I$(PKG_BUILD_DIR)/src define Build/Compile @echo "====================================================================" $(MAKE) -C $(PKG_BUILD_DIR)/src\ ARCH="$(TARGET_ARCH)" \ AR="$(TARGET_AR)" \ CC="$(TARGET_CC)" \ CXX="$(TARGET_CXX)" \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ all @echo PATH=$(PATH) @echo STAGING_DIR=$(STAGING_DIR) endef #define Build/InstallDev # $(INSTALL_DIR) $(1)/usr/lib #endef define Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/ endef $(eval $(call BuildPackage,$(PKG_NAME)))