79179c4e6db2b070c008048c7f2d302aa364a6ad
[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:=11
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 define Package/faifa
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpthread +libopenssl +libpcap
27 TITLE:=configure HomePlug 1.0/AV PLC devices
28 URL:=http://open-plc.org
29 endef
30
31 define Package/faifa/description
32 Faifa can configure any Intellon-based Power Line Communication
33 device using Intellon INT5000 and INT6000 series chips
34 (6000 and 6300 chips). It supports all Intellon-specific management
35 and control frames as well as standard management frames.
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42 rm -rf $(PKG_INSTALL_DIR)
43 mkdir -p $(PKG_INSTALL_DIR)
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 $(TARGET_CONFIGURE_OPTS) \
46 CFLAGS="$(TARGET_CFLAGS) -DSVN_REV=$(PKG_REV) -Iinclude/ $(TARGET_CPPFLAGS)" \
47 LDFLAGS="$(TARGET_LDFLAGS)" \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 faifa
50 endef
51
52 define Package/faifa/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(CP) $(PKG_BUILD_DIR)/faifa $(1)/usr/sbin/
55 endef
56
57 $(eval $(call BuildPackage,faifa))