#
# Copyright (C) 2015 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:=ipcamera
PKG_VERSION:=1.0.1
PKG_RELEASE:=1
PKG_MAINTAINER:=Andy Gelme
PKG_LICENSE:=AGPLv3

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/ipcamera
	ECTION:=DYIOT
	CATEGORY:=DYIOT Software
	TITLE:=$(PKG_NAME)
endef

define Package/ipcamera/description
  ipcamera support python
endef

TARGET_CFLAGS += $(FPIC) -DUSE_GLOBALS

# add make variable overrides here
MAKE_FLAGS += -DUSE_GLOBALS

define Build/Prepare
endef

define Build/Configure
endef

define Build/Compile
endef

define Build/Install
endef

define Package/ipcamera/install
	$(INSTALL_DIR) $(1)/app/ipcamera/
	$(INSTALL_DIR) $(1)/etc/init.d
	$(INSTALL_BIN) ./files/ipcamera.initd $(1)/etc/init.d/ipcamera
	$(INSTALL_BIN) ./files/*.py $(1)/app/ipcamera/
endef

$(eval $(call BuildPackage,ipcamera))
