fix lirc compile and move its build dir to the right place
[openwrt/svn-archive/archive.git] / net / igmpproxy / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=igmpproxy
12 PKG_VERSION:=0.1-beta2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/igmpproxy
17 PKG_MD5SUM:=2a5a59480f44d4b14077a6b5319e9940
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/igmpproxy
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=Multicast Routing Daemon
27 URL:=http://sourceforge.net/projects/igmpproxy
28 endef
29
30 define Package/igmpproxy/description
31 IGMPproxy is a simple dynamic Multicast Routing Daemon using
32 only IGMP signalling (Internet Group Management Protocol).
33 endef
34
35 define Package/igmpproxy/conffiles
36 /etc/igmpproxy.conf
37 endef
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR)/src \
41 CC="$(TARGET_CC)" \
42 CFLAGS="$(TARGET_CFLAGS)"
43 endef
44
45 define Package/igmpproxy/install
46 $(INSTALL_DIR) $(1)/etc
47 $(INSTALL_CONF) ./files/igmpproxy.conf $(1)/etc/
48 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/igmpproxy $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,igmpproxy))