nuke $Id$ in /packages as well
[packages.git] / ipv6 / mrd6 / Makefile
1 #
2 # Copyright (C) 2006,2007 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:=mrd6
11 PKG_VERSION:=0.9.5
12 PKG_REVISION:=3
13 PKG_RELEASE:=$(PKG_REVISION).1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REVISION).tar.gz
16 PKG_SOURCE_URL:=http://fivebits.net/files/mrd6/ \
17         http://hng.av.it.pt/mrd6/download/
18 PKG_MD5SUM:=361322198dafcc5ffab5e8e23197012b
19
20 PKG_BUILD_DEPENDS:=libnotimpl
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/mrd6
25   SECTION:=ipv6
26   CATEGORY:=IPv6
27   TITLE:=IPv6 multicast routing daemon
28   URL:=http://artemis.av.it.pt/mrd6/
29   DEPENDS:= +uclibcxx
30 endef
31
32 define Package/mrd6/description
33  Multicast is becoming a major component in next generation networks, used 
34  in several scenarios, from video broadcasting to multimedia conferencing. 
35  In order to be implemented, new technology needs supporting hardware and 
36  software across a set of devices and systems. MRD6 is an implementation of 
37  a modular IPv6 Multicast Routing Framework for the Linux operating system 
38  and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.
39 endef
40
41 define Build/Compile    
42         $(MAKE) -C $(PKG_BUILD_DIR)/src \
43                 $(TARGET_CONFIGURE_OPTS) \
44                 OPTIMIZE=yes \
45                 SPACE_OPTIMIZE=yes \
46                 FULL_STATIC=no \
47                 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
48                 LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -ldl -lgcc -lm -lnotimpl" \
49                 MODULE_CXX="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
50                 DESTDIR="$(PKG_INSTALL_DIR)" \
51                 PREFIX="/usr" \
52                 install
53 endef
54
55 define Package/mrd6/conffiles
56 /etc/mrd6.conf
57 endef
58
59 define Package/mrd6/install
60         $(INSTALL_DIR) $(1)/etc/init.d
61         $(INSTALL_DATA) files/mrd6.conf $(1)/etc
62         $(INSTALL_BIN) files/mrd6.init $(1)/etc/init.d/mrd6
63         $(INSTALL_DIR) $(1)/usr/sbin
64         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mrd $(1)/usr/sbin/mrd6
65         $(INSTALL_DIR) $(1)/usr/bin
66         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mrd6sh $(1)/usr/bin/mrd6sh
67         $(INSTALL_DIR) $(1)/usr/lib/mrd6
68         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mrd6/bgp.so $(1)/usr/lib/mrd6/bgp.so
69 endef
70
71 $(eval $(call BuildPackage,mrd6))