use Build/Configure/Default macro, Makefile cleanup
[openwrt/svn-archive/archive.git] / utils / screen / 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:=screen
12 PKG_VERSION:=4.0.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/screen
17 PKG_MD5SUM:=ed68ea9b43d9fba0972cb017a24940a1
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/screen
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=+libncurses
29 TITLE:=Full-screen terminal window manager
30 DESCRIPTION:=\
31 Screen is a full-screen window manager that multiplexes a physical\\\
32 terminal between several processes, typically interactive shells.
33 URL:=http://www.gnu.org/software/screen/
34 endef
35
36 # uses GNU configure
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)
40 endef
41
42 define Package/screen/install
43 install -d -m0755 $(1)/usr/sbin
44 install -m0755 $(PKG_BUILD_DIR)/screen $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,screen))