From owner-freebsd-ports@FreeBSD.ORG Fri Jun 12 03:30:24 2015 Return-Path: Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D46B4451 for ; Fri, 12 Jun 2015 03:30:24 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id 6E4D1195F for ; Fri, 12 Jun 2015 03:30:23 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp118-210-151-206.lns20.adl6.internode.on.net (HELO leader.local) ([118.210.151.206]) by ipmail04.adl6.internode.on.net with ESMTP; 12 Jun 2015 12:55:03 +0930 Message-ID: <557A510A.4040409@ShaneWare.Biz> Date: Fri, 12 Jun 2015 12:54:58 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Euan Thoms , Chris H CC: freebsd-ports@freebsd.org Subject: Re: New port with USES=gmake will not stage References: <72b3-55791e00-1b-6b8b4580@197501805> In-Reply-To: <72b3-55791e00-1b-6b8b4580@197501805> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2015 03:30:24 -0000 On 11/06/2015 15:03, Euan Thoms wrote: > > On Thursday, June 11, 2015 13:18 SGT, "Chris H" wrote: > >> On Thu, 11 Jun 2015 11:33:03 +0800 "Euan Thoms" wrote >> >>> I'm making a port for OpenSIPS. It builds successfully, but the even with >>> just "make" it installs files to the system instead of to stage (i.e. to >>> /usr/local/... instead of /usr/ports/net/opensips/work/stage/usr/local/...). >>> >>> I am using gmake and gcc since that's what's required for OpenSIPS. >>> >>> I've done a similar port before and the FreeBSD ports macros do the staging >>> for me. However, even when I tell gmake the DESTDIR=${STAGEDIR} in do-build >>> and do-install, a "make" just installs the files to /usr/local/... . > MAKE_ARGS+= PREFIX=${LOCALBASE} > MAKE_ARGS+= exclude_modules="${EXCLUDE_MODULES}" include_modules="${INCLUDE_MODULES}" While MAKE_ARGS should send options to gmake, what about backing up a step to configure? Try setting PREFIX in CONFIGURE_ENV or maybe MAKE_ENV to specify environment variables instead of arguments. cd ${WRKSRC} && ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} ${ALL_TARGET} Do you need USE_AUTOTOOLS=autoconf or to add a custom do-configure: ? > #do-build: > # cd ${WRKSRC} && ${GMAKE} ${MAKE_ARGS} ${ALL_TARGET} > # > #do-install: > # cd ${WRKSRC} && ${GMAKE} ${MAKE_ARGS} ${INSTALL_TARGET} > > .include > #### EOF ############ > > I can't find the make files for stage to drill down and see what's going wrong. Any pointers to the script that "make stage" uses? -- FreeBSD - the place to B...Software Developing Shane Ambler