0c84e7ccfe935f9e55b2566b07db74702c1b2cee
[openwrt/svn-archive/archive.git] / net / faifa / Makefile
1 #
2 # Copyright (C) 2009 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:=50
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 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC)
24
25 define Package/faifa
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpthread +libopenssl +libpcap
29 TITLE:=configure HomePlug 1.0/AV PLC devices
30 URL:=http://open-plc.org
31 endef
32
33 define Package/faifa/description
34 Faifa can configure any Intellon-based Power Line Communication
35 device using Intellon INT5000 and INT6000 series chips
36 (6000 and 6300 chips). It supports all Intellon-specific management
37 and control frames as well as standard management frames.
38 endef
39
40 define Build/Configure
41 (cd $(PKG_BUILD_DIR); ./autogen.sh)
42 $(call Build/Configure/Default)
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 $(TARGET_CONFIGURE_OPTS) \
48 CFLAGS="$(TARGET_CFLAGS) -DSVN_REV=$(PKG_REV) $(TARGET_CPPFLAGS)" \
49 LDFLAGS="$(TARGET_LDFLAGS)" \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 faifa
52 endef
53
54 define Package/faifa/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(CP) $(PKG_BUILD_DIR)/faifa $(1)/usr/sbin/
57 endef
58
59 $(eval $(call BuildPackage,faifa))