summaryrefslogtreecommitdiff
path: root/package/screen/Makefile
blob: 1f5887a2d1016bca74fc936a3015841950771c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		screen
PKG_VERSION:=		4.5.1
PKG_RELEASE:=		1
PKG_HASH:=		97db2114dd963b016cd4ded34831955dcbe3251e5eee45ac2606e67e9f097b2d
PKG_DESCR:=		window manager for the terminal session
PKG_SECTION:=		sys/utils
PKG_DEPENDS:=		libncurses libelf
PKG_BUILDDEP:=		ncurses libelf
PKG_URL:=		http://www.gnu.org/software/screen/
PKG_SITES:=		${MASTER_SITE_GNU:=screen/}

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,SCREEN,screen,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

TARGET_LDFLAGS+=	-ltinfo
CONFIGURE_ENV+=		$(foreach flag,rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime,ac_cv_func_${flag}=yes)
CONFIGURE_ARGS+=	--with-sys-screenrc=/etc/screenrc

pre-build:
	echo '#undef UTMPOK' >> ${WRKBUILD}/config.h
	echo '#undef LOGINDEFAULT' >> ${WRKBUILD}/config.h
	echo '#define LOGINDEFAULT 0' >> ${WRKBUILD}/config.h
	echo '#undef GETUTENT' >> ${WRKBUILD}/config.h
	echo '#undef UTHOST' >> ${WRKBUILD}/config.h
	echo '#undef BUGGYGETLOGIN' >> ${WRKBUILD}/config.h
	mv ${WRKBUILD}/sched.h ${WRKBUILD}/my_sched.h

screen-install:
	${INSTALL_DIR} ${IDIR_SCREEN}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/screen ${IDIR_SCREEN}/usr/bin/

include ${ADK_TOPDIR}/mk/pkg-bottom.mk