source: packages/net/faifa/Makefile @ 33133

Last change on this file since 33133 was 33133, checked in by florian, 4 years ago

[package] faifa: update to 2012-08-11

Contains minor hpav_cfg fixes

File size: 2.3 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=faifa
11PKG_VERSION:=2012-08-11
12PKG_RELEASE:=$(PKG_SOURCE_VERSION)
13
14PKG_SOURCE_PROTO:=git
15PKG_SOURCE_URL:=git://github.com/ffainelli/faifa.git
16PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17PKG_SOURCE_VERSION:=5705a7403b34c24e4852edf1909274c88fb75398
18PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19
20PKG_INSTALL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/faifa/Default
25  TITLE:=configure HomePlug 1.0/AV PLC devices
26  URL:=http://open-plc.org/
27endef
28
29define Package/libfaifa
30  $(call Package/faifa/Default)
31  TITLE+= (library)
32  SECTION:=libs
33  CATEGORY:=Libraries
34  DEPENDS:=+libpcap +libpthread
35endef
36
37define Package/libfaifa/description
38  Faifa companion library.
39endef
40
41define Package/faifa
42  $(call Package/faifa/Default)
43  SECTION:=net
44  CATEGORY:=Network
45  DEPENDS:=+libpthread +libpcap +libfaifa
46  TITLE+= (command line)
47endef
48
49define 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.
54endef
55
56define Package/hpavcfg
57  $(call Package/faifa/Default)
58  SECTION:=net
59  CATEGORY:=Network
60  TITLE:=HomePlug AV lightweight configurator
61endef
62
63define Package/hpavcfg/description
64   Lightweight configuration tool, only capable of setting a local device key (NMK)
65endef
66
67TARGET_CFLAGS += $(FPIC)
68
69MAKE_FLAGS += \
70        OS=LINUX \
71        CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
72        LDFLAGS="$(TARGET_LDFLAGS)"
73
74define Build/Configure
75        (cd $(PKG_BUILD_DIR); ./autogen.sh)
76        $(call Build/Configure/Default)
77endef
78
79define Package/faifa/install
80        $(INSTALL_DIR) $(1)/usr/bin
81        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faifa $(1)/usr/bin/
82endef
83
84define Package/libfaifa/install
85        $(INSTALL_DIR) $(1)/usr/lib
86        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaifa.so* $(1)/usr/lib
87endef
88
89define Package/hpavcfg/install
90        $(INSTALL_DIR) $(1)/usr/bin
91        $(CP) $(PKG_INSTALL_DIR)/usr/bin/hpav_cfg $(1)/usr/bin
92endef
93
94$(eval $(call BuildPackage,faifa))
95$(eval $(call BuildPackage,libfaifa))
96$(eval $(call BuildPackage,hpavcfg))
Note: See TracBrowser for help on using the repository browser.