Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= screen
  5. PKG_VERSION:= 4.2.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 419a0594e2b25039239af8b90eda7d92
  8. PKG_DESCR:= window manager for the terminal session
  9. PKG_SECTION:= sys/utils
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,SCREEN,screen,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_LDFLAGS+= -ltinfo
  18. CONFIGURE_ENV+= $(foreach flag,rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime,ac_cv_func_${flag}=yes)
  19. CONFIGURE_ARGS+= --with-sys-screenrc=/etc/screenrc
  20. pre-build:
  21. echo '#undef UTMPOK' >> ${WRKBUILD}/config.h
  22. echo '#undef LOGINDEFAULT' >> ${WRKBUILD}/config.h
  23. echo '#define LOGINDEFAULT 0' >> ${WRKBUILD}/config.h
  24. echo '#undef GETUTENT' >> ${WRKBUILD}/config.h
  25. echo '#undef UTHOST' >> ${WRKBUILD}/config.h
  26. echo '#undef BUGGYGETLOGIN' >> ${WRKBUILD}/config.h
  27. screen-install:
  28. ${INSTALL_DIR} ${IDIR_SCREEN}/usr/bin
  29. ${INSTALL_BIN} ${WRKINST}/usr/bin/screen ${IDIR_SCREEN}/usr/bin/
  30. include ${ADK_TOPDIR}/mk/pkg-bottom.mk