Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2015 12:54:58 +0930
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        Euan Thoms <euan@potensol.com>, Chris H <bsd-lists@bsdforge.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: New port with USES=gmake will not stage
Message-ID:  <557A510A.4040409@ShaneWare.Biz>
In-Reply-To: <72b3-55791e00-1b-6b8b4580@197501805>
References:  <72b3-55791e00-1b-6b8b4580@197501805>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/06/2015 15:03, Euan Thoms wrote:
>
> On Thursday, June 11, 2015 13:18 SGT, "Chris H" <bsd-lists@bsdforge.com> wrote:
>
>> On Thu, 11 Jun 2015 11:33:03 +0800 "Euan Thoms" <euan@potensol.com> 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 <bsd.port.mk>
> #### 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?557A510A.4040409>