fix makefile
[openwrt/svn-archive/archive.git] / net / dsl-qos-queue / 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:=dsl_qos_queue
12 PKG_VERSION:=0.9.3
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=ccbe8d28c3508c67f669fe98532533be
15
16 PKG_SOURCE_URL:=http://www.sonicspike.net/software/download/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/dsl-qos-queue
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+iptables +kmod-ipt-queue
28 TITLE:=ADSL/ATM Bandwith management
29 DESCRIPTION:=ADSL/ATM Bandwith management
30 endef
31
32 define Build/Compile
33 $(call Build/Compile/Default, \
34 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
35 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
36 install_prefix="$(PKG_INSTALL_DIR)" \
37 all)
38 endef
39
40 define Package/dsl-qos-queue/install
41 install -d -m0755 $(1)/usr/sbin
42 install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
43 install -m0755 $(PKG_BUILD_DIR)/dsl_qos_train $(1)/usr/sbin
44 install -m0755 $(PKG_BUILD_DIR)/ipt_rules $(1)/usr/sbin
45 endef
46
47 $(eval $(call BuildPackage,dsl-qos-queue))