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
)
35 DEPENDS
:=+libopenssl
+libpcap
+libpthread
38 define Package
/libfaifa
/description
39 Faifa companion library.
43 $(call Package
/faifa
/Default
)
46 DEPENDS
:=+libpthread
+libopenssl
+libpcap
+libfaifa
47 TITLE
+= (command line
)
50 define Package
/faifa
/description
51 Faifa can configure any Intellon-based Power Line Communication device using
52 Intellon INT5000 and INT6000 series chips
(6000 and
6300 chips
). It supports
all
53 Intellon-specific management and control frames
as well
as standard management
57 TARGET_CFLAGS
+= $(FPIC
)
62 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
63 LDFLAGS
="$(TARGET_LDFLAGS)"
65 define Build
/Configure
66 (cd
$(PKG_BUILD_DIR
); .
/autogen.sh
)
67 $(call Build
/Configure
/Default
)
70 define Package
/faifa
/install
71 $(INSTALL_DIR
) $(1)/usr
/bin
72 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/faifa
$(1)/usr
/bin
/
75 define Package
/libfaifa
/install
76 $(INSTALL_DIR
) $(1)/usr
/lib
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfaifa.so
* $(1)/usr
/lib
80 $(eval
$(call BuildPackage
,faifa
))
81 $(eval
$(call BuildPackage
,libfaifa
))