mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 02:53:10 -04:00
Using ninja instead of make (1) can lead to significant speed ups while building. Therefore switch from having the ninja generator opt-in to having it opt-out. Previously cmake-ports that wanted to use ninja could set CMAKE_NINJA=yes now, ports that do not work with ninja can set cmake:<existing args>,noninja Note, that needing this should be an exception and most often points to a broken cmake of the port. The ports using cmake were modified * removed USES=gmake, if ninja is used * removed MAKE_ARGS, if ninja is used * added the cmake-argument noninja if necessary PR: 219629 PR: 213331 Exp-run by: antoine Reviewed by: rakuco Differential Revision: https://reviews.freebsd.org/D10748
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# Created by: Anton Tornqvist <antont@inbox.lv>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= neovim
|
|
PORTVERSION= 0.2.0
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= editors
|
|
|
|
MAINTAINER= gor@clogic.com.ua
|
|
COMMENT= Next generation Vim
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= ${LUA_MODLIBDIR}/bit.so:devel/lua-bitop \
|
|
${LUA_MODLIBDIR}/lpeg.so:devel/lua-lpeg \
|
|
gperf:devel/gperf
|
|
LIB_DEPENDS= libunibilium.so:devel/unibilium \
|
|
libvterm.so:devel/libvterm \
|
|
libtermkey.so:devel/libtermkey \
|
|
libluajit-5.1.so:lang/luajit \
|
|
libuv.so:devel/libuv \
|
|
libmsgpackc.so:devel/msgpack
|
|
|
|
USES= cmake:outsource gettext iconv lua:build pathfix pkgconfig
|
|
USE_GITHUB= yes
|
|
GH_TUPLE= libmpack:libmpack:1.0.5:libmpack \
|
|
libmpack:libmpack-lua:1.0.6:libmpack_lua
|
|
|
|
CMAKE_ARGS= -DLUA_PRG:FILEPATH="${LUA_CMD}" \
|
|
-DCMAKE_INSTALL_MANDIR:PATH="${MANPREFIX}/man" \
|
|
-DDEPS_PREFIX:PATH="${LOCALBASE}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|lua_objlen|lua_rawlen| ; \
|
|
s|luaL_reg |luaL_Reg | ; \
|
|
s|luaL_register(L, NULL, \(.*\));|luaL_setfuncs(L, \1, 0);|' \
|
|
${WRKSRC_libmpack_lua}/lmpack.c
|
|
|
|
pre-build:
|
|
@${LN} -s ${WRKSRC_libmpack} ${WRKSRC_libmpack_lua}/mpack-src
|
|
@${MKDIR} ${BUILD_WRKSRC}/src/nvim
|
|
@(cd ${WRKSRC_libmpack_lua} && ${CC} ${CFLAGS} -fPIC \
|
|
-I${LUA_INCDIR} -shared lmpack.c -o \
|
|
${BUILD_WRKSRC}/src/nvim/mpack.so \
|
|
${LUA_LIBDIR}/liblua-${LUA_VER}.so)
|
|
@${LN} -s ${BUILD_WRKSRC}/src/nvim/mpack.so ${BUILD_WRKSRC}/runtime/mpack.so
|
|
|
|
.include <bsd.port.mk>
|