[packages] replace occurences of -lgcc with $(LIBGCC_S)
[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:=1
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 include $(INCLUDE_DIR)/package.mk
19
20 define Package/mrd6
21 SECTION:=ipv6
22 CATEGORY:=IPv6
23 TITLE:=IPv6 multicast routing daemon
24 URL:=http://fivebits.net/proj/mrd6
25 DEPENDS:= +uclibcxx
26 endef
27
28 define Package/mrd6/description
29 Multicast is becoming a major component in next generation networks, used
30 in several scenarios, from video broadcasting to multimedia conferencing.
31 In order to be implemented, new technology needs supporting hardware and
32 software across a set of devices and systems. MRD6 is an implementation of
33 a modular IPv6 Multicast Routing Framework for the Linux operating system
34 and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR)/src \
39 $(TARGET_CONFIGURE_OPTS) \
40 OPTIMIZE=yes \
41 SPACE_OPTIMIZE=yes \
42 FULL_STATIC=no \
43 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
44 LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -ldl -lm $(LIBGCC_S) -lc" \
45 MODULE_CXX="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 PREFIX="/usr" \
48 install
49 endef
50
51 define Package/mrd6/conffiles
52 /etc/mrd6.conf
53 endef
54
55 define Package/mrd6/install
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_CONF) ./files/mrd6.conf $(1)/etc
58 $(INSTALL_BIN) ./files/mrd6.init $(1)/etc/init.d/mrd6
59 $(INSTALL_DIR) $(1)/usr/sbin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mrd $(1)/usr/sbin/mrd6
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mrd6sh $(1)/usr/bin/mrd6sh
63 $(INSTALL_DIR) $(1)/usr/lib/mrd6
64 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mrd6/bgp.so $(1)/usr/lib/mrd6/bgp.so
65 endef
66
67 $(eval $(call BuildPackage,mrd6))