2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
14 PKG_SOURCE_URL
:=http
://www.cschill.de
/smcroute
15 PKG_MD5SUM
:=2b50e7166606ec90e09682399e69c4a6
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/smcroute
22 SUBMENU
:=Routing and Redirection
23 TITLE
:=Static multicast routing daemon
24 URL
:=http
://www.cschill.de
/smcroute
/
27 define Package
/smcroute
/description
28 SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
32 ifeq ($(HOST_OS
),FreeBSD
)
33 TARGET_CFLAGS
+= -fno-builtin-log
34 TARGET_LDFLAGS
+= -fno-builtin-log
38 $(MAKE
) CC
="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" -C
$(PKG_BUILD_DIR
)/src
all
41 define Package
/smcroute
/install
42 $(INSTALL_DIR
) $(1)/usr
/sbin
43 $(INSTALL_DIR
) $(1)/usr
/bin
44 $(INSTALL_DIR
) $(1)/etc
/init.d
/
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/smcroute
$(1)/usr
/sbin
/
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/mcsender
$(1)/usr
/bin
/
47 $(INSTALL_BIN
) .
/files
/smcroute.init
$(1)/etc
/init.d
/smcroute
50 $(eval
$(call BuildPackage
,smcroute
))