1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= screen
  5. PKG_VERSION:= 4.0.3
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 8506fd205028a96c741e4037de6e3c42
  8. PKG_DESCR:= A window manager for the terminal session
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= libncurses libelf
  11. PKG_BUILDDEP:= ncurses libelf
  12. PKG_URL:= http://www.gnu.org/software/screen/
  13. PKG_SITES:= ${MASTER_SITE_GNU:=screen/}
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,SCREEN,screen,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. TARGET_LDFLAGS+= -ltinfo
  17. CONFIGURE_ENV+= $(foreach flag,rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime,ac_cv_func_${flag}=yes)
  18. CONFIGURE_ARGS+= --with-sys-screenrc=/etc/screenrc
  19. pre-build:
  20. echo '#undef UTMPOK' >> ${WRKBUILD}/config.h
  21. echo '#undef LOGINDEFAULT' >> ${WRKBUILD}/config.h
  22. echo '#define LOGINDEFAULT 0' >> ${WRKBUILD}/config.h
  23. echo '#undef GETUTENT' >> ${WRKBUILD}/config.h
  24. echo '#undef UTHOST' >> ${WRKBUILD}/config.h
  25. echo '#undef BUGGYGETLOGIN' >> ${WRKBUILD}/config.h
  26. screen-install:
  27. ${INSTALL_DIR} ${IDIR_SCREEN}/usr/bin
  28. ${INSTALL_BIN} ${WRKINST}/usr/bin/screen ${IDIR_SCREEN}/usr/bin/
  29. include ${TOPDIR}/mk/pkg-bottom.mk