2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=ed68ea9b43d9fba0972cb017a24940a1
16 PKG_SOURCE_URL
:=@GNU
/screen
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
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
/
35 define Build
/Configure
36 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
37 $(TARGET_CONFIGURE_OPTS
) \
38 $(foreach flag
,rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime
,ac_cv_func_
$(flag
)=yes
) \
39 CFLAGS
="$(TARGET_CFLAGS)" \
40 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
41 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
43 --target
=$(GNU_TARGET_NAME
) \
44 --host
=$(GNU_TARGET_NAME
) \
45 --build
=$(GNU_HOST_NAME
) \
51 --datadir=/usr
/share \
52 --includedir=/usr
/include \
53 --infodir=/usr
/share
/info \
55 --libexecdir
=/usr
/lib \
56 --localstatedir
=/var \
57 --mandir=/usr
/share
/man \
60 $(DISABLE_LARGEFILE
) \
68 $(MAKE
) -C
$(PKG_BUILD_DIR
)
71 define Package
/screen
/install
72 install -d
-m0755
$(1)/usr
/sbin
73 install -m0755
$(PKG_BUILD_DIR
)/screen
$(1)/usr
/sbin
/
76 $(eval
$(call BuildPackage
,screen
))