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
12 PKG_VERSION
:=r
$(PKG_REV
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://svn.open-plc.org
/trunk
/
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=$(PKG_REV
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/faifa
/Default
26 TITLE
:=configure HomePlug
1.0/AV PLC devices
27 URL
:=http
://open-plc.org
/
30 define Package
/libfaifa
31 $(call Package
/faifa
/Default
)
37 define Package
/libfaifa
/description
38 Faifa companion library.
42 $(call Package
/faifa
/Default
)
45 DEPENDS
:=+libpthread
+libopenssl
+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 TARGET_CFLAGS
+= $(FPIC
)
61 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
62 LDFLAGS
="$(TARGET_LDFLAGS)"
64 define Build
/Configure
65 (cd
$(PKG_BUILD_DIR
); .
/autogen.sh
)
66 $(call Build
/Configure
/Default
)
69 define Package
/faifa
/install
70 $(INSTALL_DIR
) $(1)/usr
/bin
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/faifa
$(1)/usr
/bin
/
74 define Package
/libfaifa
/install
75 $(INSTALL_DIR
) $(1)/usr
/lib
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfaifa.so
* $(1)/usr
/lib
79 $(eval
$(call BuildPackage
,faifa
))
80 $(eval
$(call BuildPackage
,libfaifa
))