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