dcwifi: Add Dual Channel Wi-Fi component packages
[feed/packages.git] / net / dcwifi / dcstad / Makefile
1 #
2 # Copyright (C) 2019 EWSI
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dcstad
11 PKG_VERSION:=1.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/ewsi/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)?
16 PKG_HASH:=3b146ea22bc5480d8264c5ea269831d25993673aa90a9e82dc2dc601a111da55
17
18 PKG_MAINTAINER:=Carey Sonsino <careys@edgewaterwireless.com>
19 PKG_LICENSE:=Apache-2.0
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/dcstad
29 SECTION:=net
30 CATEGORY:=Network
31 SUBMENU:=Routing and Redirection
32 TITLE:=Dual-Channel WiFi client daemon
33 URL:=https://www.edgewaterwireless.com
34 DEPENDS:=+libdcwsocket +libdcwproto
35 endef
36
37 define Package/dcstad/description
38 Implementation of the Dual-Channel WiFi client daemon
39 endef
40
41 TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
42 TARGET_LDFLAGS += -Wl,--gc-sections
43
44 define Package/dcstad/install
45 $(INSTALL_DIR) $(1)/bin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dcstad $(1)/bin/
47 endef
48
49 $(eval $(call BuildPackage,dcstad))