CONFIGURE_STYLE=gnu and the port already handle SEPARATE_BUILD gracefully, there's not need to pass the directory explicitly.
Also, when passing DEBUG, I'd like to enable the debug switch for obvious reasons; that's how we do it for other ports already such as mail/mutt for example. OK? Index: x11/i3/Makefile =================================================================== RCS file: /cvs/ports/x11/i3/Makefile,v retrieving revision 1.115 diff -u -p -r1.115 Makefile --- x11/i3/Makefile 18 Jan 2019 11:34:20 -0000 1.115 +++ x11/i3/Makefile 16 Mar 2019 21:52:23 -0000 @@ -46,12 +46,14 @@ FAKE_FLAGS = i3confdir="${PREFIX}/share/ SEPARATE_BUILD =Yes USE_GMAKE = Yes CONFIGURE_STYLE =gnu -CONFIGURE_ARGS =--enable-builddir=${WRKBUILD} \ - --enable-debug=no CONFIGURE_ENV = CPPFLAGS="-I${X11BASE}/include \ -I${LOCALBASE}/include" \ LDFLAGS="-L${X11BASE}/lib \ -L${LOCALBASE}/lib" + +.if defined(DEBUG) +CONFIGURE_ARGS +=--enable-debug +.endif pre-configure: ${SUBST_CMD} ${WRKSRC}/etc/config \