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 PKG_MD5SUM:=ed68ea9b43d9fba0972cb017a24940a1
15
16 PKG_SOURCE_URL:=@GNU/screen
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
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:=Screen is a full-screen window manager that multiplexes a physical\\\
31 terminal between several processes, typically interactive shells.\\\
32 URL:=http://www.gnu.org/software/screen/
33 endef
34
35 define Build/Configure
36 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
37 $(TARGET_CONFIGURE_OPTS) \
38 CFLAGS="$(TARGET_CFLAGS)" \
39 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
40 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
41 ./configure \
42 --target=$(GNU_TARGET_NAME) \
43 --host=$(GNU_TARGET_NAME) \
44 --build=$(GNU_HOST_NAME) \
45 --program-prefix="" \
46 --program-suffix="" \
47 --prefix=/usr \
48 --exec-prefix=/usr \
49 --bindir=/usr/bin \
50 --datadir=/usr/share \
51 --includedir=/usr/include \
52 --infodir=/usr/share/info \
53 --libdir=/usr/lib \
54 --libexecdir=/usr/lib \
55 --localstatedir=/var \
56 --mandir=/usr/share/man \
57 --sbindir=/usr/sbin \
58 --sysconfdir=/etc \
59 $(DISABLE_LARGEFILE) \
60 $(DISABLE_NLS) \
61 --enable-shared \
62 --disable-static \
63 );
64 endef
65
66 define Build/Compile
67 $(MAKE) -C $(PKG_BUILD_DIR)
68 endef
69
70 define Package/screen/install
71 install -d -m0755 $(1)/usr/sbin
72 install -m0755 $(PKG_BUILD_DIR)/screen $(1)/usr/sbin/
73 endef
74
75 $(eval $(call BuildPackage,screen))