[package] faifa: update to 2012-09-10
[openwrt/svn-archive/archive.git] / net / faifa / Makefile
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
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:=faifa
11 PKG_VERSION:=2012-09-10
12 PKG_RELEASE:=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=git://github.com/ffainelli/faifa.git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=a93eb7d86f7a73537c11ef35df30d6d401a8062f
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/faifa/Default
25 TITLE:=configure HomePlug 1.0/AV PLC devices
26 URL:=http://open-plc.org/
27 endef
28
29 define Package/libfaifa
30 $(call Package/faifa/Default)
31 TITLE+= (library)
32 SECTION:=libs
33 CATEGORY:=Libraries
34 DEPENDS:=+libpcap +libpthread
35 endef
36
37 define Package/libfaifa/description
38 Faifa companion library.
39 endef
40
41 define Package/faifa
42 $(call Package/faifa/Default)
43 SECTION:=net
44 CATEGORY:=Network
45 DEPENDS:=+libpthread +libpcap +libfaifa
46 TITLE+= (command line)
47 endef
48
49 define Package/faifa/description
50 Faifa can configure any Intellon-based Power Line Communication device using
51 Intellon INT5000 and INT6000 series chips (6000 and 6300 chips). It supports all
52 Intellon-specific management and control frames as well as standard management
53 frames.
54 endef
55
56 define Package/hpavcfg
57 $(call Package/faifa/Default)
58 SECTION:=net
59 CATEGORY:=Network
60 TITLE:=HomePlug AV lightweight configurator
61 endef
62
63 define Package/hpavcfg/description
64 Lightweight configuration tool, only capable of setting a local device key (NMK)
65 endef
66
67 TARGET_CFLAGS += $(FPIC)
68
69 MAKE_FLAGS += \
70 OS=LINUX \
71 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
72 LDFLAGS="$(TARGET_LDFLAGS)"
73
74 define Build/Configure
75 (cd $(PKG_BUILD_DIR); ./autogen.sh)
76 $(call Build/Configure/Default)
77 endef
78
79 define Package/faifa/install
80 $(INSTALL_DIR) $(1)/usr/bin
81 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faifa $(1)/usr/bin/
82 endef
83
84 define Package/libfaifa/install
85 $(INSTALL_DIR) $(1)/usr/lib
86 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaifa.so* $(1)/usr/lib
87 endef
88
89 define Package/hpavcfg/install
90 $(INSTALL_DIR) $(1)/usr/bin
91 $(CP) $(PKG_INSTALL_DIR)/usr/bin/hpav_cfg $(1)/usr/bin
92 endef
93
94 $(eval $(call BuildPackage,faifa))
95 $(eval $(call BuildPackage,libfaifa))
96 $(eval $(call BuildPackage,hpavcfg))