Makefile 949 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # $OpenBSD: Makefile,v 1.89 2017/06/12 16:30:31 naddy Exp $
  2. COMMENT= Pico editor clone with enhancements
  3. DISTNAME= nano-2.8.4
  4. CATEGORIES= editors
  5. HOMEPAGE= https://www.nano-editor.org/
  6. MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
  7. MASTER_SITES= https://www.nano-editor.org/dist/v2.8/ \
  8. ${MASTER_SITE_GNU:=nano/}
  9. EXTRACT_SUFX= .tar.xz
  10. # GPLv3+
  11. PERMIT_PACKAGE_CDROM= Yes
  12. LIB_DEPENDS= devel/gettext
  13. WANTLIB= c iconv intl ncursesw
  14. CONFIGURE_STYLE=gnu
  15. CONFIGURE_ARGS= --disable-libmagic
  16. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  17. LDFLAGS="-L${LOCALBASE}/lib"
  18. # configure tests for groff -Thtml, but assumes the existence of groff
  19. pre-configure:
  20. @ln -s /usr/bin/false ${WRKDIR}/bin/groff
  21. post-install:
  22. sed -i -e 's:/etc:${SYSCONFDIR}:g;' ${PREFIX}/man/man5/nanorc.5
  23. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nano
  24. ${INSTALL_DATA} ${WRKBUILD}/doc/sample.nanorc \
  25. ${PREFIX}/share/examples/nano
  26. .include <bsd.port.mk>