#
# Copyright (C) 2012-2014 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:=rtty
#PKG_VERSION:=8.1.0
PKG_RELEASE:=3

PKG_SOURCE:=$(PKG_NAME).tar.gz
#PKG_SOURCE_URL:=http://www.libimobiledevice.org/downloads
#PKG_MD5SUM:=4b33cc78e479e0f9a6745f9b9a8b60a8
$(warning "enter rtty makefile")

CMAKE_INSTALL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
include 

define Package/rtty
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=rtty communicaiton daemon
  DEPENDS:=+libev +libcrypto +libopenssl 
endef

define Package/rtty/description
  This daemon is in charge of terminal function by using rtty communicaiton.
endef

TARGET_CFLAGS += $(FPIC)
TARGET_LDFLAGS += -lcrypto -lssl

define Package/rtty/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(CP) $(PKG_INSTALL_DIR)/usr/bin/rtty $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,rtty))
