[package] add schedtools (#6342)
[openwrt/svn-archive/archive.git] / utils / schedtools / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=schedtool
11 PKG_VERSION:=1.3.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://freequaos.host.sk/schedtool/
16 PKG_MD5SUM:=0d968f05d3ad7675f1f33ef1f6d0a3fb
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/schedtool
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=Scheduler control utility
24 URL:=http://freequaos.host.sk/schedtool/
25 endef
26
27 define Build/Compile
28 $(TARGET_CC) $(TARGET_CFLAGS) -c $(PKG_BUILD_DIR)/schedtool.c -o $(PKG_BUILD_DIR)/schedtool.o
29 $(TARGET_CC) $(TARGET_CFLAGS) -c $(PKG_BUILD_DIR)/error.c -o $(PKG_BUILD_DIR)/error.o
30 $(TARGET_CC) $(PKG_BUILD_DIR)/schedtool.o $(PKG_BUILD_DIR)/error.o -o $(PKG_BUILD_DIR)/schedtool
31 endef
32
33 define Package/schedtool/install
34 $(INSTALL_DIR) $(1)/usr/bin
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/schedtool $(1)/usr/bin/
36 endef
37
38 $(eval $(call BuildPackage,schedtool))