Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # $OpenBSD: Makefile,v 1.16 2016/09/12 22:44:08 naddy Exp $
  2. COMMENT= ex/vi text editor with wide character support
  3. V = 2.1.3
  4. DISTNAME = nvi-$V
  5. CATEGORIES= editors
  6. REVISION = 1
  7. MAINTAINER = Anthony J. Bentley <anthony@anjbe.name>
  8. # BSD
  9. PERMIT_PACKAGE_CDROM= Yes
  10. GH_ACCOUNT = lichray
  11. GH_PROJECT = nvi2
  12. GH_TAGNAME = v$V
  13. WANTLIB= c ncursesw util
  14. MODULES= devel/cmake
  15. # ${WRKSRC}/config.h is written
  16. SEPARATE_BUILD= No
  17. WRKSRC= ${WRKDIST}/build
  18. FLAVORS= iconv
  19. FLAVOR?=
  20. .if ${FLAVOR:Miconv}
  21. LIB_DEPENDS+= converters/libiconv
  22. WANTLIB+= iconv
  23. .else
  24. CONFIGURE_ARGS= -DUSE_ICONV:Bool=False
  25. .endif
  26. post-patch:
  27. perl -pi.bak \
  28. -e 's:/usr/share/vi/catalog/:${PREFIX}/share/vi/catalog/:' \
  29. ${WRKSRC}/pathnames.h.in
  30. post-build:
  31. cd ${WRKDIST}/catalog && ${MAKE_PROGRAM}
  32. CATALOGS= dutch english french german polish ru_RU.KOI8-R spanish \
  33. swedish uk_UA.KOI8-U zh_CN.GB2312
  34. do-install:
  35. ${INSTALL_PROGRAM} ${WRKBUILD}/nvi ${PREFIX}/bin
  36. cd ${PREFIX}/bin; ln nvi nex; ln nvi nview
  37. ${INSTALL_MAN} ${WRKDIST}/docs/man/vi.1 ${PREFIX}/man/man1/nvi.1
  38. cd ${PREFIX}/man/man1; ln nvi.1 nex.1; ln nvi.1 nview.1
  39. ${INSTALL_DATA_DIR} ${PREFIX}/share/vi/catalog
  40. cd ${WRKDIST}/catalog; \
  41. ${INSTALL_DATA} ${CATALOGS} ${PREFIX}/share/vi/catalog
  42. .include <bsd.port.mk>