svn commit: r426729 - head/textproc/fzf

John Marino marino at FreeBSD.org
Mon Nov 21 15:30:21 UTC 2016


Author: marino
Date: Mon Nov 21 15:30:19 2016
New Revision: 426729
URL: https://svnweb.freebsd.org/changeset/ports/426729

Log:
  textproc/fzf: Several fixes required after last update
  
  1. The proper variable is MAKE_ENV, not BUILD_ENV
  2. The build steps must not be surpressed!  Remove "@" from build step
  3. The make command is contingent on the success of the cd command, so
     change the concatenation (";") to AND ("&&") and run the whole thing
     in a subshell
  4. Additional CGO_ variables are required now.  Define CGO_LDFLAGS so
     that ncurses library can be found and add another path for CGO_CFLAGS
     so that ncurses_dll.h can be found.
  
  Approved by:	general and ncurses blankets

Modified:
  head/textproc/fzf/Makefile

Modified: head/textproc/fzf/Makefile
==============================================================================
--- head/textproc/fzf/Makefile	Mon Nov 21 15:24:34 2016	(r426728)
+++ head/textproc/fzf/Makefile	Mon Nov 21 15:30:19 2016	(r426729)
@@ -20,7 +20,8 @@ GH_SUBDIR:=	src/github.com/${GH_ACCOUNT}
 GH_TUPLE=	junegunn:go-runewidth:63c378b:runwidth/src/github.com/junegunn/go-runewidth \
     		junegunn:go-shellwords:35d512a:shellwords/src/github.com/junegunn/go-shellwords \
 		junegunn:go-isatty:66b8e73:isatty/src/github.com/junegunn/go-isatty
-MAKE_ENV+=	CGO_CPPFLAGS="-I${NCURSESINC}"
+MAKE_ENV+=	CGO_CPPFLAGS="-I${NCURSESINC} -I${NCURSESBASE}/include" \
+		CGO_LDFLAGS="-L${NCURSESLIB}"
 
 PLIST_FILES=	bin/fzf man/man1/fzf.1.gz
 
@@ -35,9 +36,9 @@ TMUX_RUN_DEPENDS=	bash:shells/bash
 TMUX_PLIST_FILES=	bin/fzf-tmux man/man1/fzf-tmux.1.gz
 
 do-build:
-	@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/src/fzf; \
-		${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} \
-		go build -o bin/${PORTNAME}
+	(cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/src/fzf && \
+		${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} \
+		go build -o bin/${PORTNAME})
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/src/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}


More information about the svn-ports-all mailing list