source: branches/packages_10.03.1/ipv6/mrd6/Makefile @ 27676

Last change on this file since 27676 was 27676, checked in by jow, 5 years ago

[packages_10.03.1] merge r27644

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mrd6
11PKG_VERSION:=0.9.6
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/m/mrd6/
16PKG_MD5SUM:=a59d87857654ff92426062ad5664fcd6
17
18PKG_BUILD_PARALLEL:=1
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/mrd6
24  SECTION:=ipv6
25  CATEGORY:=IPv6
26  TITLE:=IPv6 multicast routing daemon
27  URL:=http://fivebits.net/proj/mrd6
28  DEPENDS:=+libstdcpp
29endef
30
31define 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.
38endef
39
40MRD6_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
51define Build/Compile
52        $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src $(MRD6_MAKEFLAGS) all
53endef
54
55define Build/Install
56        $(MAKE) -C $(PKG_BUILD_DIR)/src $(MRD6_MAKEFLAGS) install
57endef
58
59define Package/mrd6/conffiles
60/etc/mrd6.conf
61endef
62
63define 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
73endef
74
75$(eval $(call BuildPackage,mrd6))
Note: See TracBrowser for help on using the repository browser.