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