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