packages/ipv6/mrd6/Makefile
nico 3e679367f0 [packages] replace occurences of -lgcc with $(LIBGCC_S)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22122 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-11 00:37:05 +00:00

68 lines
2.1 KiB
Makefile

#
# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mrd6
PKG_VERSION:=0.9.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/m/mrd6/
PKG_MD5SUM:=a59d87857654ff92426062ad5664fcd6
include $(INCLUDE_DIR)/package.mk
define Package/mrd6
SECTION:=ipv6
CATEGORY:=IPv6
TITLE:=IPv6 multicast routing daemon
URL:=http://fivebits.net/proj/mrd6
DEPENDS:= +uclibcxx
endef
define Package/mrd6/description
Multicast is becoming a major component in next generation networks, used
in several scenarios, from video broadcasting to multimedia conferencing.
In order to be implemented, new technology needs supporting hardware and
software across a set of devices and systems. MRD6 is an implementation of
a modular IPv6 Multicast Routing Framework for the Linux operating system
and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src \
$(TARGET_CONFIGURE_OPTS) \
OPTIMIZE=yes \
SPACE_OPTIMIZE=yes \
FULL_STATIC=no \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -ldl -lm $(LIBGCC_S) -lc" \
MODULE_CXX="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
PREFIX="/usr" \
install
endef
define Package/mrd6/conffiles
/etc/mrd6.conf
endef
define Package/mrd6/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_CONF) ./files/mrd6.conf $(1)/etc
$(INSTALL_BIN) ./files/mrd6.init $(1)/etc/init.d/mrd6
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mrd $(1)/usr/sbin/mrd6
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mrd6sh $(1)/usr/bin/mrd6sh
$(INSTALL_DIR) $(1)/usr/lib/mrd6
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mrd6/bgp.so $(1)/usr/lib/mrd6/bgp.so
endef
$(eval $(call BuildPackage,mrd6))