2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=2012-09-13
12 PKG_RELEASE
:=$(PKG_SOURCE_VERSION
)
15 PKG_SOURCE_URL
:=git
://github.com
/ffainelli
/faifa.git
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_VERSION
:=2842afc90bd9ca08ed2a6c83c04f4015982e6007
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/faifa
/Default
25 TITLE
:=configure HomePlug
1.0/AV PLC devices
26 URL
:=http
://open-plc.org
/
29 define Package
/libfaifa
30 $(call Package
/faifa
/Default
)
34 DEPENDS
:=+libpcap
+libpthread
37 define Package
/libfaifa
/description
38 Faifa companion library.
42 $(call Package
/faifa
/Default
)
45 DEPENDS
:=+libpthread
+libpcap
+libfaifa
46 TITLE
+= (command line
)
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
56 define Package
/hpavcfg
57 $(call Package
/faifa
/Default
)
60 TITLE
:=HomePlug AV lightweight configurator
63 define Package
/hpavcfg
/description
64 Lightweight configuration tool
, only capable of setting a local device key
(NMK
)
67 TARGET_CFLAGS
+= $(FPIC
)
71 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
72 LDFLAGS
="$(TARGET_LDFLAGS)"
74 define Build
/Configure
75 (cd
$(PKG_BUILD_DIR
); .
/autogen.sh
)
76 $(call Build
/Configure
/Default
)
79 define Package
/faifa
/install
80 $(INSTALL_DIR
) $(1)/usr
/bin
81 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/faifa
$(1)/usr
/bin
/
84 define Package
/libfaifa
/install
85 $(INSTALL_DIR
) $(1)/usr
/lib
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfaifa.so
* $(1)/usr
/lib
89 define Package
/hpavcfg
/install
90 $(INSTALL_DIR
) $(1)/usr
/bin
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/hpav_cfg
$(1)/usr
/bin
94 $(eval
$(call BuildPackage
,faifa
))
95 $(eval
$(call BuildPackage
,libfaifa
))
96 $(eval
$(call BuildPackage
,hpavcfg
))