[packages] faifa: libfaifa depends on libopenssl, libpcap and libpthread
[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_REV:=82
12 PKG_VERSION:=r$(PKG_REV)
13 PKG_RELEASE:=1
14
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)
19 PKG_SOURCE_PROTO:=svn
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/faifa/Default
26 TITLE:=configure HomePlug 1.0/AV PLC devices
27 URL:=http://open-plc.org/
28 endef
29
30 define Package/libfaifa
31 $(call Package/faifa/Default)
32 TITLE+= (library)
33 SECTION:=libs
34 CATEGORY:=Libraries
35 DEPENDS:=+libopenssl +libpcap +libpthread
36 endef
37
38 define Package/libfaifa/description
39 Faifa companion library.
40 endef
41
42 define Package/faifa
43 $(call Package/faifa/Default)
44 SECTION:=net
45 CATEGORY:=Network
46 DEPENDS:=+libpthread +libopenssl +libpcap +libfaifa
47 TITLE+= (command line)
48 endef
49
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
54 frames.
55 endef
56
57 TARGET_CFLAGS += $(FPIC)
58
59 MAKE_FLAGS += \
60 OS=LINUX \
61 SVN_REV=$(PKG_REV) \
62 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
63 LDFLAGS="$(TARGET_LDFLAGS)"
64
65 define Build/Configure
66 (cd $(PKG_BUILD_DIR); ./autogen.sh)
67 $(call Build/Configure/Default)
68 endef
69
70 define Package/faifa/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faifa $(1)/usr/bin/
73 endef
74
75 define Package/libfaifa/install
76 $(INSTALL_DIR) $(1)/usr/lib
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaifa.so* $(1)/usr/lib
78 endef
79
80 $(eval $(call BuildPackage,faifa))
81 $(eval $(call BuildPackage,libfaifa))