Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $OpenBSD: Makefile,v 1.2 2017/05/12 09:56:33 edd Exp $
  2. COMMENT = a continuation and extension of Vim
  3. GH_ACCOUNT = neovim
  4. GH_PROJECT = neovim
  5. GH_TAGNAME = v0.2.0
  6. REVISION = 0
  7. CATEGORIES = editors devel
  8. HOMEPAGE = http://neovim.org
  9. MAINTAINER = Edd Barrett <edd@openbsd.org>
  10. # Apache 2.0 + Vim License
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB += c m msgpackc pthread termkey unibilium util uv vterm
  13. MODULES = devel/cmake \
  14. devel/gettext \
  15. lang/lua \
  16. textproc/intltool
  17. BUILD_DEPENDS = ${RUN_DEPENDS} \
  18. devel/gperf \
  19. devel/lpeg \
  20. devel/luabitop
  21. LIB_DEPENDS = devel/libtermkey \
  22. devel/libuv \
  23. devel/libvterm \
  24. devel/msgpack \
  25. devel/unibilium
  26. RUN_DEPENDS += devel/libmpack/lua \
  27. devel/libmpack/main
  28. MAKE_FLAGS += USE_BUNDLED_DEPS=OFF
  29. CONFIGURE_ARGS += -DLUA_PRG=${MODLUA_BIN}
  30. # Tests need gmake
  31. USE_GMAKE = Yes
  32. NVIM_PRG = ${WRKBUILD}/bin/nvim
  33. SUBST_VARS += VIMPROG
  34. pre-test:
  35. ${SUBST_CMD} ${WRKSRC}/src/nvim/testdir/test49.vim
  36. # These are the "old tests". There is also a new suite, but we would need the
  37. # "busted" test suite for Lua, which is not yet ported.
  38. do-test:
  39. cd ${WRKSRC} && env LC_CTYPE=en_US.UTF-8 ${MAKE_PROGRAM} \
  40. -C src/nvim/testdir NVIM_PRG=${NVIM_PRG} ${MAKE_FLAGS}
  41. .include <bsd.port.mk>