Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $OpenBSD: Makefile,v 1.68 2015/09/01 12:05:19 jasper Exp $
  2. # Please adjust www/faq/faq15.html if updating.
  3. COMMENT= multi-screen window manager
  4. VERSION= 4.0.3
  5. DISTNAME= screen-${VERSION}
  6. REVISION= 6
  7. CATEGORIES= misc
  8. MASTER_SITES= ${MASTER_SITE_GNU:=screen/}
  9. HOMEPAGE= https://www.gnu.org/software/screen/
  10. # GPLv2+
  11. PERMIT_PACKAGE_CDROM= Yes
  12. SUBST_VARS= VERSION
  13. CFLAGS+= -Wall
  14. CONFIGURE_STYLE= gnu
  15. CONFIGURE_ARGS= --with-sys-screenrc="${SYSCONFDIR}/screenrc"
  16. USE_GROFF = Yes
  17. FLAVORS= static shm
  18. FLAVOR?=
  19. .if ${FLAVOR} == "static"
  20. CONFIGURE_ENV= LDFLAGS="${STATIC}"
  21. .else
  22. WANTLIB= c curses util
  23. .endif
  24. .if ${FLAVOR} == "shm"
  25. PATCH_LIST= patch-* shmpatch-*
  26. .endif
  27. ALL_TARGET= screen screen.info
  28. pre-build:
  29. @perl -pi -e s#!!sysconfdir!!#${SYSCONFDIR}#g ${WRKSRC}/doc/screen.1
  30. post-install:
  31. @cd ${PREFIX}/bin && mv -f screen-${VERSION} screen
  32. @chmod 755 ${PREFIX}/bin/screen
  33. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/screen
  34. ${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
  35. ${PREFIX}/share/examples/screen/screenrc
  36. .include <bsd.port.mk>