fix asterisk 1.6.x compile on powerpc
[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 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=faifa
12 PKG_REV:=11
13 PKG_VERSION:=r$(PKG_REV)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=https://svn.open-plc.org/trunk/
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20 PKG_SOURCE_PROTO:=svn
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/faifa
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libpthread +libopenssl +libpcap
28 TITLE:=configure HomePlug 1.0/AV PLC devices
29 URL:=http://open-plc.org
30 endef
31
32 define Package/faifa/description
33 Faifa can configure any Intellon-based Power Line Communication
34 device using Intellon INT5000 and INT6000 series chips
35 (6000 and 6300 chips). It supports all Intellon-specific management
36 and control frames as well as standard management frames.
37 endef
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
43 rm -rf $(PKG_INSTALL_DIR)
44 mkdir -p $(PKG_INSTALL_DIR)
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 $(TARGET_CONFIGURE_OPTS) \
47 CFLAGS="$(TARGET_CFLAGS) -DSVN_REV=$(PKG_REV) -Iinclude/ -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
48 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 faifa
51 endef
52
53 define Package/faifa/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(CP) $(PKG_BUILD_DIR)/faifa $(1)/usr/sbin/
56 endef
57
58 $(eval $(call BuildPackage,faifa))