[package] ruby: fix path to libiconv
[openwrt/svn-archive/archive.git] / ipv6 / mrd6 / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=2
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 endef
29
30 define Package/mrd6/description
31 Multicast is becoming a major component in next generation networks, used
32 in several scenarios, from video broadcasting to multimedia conferencing.
33 In order to be implemented, new technology needs supporting hardware and
34 software across a set of devices and systems. MRD6 is an implementation of
35 a modular IPv6 Multicast Routing Framework for the Linux operating system
36 and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.
37 endef
38
39 MRD6_MAKEFLAGS:= \
40 $(TARGET_CONFIGURE_OPTS) \
41 OPTIMIZE=yes \
42 SPACE_OPTIMIZE=yes \
43 FULL_STATIC=no \
44 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
45 LDFLAGS="$(TARGET_LDFLAGS) -ldl -lm" \
46 MODULE_CXX="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 PREFIX="/usr"
49
50 define Build/Compile
51 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src $(MRD6_MAKEFLAGS) all
52 endef
53
54 define Build/Install
55 $(MAKE) -C $(PKG_BUILD_DIR)/src $(MRD6_MAKEFLAGS) install
56 endef
57
58 define Package/mrd6/conffiles
59 /etc/mrd6.conf
60 endef
61
62 define Package/mrd6/install
63 $(INSTALL_DIR) $(1)/etc/init.d
64 $(INSTALL_CONF) ./files/mrd6.conf $(1)/etc
65 $(INSTALL_BIN) ./files/mrd6.init $(1)/etc/init.d/mrd6
66 $(INSTALL_DIR) $(1)/usr/sbin
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mrd $(1)/usr/sbin/mrd6
68 $(INSTALL_DIR) $(1)/usr/bin
69 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mrd6sh $(1)/usr/bin/mrd6sh
70 $(INSTALL_DIR) $(1)/usr/lib/mrd6
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mrd6/bgp.so $(1)/usr/lib/mrd6/bgp.so
72 endef
73
74 $(eval $(call BuildPackage,mrd6))