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 TITLE
:=Static multicast routing daemon
23 URL
:=http
://www.cschill.de
/smcroute
/
26 define Package
/smcroute
/description
27 SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
31 ifeq ($(HOST_OS
),FreeBSD
)
32 TARGET_CFLAGS
+= -fno-builtin-log
33 TARGET_LDFLAGS
+= -fno-builtin-log
37 $(MAKE
) CC
="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" -C
$(PKG_BUILD_DIR
)/src
all
40 define Package
/smcroute
/install
41 $(INSTALL_DIR
) $(1)/usr
/sbin
42 $(INSTALL_DIR
) $(1)/usr
/bin
43 $(INSTALL_DIR
) $(1)/etc
/init.d
/
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/smcroute
$(1)/usr
/sbin
/
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/mcsender
$(1)/usr
/bin
/
46 $(INSTALL_BIN
) .
/files
/smcroute.init
$(1)/etc
/init.d
/smcroute
49 $(eval
$(call BuildPackage
,smcroute
))